While posting the Expense report to Dynamics 365 BC Purchase Invoice, we are getting an error as 'The field Document No. of table Purchase Line contains a value that cannot be found in the related table (Purchase Header)'.
Hi, from the error message, the Document No. in the Purchase Line cannot be found in the Purchase Header. If this is operated directly in BC, this problem will not occur unless there is customization. You may have used the API or Configuration Package to import the Purchase Line data, but not the Purchase Header? Or is the Document No. in the Purchase Header entered incorrectly? Anyway, check the data in Purchase Header.
In order to answer your question, we need more information about how the Purchase Invoice is created. It seems that the import/integration is not populating the Document No on each of the Purchase Lines.
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.