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

Notifications

Announcements

No record found.

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,390 Super User 2025 Season 2 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
    95,327 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans