That code is throwing a 'Record has been changed' ...
# suitescript
t
That code is throwing a 'Record has been changed' error. Does anyone have any idea what would be causing that?
e
@Tyler during the time the script is updating sales orders, another script or user is updating the same sales order, so if they clicked save before the script updated the sales order, you get that error
t
@eminero thanks, that makes sense. Would it be possible if I, theoretically, added a try/catch block and then check the error message to see if the error was that the record had changed, and then try to re-save the record, or even reload the record and then save it?
e
@Tyler I have not done that before but it seems feasible, another approach would be, store the sales order id that failed with that error and then decide in which way you reprocess them