Skip to main content
Solved

Updating data using incremental Updates

  • July 9, 2020
  • 1 reply
  • 59 views

gisgeek
Contributor
Forum|alt.badge.img+9

I am trying to set up a process where I have a bulk dataset of approximately 77,000 records and will be needing to do weekly updates. The first incremental update had 48 records so I am trying to do UPDATE, INSERT, DELETE of these to my bulk dataset with 77,000 records. I have set up a process that looks like this. How do I compare the records before I write it out though and is this the best way to do it but can't seem to get this process to work using change detector. When I looked at the bulk record it had only added 12 records but thought I would get 13 extra records based on my workbench.

Best answer by markatsafe

@gisgeek Does your CSV file already have an update type (insert, update, delete)? if it does, then what it looks like you're doing in the image should work.

In the AttributeCreator set fme_db_operation to be INSERT|UPDATE|DELETE and on the writer feature type set Feature Operation: fme_db_operation and set the Match Columns attributes (keys). More details in the FME Documentation and this tutorial

You shouldn't need the ChangeDetector if your input data has the update flags (insert,update,delete)

If it's still not working, share a small sample dataset.

View original
Did this help you find an answer to your question?

1 reply

Forum|alt.badge.img+2
  • Best Answer
  • July 10, 2020

@gisgeek Does your CSV file already have an update type (insert, update, delete)? if it does, then what it looks like you're doing in the image should work.

In the AttributeCreator set fme_db_operation to be INSERT|UPDATE|DELETE and on the writer feature type set Feature Operation: fme_db_operation and set the Match Columns attributes (keys). More details in the FME Documentation and this tutorial

You shouldn't need the ChangeDetector if your input data has the update flags (insert,update,delete)

If it's still not working, share a small sample dataset.


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