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

Announcements

No record found.

News and Announcements icon
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
    303,988 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans