Sage 300

 View Only
  • 1.  Integration using objects

    Posted 03-09-2020 15:08

    I have created a C# web service using 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?



    ------------------------------
    Phil McIntosh
    President
    Friendly Systems, Inc.
    Asheville NC
    678.273.4010 ext 5
    ------------------------------