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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Dynamics 365 BC - Purchase Invoice Error

(0) ShareShare
ReportReport
Posted on by 18
Hello,
 
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)'.
 
Could you please help us resolve this?
 
 
I have the same question (0)
  • Suggested answer
    Dallefeld Profile Picture
    197 User Group Leader on at
    Dynamics 365 BC - Purchase Invoice Error
    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.
  • Suggested answer
    YUN ZHU Profile Picture
    93,872 Super User 2025 Season 2 on at
    Dynamics 365 BC - Purchase Invoice Error
    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.
     
    Hope this helps as well.
    Thanks.
    ZHU

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,214

#2
Sumit Singh Profile Picture

Sumit Singh 2,145

#3
YUN ZHU Profile Picture

YUN ZHU 1,887 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans