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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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