Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

X++ Standards: ttsBegin and ttsCommit [AX 2012]

Updated: November 30, 2011

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

ttsBegin and ttsCommit must always be used in a clear and well-balanced manner. Balanced ttsBegin and ttsCommit statements are the following:

  • Always in the same method.

  • Always on the same level in the code.

Avoid making only one of them conditional.

Use throw, if a transaction cannot be completed.

Do not use ttsAbort; use throw instead.

Do not use anything that requires a user interaction within a transaction (such as an action on a dialog box).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.