I have created a C# web service suing the Sage 300 objects, and all is working well except when I try to add another line to an existing order I get:
"Order Detail. Attempt to modify a different record than was retrieved."
This occurs on the code
oeOD.Update();
ORDUNIQ, ITEM, QTYORDERED, CUSTOMER, LINENUM have been set successfully.
If I send a POST instead of PUT, I get a different error in the same place:
"Internal error. Order Detail. Operation not allowed."
Anyway around this other than disallowing adding items to orders in the calling app?