Skip to main content
Solved

gdb writer, how to update only changes

  • February 18, 2021
  • 3 replies
  • 234 views

townest
Contributor
Forum|alt.badge.img+4

I'm getting confused when writing to a gdb with regard to feature operation parameters. The options are Insert, Update, Delete, and fme_db_operation. What I am looking to do is write only changes. Add rows if required, subtract rows if required, modify rows if required, and no modifications to unchanged rows. In other words, compare tables, then update only changes. It is not clear to me in the documentation that any one parameter does this. Let me know.

Thank you,

Tyler

FME Workbench 2020.2

Best answer by markatsafe

@townest​ The FME documentation Feature Operations should help explain fme_db_operation. Also the two part webinar on Managing Changing Data might give you some ideas, Part1 & Part2

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • February 18, 2021

Difficult to say as your workflow is unknown, but one way to do this is using the ChangeDetector, which adds fme_db_operation to the Updated / Inserted / Deleted outputports.

 

So what you can do is connect these outputports to a FeatureWriter, set Feature Operation to fme_db_operation and columns to objectid.

 

2021-02-18_16h46_042021-02-18_16h45_14 


Forum|alt.badge.img+2
  • 1891 replies
  • Best Answer
  • February 18, 2021

@townest​ The FME documentation Feature Operations should help explain fme_db_operation. Also the two part webinar on Managing Changing Data might give you some ideas, Part1 & Part2


townest
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 45 replies
  • February 19, 2021

@townest​ The FME documentation Feature Operations should help explain fme_db_operation. Also the two part webinar on Managing Changing Data might give you some ideas, Part1 & Part2

Thanks @Mark Stoakes​ . The videos shed some light on a solution.