Skip to main content
Business Central forum
Suggested answer

Item Charge Assignment (Purch)

editSubscribe (2) ShareShare
ReportReport
Posted on by 6
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./
}
}
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,926 Super User on at
    Item Charge Assignment (Purch)

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans