process - Acumatica Create Shipment Lock Violation Exception Issue -
when creating shipment via api in acumatica, receive error 'another process has updated 'soorder' record. changes lost'.
the way create shipment follows:
- add sales order shipment.
- save.
- clear screen. oscreen.so302000clear();
- load created shipment.
- add shipment details such bin locations, ship qtys, batch/serials etc.
- save.
the issue happens if user loads created shipment in acumatica right after has been created. then, when api attempts post shipment details (steps 4 6), api throws error 'px.data.pxlockviolationexception: error #90: process has updated 'soorder' record. changes lost.'.
is there anyway can avoid lock violation exception when editing shipment opened in ui?
many thanks, jose
saving shipment triggers long-running, asynchronous operation. need wait process complete before else, calling getprocessstatus() , retrying until completed. otherwise, you'll run concurrency issues second update call.
Comments
Post a Comment