Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Why would nlapiInitiateWorkflow() throw "RCRD_HAS_BEEN_CHANGED" exception?
Howdy everyone,
I have a scheduled script that is processing a few hundred sales orders daily. It *mostly* works fine, but there are 10-15 events a day where the call to nlapiInitiateWorkflow() results in NetSuite throwing a
exception. I've checked and verified there are no updates in my code, it's a dead simple script, 71 lines most of which are infrastructure and plumbing.RCRD_HAS_BEEN_CHANGED
Considering we can't pass an nlobjRecord reference to the nlapiInitiateWorkflow() method I don't see how I can be the cause of a concurrency fault. I'm tempting to put a simple retry mechanism in place but I'd rather understand WHY this is happening first.
Steve Klett | Senior Developer
NetValue Technology
0