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:

  1. add sales order shipment.
  2. save.
  3. clear screen. oscreen.so302000clear();
  4. load created shipment.
  5. add shipment details such bin locations, ship qtys, batch/serials etc.
  6. 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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -