Skip to main content

Notifications

Announcements

No record found.

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./
}
}
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,883 Super User 2024 Season 2 on at
    Item Charge Assignment (Purch)
    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
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,770 Super User 2024 Season 2 on at
    Item Charge Assignment (Purch)
    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans