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 115

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,021 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans