Hi everyone,
I hope you're all doing well. I'm currently facing an issue in Dynamics 365 Business Central and would appreciate any insights or solutions you might have.
Issue:
When creating a purchase order using the dropship functionality, I encounter an error stating that "The Purchase Line does not exist" (as seen in the screenshot below). This seems to be caused by my custom code that fills the "Area" field automatically based on the variant. I added the "Area" field in the variant table and linked it with the purchase line table. Here's the code snippet:
Error Message:
"The Purchase Line does not exist. Identification fields and values: Document Type='Order', Document No.='PO000095', Line No.='10000'"