Transaction rolls back

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 18, 2012
Company: Bristol IT Solutions, LLC

I'm using Try...Catch to handle errors that occure during the transaction. But it still rolls back.

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

This is the correct behavior if an operation with database is performed and an exception is catched within Try, it still causes a rollback.
You will see "Errors have already occurred in this transaction!" message as for not catched exception. At the same time if non database-related exception occured, it can be catched and will not cause a rollback.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.