Rollback transaction in business processor on error in AfterProcessChange

I have a business processor that does some additional logic in the BP’s AfterProcessChange event handler. If an exception is raised during the processing in the AfterProcessChange handler, the transaction is still commited.

Is there a way to prevent DA from committing the transaction in this case and do a rollback instead?

In issue 1554 from 2013 I found a hint to set the BPs property RaiseExceptionAtError to true, but this property does not seem to exist anymore.

Best regards,
Georg

Hello

Assuming you are using the .NET version you need to handle the ProcessError event and to set the .CanContinue property of its event args to false

I have the same question but am using Delphi, how should I handle this as there is no event args? Thanks.

with DAService.ReturnUpdateFailureDelta property you can control how to changes will be processed. if this is set to False, at failure in any change, all changes will be rollbacked. it can be useful in your scenario.

another possibility is manually start/stop transactions.