Hello experts,
I'm facing this error on attempting to add a purchase document delivery based on a purchase order through the SAP Business One 9.0 SDK (9.00.057).
The error I get is: "Cannot add or update this document, since the line in the base document has been updated".
I validated the following conditions:
- Base type of the purchase document delivery is correct (22: Purchase order).
- Base line number of the purchase document delivery items fits the line numbers of the purchase order.
- Quantity and price are exactly the same in both purchase document delivery and purchase order.
- Base purchase order's status is 'O' (Open) and it is not canceled ('N'), as all of its items.
However, when the user adds the same purchase document delivery based on the same purchase order using the "SAP Business One Client (64-bit)", it succeeds. What am I missing?
Update:
I noticed that when I try to insert the same invoice with only 1 item at a time (instead of all lines together in the same invoice), insertion succeeds.
Kind regards,