Skip to main content
Archived

Database writer feature operation should take precedence over fme_db_operation

Related products:Integrations
  • September 22, 2022
  • 3 replies
  • 41 views

nic_ran
Contributor

On database writers, if the "feature operation" parameter is explicitly set to insert/update/delete then it should force that operation and ignore any value in the feature's fme_db_operation attribute.

Currently [FME 2021.1], if the (Oracle) writer feature operation is set to "insert" but a feature enters the writer with fme_db_operation set to "UPDATE", the writer issues a warning and the feature does not get inserted.

The log message issued by FME is:

|WARN |Oracle Non-Spatial: The fme_db_operation attribute value 'UPDATE' on feature conflicts with Feature Operation 'Insert'. Rejecting feature

3 replies

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • September 22, 2022

Hey Nic.

I think that's working as designed. The help doc says:

 

"To use fme_db_operation, you must set Feature Operation to this option. In previous versions of FME, you could set fme_db_operation when the destination feature type was set to Insert, Update, Upsert, or Delete. Doing this now will cause feature rejection."

 

I don't know if we'd force it to use the feature type parameter in preference. I think that partly because they could have made it work like then with the above change - but didn't - and partly because the old way used to give the attribute priority and it would be too confusing to reverse that completely.

 

But we can leave this idea open and see if it gets any traction. Who knows, it might be a big deal for a lot of users.

 


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • October 29, 2024
OpenArchived

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • February 4, 2025

I don’t think the help is very clear for this.

It should be explicit that if fme_db_operation exists on a feature and Feature Operation is set to Insert then an error will be raised if the value of the fme_db_operation conflicts with the Feature Operation set in the writer.

 

I would agree with ​@nic_ran that expected behaviour would be to use the setting in the writer and ignore any attribute value but that’s not the case


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings