@k1ko interesting, when I run it in the debugger, it stops execution and the record isn't saved. would it execute differently when running outside the debugger?
@al3xicon I tried debug, error, and emergency
Is there a way to modify the PO workflow to add an exception when this script is running? I could set a custom field to indicate the script is accessing the record.