I have some simple code like this: ``` ...
# suitescript
a
I have some simple code like this:
Copy code
var existingIaid = scriptContext.newRecord.getValue('custbody_erp_bp_byproductadjust');

            if (bomentries.length == 0) {
                record.delete({
                    type: 'inventoryadjustment',
                    id: existingIaid
                })
                log.debug('deleted', existingIaid)
                return
            }
When it the conditions are satisfied it gives me:
Items you have requested in the record have been deleted since you retrieved the form
It deletes the ia fine and then instead of returning it gives me this error.
b
sounds like an error being thrown after submit on the inventory adjustment
a
There are no scripts running there?
b
workflows?