Home / Questions / What happens if an exception is thrown inside a transaction in X++?
Explanatory Question

What happens if an exception is thrown inside a transaction in X++?

👁 69 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

If an exception is thrown inside a transaction, the transaction is automatically aborted (ttsAbort). Any catch statements within the transaction block cannot process the exception. The outermost catch statements handle the exception.