Select to view content in your preferred language

Chained Edit Operations and Short Transactions

670
2
10-26-2020 11:48 AM
AlexZlotin1
Emerging Contributor

When editing geodatabase programmatically in short transaction mode (we are working with non-versioned enterprise geodatabase tables), a failed chained operation does not cause the parent operation to be rolled back. Is this an expected behavior? If so, can anyone suggest a solution to this? Thanks!

0 Kudos
2 Replies
by Anonymous User
Not applicable

Alex,

Yes this is the expected behavior and will also occur in datasets that support undo, the difference of course it that you can undo the parent operation on those and the whole chain goes.

If all you have is simple creates in unversioned data and want to 'undo' them, you could maintain a list of creates via the EditCompletedEvent then delete them when the chained operation fails.

0 Kudos
AlexZlotin1
Emerging Contributor

Thanks for confirming this, Sean!

0 Kudos