English

FAQ: What happens when a code block fails when executed within a reconcile event?

Question

What happens when a code block fails when executed within a reconcile event?

Answer

A failure code returned by a component that participates in the reconcile operation informs the geodatabase that the consistency and integrity of the transaction is in doubt. For example, an extension listening to the OnBeginReconcile event returns a COM error code, or a custom code executed within the same event returns a COM error. When this occurs, the geodatabase aborts the reconcile's edit operation and returns the error code.

It is the application developer’s responsibility to handle any errors and re-execute the reconcile, if required.