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

Notifications

Announcements

No record found.

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)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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;
    }


  • Community Member Profile Picture
    on at

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

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,231 Super User 2025 Season 2 on at

    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

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

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    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

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans