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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Vouchers are not getting generated for PO invoices

(1) ShareShare
ReportReport
Posted on by 93

Hi Experts,

Our client is experiencing an intermittent issue in D365FO where, for some PO invoices, the accounting voucher is not generated after invoice posting. There does not appear to be any consistent pattern to identify which invoices will be processed successfully and which ones will fail.

For example, we have cases where one invoice against a PO successfully generates the accounting voucher, while another invoice against the same PO does not.

The affected invoices can be found in General ledger > Periodic tasks > Documents pending accounting, where they appear with an Error status. I have also shared the relevant error message below for reference.

ERROR MESSAGE:

Error encountered while processing documents for journalization processDocument number: XXXXXXXXXX. The document contains distribution records that are not valid as they are not related to the current accounting event record. Posting has been cancelled.

 

This is a critical issue for the client because these invoices cannot proceed for payment until the accounting voucher is successfully generated.

Has anyone encountered a similar issue in D365FO? What could be the possible root cause, and what would be the recommended approach to troubleshoot and resolve this issue?

 

Regards

MOA

Categories:
  • André Arnaud de Calavon Profile Picture
    308,252 Super User 2026 Season 2 on at

    Hi MOA,

     

    The error message is too generic to tell you the exact root cause. As a mitigation, you can try to reset the accounting distributions on the pending invoice and/or purchase order.

    To get to the root cause, it will be interesting to know if there was any change to the environment or settings? E.g. did you change accounting structures?

     

  • Suggested answer
    Arvind Bharti Profile Picture
    1,138 Super User 2026 Season 2 on at

    HI,

     

    Can you share some screenshots? 

     

    Is this because of some wrong data entered? Like how did you pass from pending documents and moved to posted or trans freed to ledger?

     

    This is the new framework from Microsoft like how we have subledger to ledger transfer where if there is any accounting entry data is not correct before posting it gets listed here and we can take action on top of it move to ledger posting.

     

    So would be great to analyse these error message it might be due to some data issue.

     

     

  • MA-29041525-0 Profile Picture
    93 on at

    @André Arnaud de Cal... Thanks for the reply, the reset distribution buttons on Invoice or PO are greyed out. Plus, there is no update or changes on the environment, this issue is coming from march 2026 and they went go live on Feb, so its happening from beginning. Previously, we used to reset description and generate accounting and voucher gets generated but from a month that option is also not available as i mentioned buttons got greyed out.

  • MA-29041525-0 Profile Picture
    93 on at

    @Arvind Bharti thanks for the respnse. We don't see any issues with data but if you can guide what and where to look at if there are any issues due to data.

  • MA-29041525-0 Profile Picture
    93 on at

    Hi All,

    We have also ran same scenario on lower environment with everything replicating same but it passes smoothly there. There is no common link between stuck invoices. Any responses!!

  • Suggested answer
    Giorgio Bonacorsi Profile Picture
    3,565 Super User 2026 Season 2 on at

    Hello, 

     

    Are there some custom? Because, OOB, the system doesn't allow to go forward with posting if the distribution is not correct. Please, share as much information data possible.

     

    You can try to run the batch to reset the distribution, but I should be run before the posing: https://dax365fo.org/2023/10/24/purchase-order-error-unable-to-determine-the-next-valid-target-source-document-line-accounting-status/

     

    Thank you, 

    Giorgio

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 264 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 164 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans