Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Transaction rolls back

Forum

Search UsersRules
Transaction rolls back
#1
Active user
Points:: 0
Joined:: Jul 18, 2012

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

Profile
#2
Guest
Points::
Joined::

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.