I've created a workflow to update, delete, and insert new records to an hosted feature service.
The delete and update have been throwing log errors like:
ArcGIS Online Feature Service Writer: 'updateResults' error for a feature in 'Job_Line'. The error code from the server was '1019' and the message was: 'The specified feature could not be updated or does not exist.'
In the reader, I'm making sure to include arcgisonline_globalid and arcgisonline_objectid in the format attributes window. These appear in the Joined output for the FeatureJoiner (for updates) and the the Deleted output of ChangeDetector (for deletes).
I'm really scratching my head as to how to the OBJECTID's can be incorrect in the writer when the reader is the same online source.
The parameters for the Writer have Use GlobalID = No and Preserve GlobalIDs=No.
For the layer, parameters are set to Writer Mode = Update (dont think this matters with fme_db_operations) and Truncate = No.
I've tried running without feature cache and get the same issue.
Maybe I could tell what the issue was if I could see the JSON that was constructed for the rest call, but i'm not sure how to do that.
Best answer by virtualcitymatt
View original