Error Name: RCRD_DSNT_EXIST
Error Message: That record does not exist.
When you are using the SuiteScript to do the customization, you may encounter this kind of error in certain situation. This article will discuss the possible cause and how to troubleshoot this error.
This error means you are trying to operate on a record that does not exist in the system.
var rec = record.create({type: 'customer'});
...
rec.setValue('id', '23456');// The customer with internal id 23456 does not exist
...
rec.save(); // This may cause the error
This may happen when you try to copy a record with its field value and do exclude the internal id field.
Just remove the setValue id row then the record can be created without exception.
There are several reasons that can cause the RCRD_DSNT_EXIST error, above did not contain all the possible reasons.
The key to troubleshooting this error is keep in mind that this exception is thrown when a Record instance not operated in expected way.
Check all the place your code create / load / set value to a record instance, and make sure the record is created / loaded correctly before you operate on it.
Hope this article can help you understand why this error may happen and give you some ideas to resolve the error.
About Us
Concentrus is a leading provider of innovative cloud-based enterprise resource planning (ERP) solutions, including NetSuite. Our team of NetSuite experts offers a range of services, including NetSuite price analysis, NetSuite training, and NetSuite integration services.
Our goal is to help businesses of all sizes maximize their investment in NetSuite by providing expert NetSuite cost optimization and implementation strategies. With years of experience as a NetSuite partner, our NetSuite administrators and NetSuite consultants are well equipped to help businesses of all sizes with their NetSuite consulting needs.
Whether you're looking for a NetSuite consultant to help with your NetSuite implementation or you need ongoing NetSuite support, Concentrus is here to help.
Read About Our Implementation Methodology
Want more NetSuite Tips and Tricks? Check out our Short & 'Suite videos