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 :
Small and medium business | Business Central, N...
Suggested Answer

Item Charge Assignment (Purch)

(1) ShareShare
ReportReport
Posted on by
Hi all 

I created a custom Page API using the  Item Charge Assignment (Purch) table.However when i try to do a post request to the endpoint i get the error below.This is happening even though the the Document number in the error is there in the Purchase header.Can someone please help me
 
 
/error/: {
/code/: /Internal_InvalidTableRelation/,
/message/: /The field Document No. of table Item Charge Assignment (Purch) contains a value (107213) that cannot be found in the related table (Purchase Header). CorrelationId: 6aa2015d-c72e-45cf-9a56-77d34839d785./
}
}
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,777 Super User 2026 Season 1 on at
    Hi,
     
    this is a logic error because the No. of PO does not exist.
     
    you must create a purchase order with No. = 107213 or try to post with another already exist in PO table.
     
    Best regards, 
    Mohamed Amine MAHMOUDI
  • Suggested answer
    YUN ZHU Profile Picture
    97,939 Super User 2026 Season 1 on at
    Hi, the processing of this function is a bit special. You need to add the following processing before opening the page. If you open the table or page directly, no value will be displayed.
     
    Hope this can give you some hints.
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans