I am experiencing a critical error when i try to change some sales order lines in a specific intercompany sales order.
When i try to update my order i get presented with a "Overwrite prices and discounts"-dialog:
If i try to press OK or Cancel, AX throws a Transaction tracking error.
An unbalanced X++ TTSBEGIN/TTSCOMMIT pair has been detected. Causes of this include (a) too many/few TTSBEGIN or TTSCOMMIT, (b) return calls within TTSBEGIN/TTSCOMMIT pairs, and (c) user interaction within TTSBEGIN/TTSCOMMIT pairs.
The current TTS level is '5'.
I did some digging around with the debugger and found that official code from Microsoft is doing something like this:
- Stack up some TTS
- Change to buying company
- Display dialog
- As a result of the dialog, the TTS gets confused and all kinds of wierd things starts happening.
How can i either:
- Fix it.
- Disable the dialog all together and have it execute some default behaviour.