web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

TTS LEVEL ISSUE

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

I have Error: An Unbalanced X++ TTSBEGIN/TTSCOMMIT pair has been detected... TTS level : 2
When running inventory calculation from Inventory >> Periodic >> Closing and Adjusting
i have do some reseraches and i have found the following job to reset the ttslevel;
static void TheAxaptaResetTTS(Args _args)
{
while (appl.ttsLevel() > 0)
{
info(strfmt("Level %1 aborted",appl.ttsLevel()));
ttsAbort;
}
}

but this doesn't resolve my problem
because each time that i try to run "calculate" i get the same error message "TTS LEVEL 2", i have tried to check code related to the calculate function but i didn't found any unbalanced TTSBEGIN/TTSCOMMIT
Any suggestion please?

Thanks.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: TTS LEVEL ISSUE

    Thank you for your answer, but i still have tts level 2 in the end, it increment to 1 then 0 then return to 2 , and i have an item which still blocked when launching calculation

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: TTS LEVEL ISSUE

    Hi,

    Please execute the below job and try to run "calculate"(On closing and adjustment form). It should decrement level from 2 to 1 and perform the same operation again to set the level to zero.
    Basically, we are trying to reset the value to zero that is supposed by done by AxaptaResetTTS job.

    static void ttslevel(Args _args)
    { 
    ttsCommit;
    }

    If the issue persists, check if you have any custom code in posteventhandlers to the class that process Closing and Adjustment.

    Hope this helps you.

  • Community Member Profile Picture
    on at
    RE: TTS LEVEL ISSUE

    I have Tried the available hotfix too but it doesn't resolve the issue

  • Verified answer
    André Arnaud de Calavon Profile Picture
    297,269 Super User 2025 Season 2 on at
    RE: TTS LEVEL ISSUE

    Hi Enn,

    Can you check if there are customizations involved? If you had restarted the calculation and then get the error, there is a hotfix available on LCS issue search.

  • Community Member Profile Picture
    on at
    RE: TTS LEVEL ISSUE

    Thank you for answering , but i still have the same issue even i have tried all of those recommendations

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: TTS LEVEL ISSUE

    Hi,

    When we also faced the same issue and couldn't be able to reset with the abort job, executed the following job and able to resolve the issue. You also please give a try.

    static void ttslevel(Args _args)
    {
        ttsBegin;
        ttsCommit;
    }


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
howalker Profile Picture

howalker 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans