is it even possible to change the status in a movement work from available to blocked?
I change the status by code (simply setting "_toInventStatusId" in code down below) if the target location is some special location.
The code seem to allow that:
Bu if i try to execute the movement work it ends in a dead lock. The client pretends to process and i have to restart AX.
Now my question is, is it an illegal action to change status during work?
I completed the work by WHSWorkExecute-Form and it worked out perfectly. Maybe some parameters are missing when i execute it by "Complete Work"-Button. I suspect the target LP. But i wonder why i didn't get an error message. But now it's weekend! I'm outta here.
I have still got no solution but is suspect that i have to create and execute a quaratine work somewhere in the process (if there is a status change between pick and put).
In order to change a status i had to create and execute quarantine work.
The simple solution mentioned above (call method with _toInventStatusId "blocked") doesn't work.
That seems reasonable and in tune with the rest of the WHS code.
Ivan (Vanya) Kashperuk
Senior Software Engineer @ MDCC
My Blog about Dynamics AX