Hi there, im developing code to automate a process in our company, basically I need to do the following:
1) Process the picking on a picking route
2) Process the picking on a production order pickig list (which is linked to the picking route)
If I dont use a transaction (using ttsbegin\ttscommit) then it works perfectly, but if add both steps above to a single transaction the 2nd step fails with the following error:
"Insufficient inventory transactions with status On order, Reserved ordered, Reserved physical and Picked."
So it looks like the 2nd step does not know about the inventory transaction changes from the 1st step because they have not been commited to the database yet.
It is very important that I wrap both of these steps in a single transaction, does anyone know if there is anyway I can make this work? Your input would be greatly appreciated.
I am using AX 2009 RU8.