Skip to main content

Notifications

Business Central forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

AL scripting Purchase line thows error : Internal_InvalidTableRelation

Posted on by 7
Hello,

I want to create Purchase Credit Memo.

First I crate Purchase Header for that and that is getting created successfully and I get a document no.

using same document no. I try to create a Purchase Line. and that gives me error :
 
error: {
  code  :  Internal_InvalidTableRelation,
  message:  The field Document No. of table Purchase Line contains a value (38212) that cannot be found in the related table (Purchase Header)
}

Purchase Header:
 

Purchase Line :




Can someone please check above and help me understand why this error is coming ? as I have Record in Purchase Header but still error says Header Record not found.

Let me know if more details required.

Thanks.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans