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)

Database consistency check Error

(0) ShareShare
ReportReport
Posted on by 330

After i ran DBCC (check only) purchase order i got this error :

( pending or posted invoices exist for purchase order  PO_######## . Changing the currency or the vendor is not allowed.)

This error is repeated with all POs. No.

Kindly can any one know what could be the reason....?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    It can be caused by user error   see this post for the explanation and steps to fix - but I would not expect this to be an issue for all orders. There have been hotfixes in this area previously

    www.erpsoftwareblog.com/.../microsoft-dynamics-ax-2012-resolution-one-invoices-unsaved-changes-issue

  • ihabmahmoud Profile Picture
    330 on at

    Thanks Magic for replying,

    All POs. Invoiced having physical voucher , financial voucher &  job status executed

    I do not have any pending invoice......

  • Community Member Profile Picture
    on at

    Hello Ihab, 

    We have been doing a DBCC (check only) on the purchase orders and had the same exact error message for all of our PO created since go-live. 
    We are currently searching the reason for those error message. 

    I was wondering if you solved these errors and if so, how did you manage to solve it ? 

    Thank you. 

  • ihabmahmoud Profile Picture
    330 on at

    Hello  VincentFC,

    Unfortunately i did not solve my errors.

    Hope i do.

    BR.

  • Community Member Profile Picture
    on at

    Hi ihabmahmoud ,

        Have you found the solution?

    regards,

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    You can check invoice history and matching details in accounts payable / inquires

  • Suggested answer
    Alex Kwitny Profile Picture
    395 on at

    Ignore it. The consistency check can produce errant results.

    There are specifically coded checks, then generic checks that run during it.

    The generic checks are where it loops over records in a table, then calls "validateWrite" and "validateField" for the record.

    In your case, AX has somewhat odd validation logic executing for a generic check. You can see this by taking any invoiced PO an calling this code:

    PurchTable::find("PO-000007").validateField(fieldNum(PurchTable, orderaccount));

  • Suggested answer
    SouravDam Profile Picture
    11,730 on at

    Hi Ihab Mahmoud,

    Appreciate if you kindly share some input on below points to understand the root cause of this.

    --- At any point of time, the invoice matching validation (2 way, 3 way) was activated in AP parameters form?

    --- Later, is that matching validation removed from the setup?

    I think, you may have created purchase orders which falls under these criteria where during PO creation, the matching validation was active but later the setup is changed before the PO is invoiced.

    What Mahmoud Hakim has already mentioned; is the simplest way to fix this issue.

    You have to go to AP > Inquiries and reporting > Invoice > Invoice history and matching details. Here, you have to select the purchase order for which job status must be in Waiting stage and then 'Delete' it. 

    55718.JPG

    Now go back to the purchase order and you will find the Invoice tab is enabled and the PO is ready for posting invoice.

    Best regards,
    Sourav Dam

    Please take time to click 'Yes' against the answers that help you guide in right direction to help other community members.

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