I have the following script which duplicates a record and then imports line items from a related record.
The duplicate record script step (line 13) sometimes fails to "execute" but the script runs till the end. This happens like 1 in 30 maybe, but I can't reproduce it with the script debugger. So I added a small error check (line 15) so that the scripts exits if the error check is not correct (which exits the script when the record didn't got duplicated)
Any body any idea why this happens?