TTSCommit level

Today i got this error when i try to run my code. Actually this error is telling that tts level in unbalanced and cant perform edit operations.




To resolve this error this TTS level should be ZERO, Run this job to get rid of that error, this job will find the tts level where its greater than zero and make it zero by calling TTSABORT.

ttsbegin: marks the beginning of a transaction. This ensures data integrity, and guarantees that all updates performed until the transaction ends (by ttscommit or ttsabort) are consistent (all or none).

ttsCommit: marks the successful end of a transaction. This ends and commits a transaction. MorphX guarantees that a committed transaction will be performed according to intentions.

 static void TheAxaptaResetTTS(Args _args)  
 {  
   while (appl.ttsLevel() > 0)  
   {  
     info(strfmt("Level %1 aborted",appl.ttsLevel()));  
     ttsAbort;  
   }  
 }  

Comments

Popular posts from this blog

X++ Get Start Date and End Date of Month

Dynamics AX 365 : The name does not denote a class, a table or an extended data type

Error while setting server report parameters. Error message: The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)