Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Record Does Not Exist Error
I wrote a suitelet script that allows me to select the record type and submit it to delete all records for that record type. I'm doing this to cleanout my production environment in preparation for go-live. The issue that I'm running into is after the record is deleted, I get an error stating the Record does not exist which throws an error and forces my script to stop. I'm not sure why it's doing that.
Here's the error I'm getting.
Function: productioncleanup
Error: RCRD_DSNT_EXIST
That record does not exist.
Stack Trace: deleterecords(ProductionCleanup.js:92)
productioncleanup(ProductionCleanup.js:52)
My debug logs shows the record was deleted right before and I do notice that when I manually delete a record, it takes me back to the record so it gives me this error.