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