Can this be resolved?
I have an 'update' file geodatabase and a 'destination' file geodatabase. I want to replace an existing feature class in my destination file geodatabase with the updated version from my update file geodatabase. I am using dymanic readers and writers. Usually when I do this with shapefiles I chose to truncate the table and it works fine. However, this doesn't seem to be working for my file geodatabase. The new features from the update file are being added to the existing features (i.e. the existing features remain in the file geodatabase). Is this to do with using file geodatabases (the writer mode can't be set for file geodatabases as it can be for SDE writers), or is it to do with using dynamic readers and/or writers?
Page 1 / 1
Hi Karen,
which FileGeodatabase Writer do you use? API oder ArcObjects?
I suppose the API-Writer (because of the missing writer mode).
On the parameter tab of the destination featuretype you can set the parameter Truncate Existing Table to yes. This way you can replace all existing feature classes (with all features in it).
If you want to replace only some of the existing feature classes you can use the parameter (advanced) Feature Types to Read from the Reader.
In both cases all feature of a feature class are replaced.
That's different to the write-mode "update" from the sde-writer. But if you need this only for whole feature classes it should work for you.
Kind regards
Uta
Hi Uta,
Yes that's the fgdb writer I'm using. The Truncate Existing Table parameter is set to Yes. Because I have successfully used this parameter before for shapefiles I thought I knew how FME would handle the update.
That's why I'm confused about why the update is not working, and wondering if it is to do with updating a single feature class in a file geodatabase , or if it is to do with using dynamic readers and writers.
BTW - the Feature Types to Read from the Reader does not appear in the advanced parameters for fgdb writers. I am using a dynamic reader and writer and setting the feature classes to be read from Prompt and Run Translation button.
Thanks,
Karen