Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
How to handle two scripts trying to update the same item record in Xedit?
Hello, I've got two Suite Scripts (both 2.1, user event, after submit) which update item records (in one we're updating the pricing sublist from custom item fields, for the other we're writing to the locations sublist from other custom item fields).
When updating the relevant fields using inline editing via a saved search (xedit), we're getting errors, which I believe are due to the two scripts trying to write to the same record at the same time.
Usually I get "Error: RCRD_HAS_BEEN_CHANGED" (sometimes "Error: UNEXPECTED_ERROR").
Any recommendations for setting things up so the two scripts won't conflict? Hopefully something simple we can add to one or both of the scripts?