Fix unbalanced TTS
During development you may see one of these errors:
They are pritty anoying because set your Ax session in an unusable state that you can’t close properly. Normally you have to kill the ax32.exe in the Task Manager. Instead, open the AOT and run this job:
1 2 3 4 5 | static void resetTTS(Args _args) { while (appl.ttsLevel() > 0) ttsAbort; } |
Tags: Dynamics AX, Programming, X++
This entry was posted on Monday, April 13th, 2009 at 13:59 and is filed under Dynamics AX. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


April 13th, 2009 at 22:29
This job is a life saver
January 22nd, 2011 at 00:54
the call of ttsabort will abort all open transactions
(the ttslevel is only a number, there is only one real open transaction)
so you don’t need a while-loop, an if-statement is enough
but what’s about the changes made in that transaction scope?
i’ll prefer an job like this:
while (appl.ttsLevel() > 0)
ttscommit;