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 :
Microsoft Dynamics AX (Archived)

One or more pending invoices cannot be displayed because they are in use when entering Multiple Accounts Payable invoices against a single PO

(0) ShareShare
ReportReport
Posted on by

Note:  We are on AX 2012 FP, CU7

When creating an AP invoice against a PO, this creates a record in the Invoice History and Matching Details table, with a status of "Waiting".  Once the invoice is submitted into our approval workflow, this record is removed from the table, and a new record is created once the approver retrieves the invoice to review for approval.  This subsequent record is then removed once approval is granted and a new record with a status of "Executed" is then placed into the table when the invoice is posted.

Occasionally we will experience the error referenced in the title, "One or more pending invoices cannot be displayed because they are in use" when trying to approve invoices in the approval workflow.  To remedy this, we typically have to go into the Invoice History and Matching details window and delete the corresponding record with a status of "Waiting".  What seems to be consistently causing this is when we create multiple invoices against the same PO. 

To replicate:

1. Create Invoice against the PO, partially invoicing the PO. 

2. Create a 2nd invoice against the same PO, again partially invoicing or invoicing for the balance of the PO.

3. Verify that there are 2 records in the Invoice history table corresponding to the 2 invoice records created in steps 1 and 2.

4. Submit both invoices into an approval workflow

5. Expected results:  In the Invoice history table, both records referenced in step 3 should be gone.  Actual results:  both records exist.

6. Retrieve one of the invoices from the workflow and attempt to approve.  Expected results:  Approval is effected.  Actual results:  Receive the "One or more pending....." error.

7. In the Invoice History table, delete the 2 corresponding records with a "Waiting" status.  You should now be able to retrieve the invoices and approve them.

Our current workaround is to process one invoice to completion (posted) before we enter the subsequent invoices against the PO.  This only seems to manifest itself when we have multiple pending invoices against a PO.  It's almost like AX get's confused and when multiple pending invoices against a PO exist, it has difficulty cleaning up the temporary records.

Does anyone know if this is a bug and if there is a hotfix for it?  I did a quick search but haven't found anything.  Is anyone else experiencing this issue? 

Thanks.

-Patrick

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Patrick,

    A quick question first: Are you using the invoice register and approval journal or the (direct) vendor invoice form?

  • Community Member Profile Picture
    on at

    Thanks for the response Andre.  We are using the vendor invoice form.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Patrick,

    Sorry for the late reply. This issue lost my focus. There is a hotfix available to solve this error on opening vendor invoice details. I don't know if this really will solve your problem, but you can test it in a separate environment first.

    Link to hotfix

    You can also search for the issue for a description on  LCS. Then search on KB number 2849473. There is a hotfix for AX 2012 RTM and AX 2012 R2.

  • Community Member Profile Picture
    on at

    Thanks for your suggestion Andre.  I will let you know if this resolves the issue.  I'm having trouble connecting to LCS at the moment.

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Patrick,

    For the link to the hotfix, you don't need LCS. Only for the more detailed description.

    Here is the description:

    PROBLEM

    When you try to open the vendor invoice form, you receive the following error message:

    "A pending invoice cannot be displayed because it is in use. If nobody else is working with the invoice, you can delete the unconfirmed changes to the invoice, and then you can modify the invoice. Use the Invoice history and matching details form or the Approval journal history and matching details form to delete the unconfirmed changes".

    Microsoft Dynamics AX stops responding while you are working with the invoice.

    DESCRIPTION OF CHANGE

    The changes in the hotfix include adding a new form that displays user the overall pending vendor invoices that are in use by that user and allows the user to recover those invoices.

  • Community Member Profile Picture
    on at

    Hi Andre,

    Thanks for your reply and your continued assistance.  The hotfix appears to provide a form that displays the pending vendor invoices marked in use by the user, and allows the user to recover the invoices.  

    The issue we're experiencing is that in the scenario I originally mentioned, creating multiple invoices against a single Purchase Order seems to leave records in the Invoice History table that are not removed after submission to the Approval Workflow.  Typically the records are removed from the Invoice History table once they are submitted into workflow.  To remedy this, we need to delete the records by going into the Invoice history and matching details form and removing the related records with a job status of "Waiting".

    Again, thanks for your help.  I will log a ticket with Microsoft Support as this seems to be a bug and I'm not seeing anything in LCS that addresses the issue specifically.

    Patrick

  • Community Member Profile Picture
    on at

    Hi I am also facing this issue. please post the solution if you have resolved it

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans