web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Purchase invoice - workflow approval status is not updated

(0) ShareShare
ReportReport
Posted on by 117

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:

pastedimage1598597965453v2.png

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).

pastedimage1598597885899v1.png

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

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans