I have an unbalanced X++ TTSBegin/TTSCommit pair has been detected .Cause of this include (a) too many/few TTSBegin or TTS Commit . The current TTS level is '1'
To solve this error there is a job which is to be executed when yo get this error.
static void resetTTS(Args _args)
while (appl.ttsLevel() > 0)