Problem: Method 'CommitTrans' of object ' _Connection ' failed"
Committing changes to a versioned ArcSDE feature class may return the following error:
Method 'CommitTrans' of object ' _Connection ' failed"
This could be caused by the ADO/OLE DB transaction commit operation encountering an edit conflict at the data source. The target for the edits was altered since the ADO/OLE DB transaction began and the conflict could not be resolved. The edits were not applied to the data source.
Solution or Workaround
Either of the following will over-write any other changes that may have been applied to the data source in the interim.
- Trap for the error and exit from the commit transaction.
- Loop through the code, for a given number of times, until the changes are applied.