Skip to main content

Hi,

I am trying to write data from database to 3 different Feature Layers (Hosted) on ArcGIS Online. 3 layers have different set of feature attributes.

While trying to write data, I would like entire transaction to be rolled back if publishing data to one of the layer fails.

Example: If writing data to layer 1 and 2 was successful, but layer 3 fails, I would like to rollback layer 1 and 2 as well.

For this scenario, I am trying to use 3 readers and 3 writers in same FME workspace. Is there any kind of Try/Catch or related mechanism that can be used to rollback the transaction ?

 

Any help would be much appreciated, Thanks in advance.

 

Regards,

Syed

 

Esri has a rollback option for every transaction but FME does not use the write mode at featureservice level, instead providing it for each featuretype rather than at featureservice level. Although, I also note that you said that you have three Hosted Feature Layers, so I presume you are three featureservices (e.g. not 1 Hosted Feature Layer, with 3 layers in it). So, I would ask why that is architected that way, but there can also be many reasons why.

 

If you are wanting to do this in a single featureservice, and the transactions are not thousands and thousands of features, you would be better to build your own json payload and call the applyedits at featureservice level (with rollback on) https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service/


Reply