When Creating a Shipment via API in Acumatica, I receive the error
Another process has updated 'SOOrder' record. Your changes will be lost
The way we create the Shipment is as follows:
- Add the sales order to the shipment.
- Save.
- Clear the Screen. oScreen.SO302000Clear();
- Load the created Shipment.
- Add Shipment details such as Bin Locations, ship qtys, Batch/Serials etc.
- Save.
The issue happens if the user loads the created shipment in Acumatica right after it has been created. Then, when the API attempts to post the shipment details (Steps 4 to 6), the API throws the error
PX.Data.PXLockViolationException: Error #90: Another process has updated 'SOOrder' record. Your changes will be lost.
Is there anyway we can avoid that Lock Violation Exception when editing a Shipment that is currently opened in the UI?