hi all,
(Ax2012R2) I have the following situation: a purchase-invoice (PO invoice) is submitted to our WF and runs through all the WF-elements. Out of the WF it goes to a sub-WF which manages the approval. Once the WF enters the sub-WF the invoice-status goes to "in review". The approver completes the WF-element by approving. The WF throws the following error:
28.08.2020 06:37:07:
Stopped (error): Action failed: Purchase invoice XXD1762 does not have the expected state Posted
Details:
Transition to Posted not allowed: Purchase invoice XXD1762 does not have the expected state Approved
My initial thoughts were that someone changed the pending supplier-invoice after the approval was completed and therefore the approval became invalid. So i have recalled the WF and resubmitted it again. Currently the WF is again at the approval WF-step. As a test i opened the pending supplier invoice as i expect that Ax will give me the usual message that this invoice is locked for editing and that if you choose to edit, you have to recall the WF and resubmit. But i am able to open the pending invoice and no question is asked. ....
So i went to verify the workflow approval status for the invoice approval journal created and i noticed that the workflow approval status remains in "draft" while this should be "in review". (as to other invoices in the similar WF position).
I double-checked the parameters on the journal in the setup and it is connected to the correct worfklow.
Has anyone encountered similar behavior or know why the workflow approval status does not get updated as it should?
Looking forward to your feedback,
kind regards,
Jo