Comments and answers for "Updating feature class in FGDB" https://knowledge.safe.com/questions/86734/updating-feature-class-in-fgdb.html The latest comments and answers for the question "Updating feature class in FGDB" Comment by andreaatsafe on andreaatsafe's comment https://knowledge.safe.com/comments/86821/view.html

Glad it was helpful @gisuser!

I believe if we were to delete a feature from a feature class, the relationship would also be deleted without an issue.

Are you able to share the log file/error message you are receiving as well as your workspace (saved as a template to include the source data if possible)?

Tue, 12 Feb 2019 18:06:48 GMT andreaatsafe
Comment by gisuser on gisuser's answer https://knowledge.safe.com/comments/86760/view.html

Thank you @AndreaAtSafe

it was so helpful, but I still have an issue with the deleted port from UpdateDetector , it gives an error when I add it in the writer.


I guess the reason is that this F.C has a relationship with an external table, there is a way to do that without break the relationship?

星期二,2019年2月12日06:40:39格林尼治时间 gisuser
Answer by andreaatsafe https://knowledge.safe.com/answers/86755/view.html

Hi @gisuser,

I think the best solution here would be to use fme_db_operation to specify the database operation to preform for writing to the same feature class in a File Geodatabase. The writer feature type parameter "Feature Operation" should be set to fme_db_operation. You will want to have each feature have the attribute fme_db_operation with values of either: UPDATE/INSERT/DELETE.

There are a couple of tutorials for how you can filter the features to determine what operation is needed for the feature. Here is one tutorial for filtering features and setting and here is another tutorial using change detection to set fme_db_operation.

Hope the tutorials help!

- Andrea

Tue, 12 Feb 2019 02:45:34 GMT andreaatsafe