The error is encountered when setting a string value for a Date field, as shown in the code snippet below: Solution The error being thrown by NetSuite is an expected behavior. Date field cannot accept string objects values. To be able to pass a Date value to this type of field, user must first convert the string value to Date Object using format.parse(options) under N/format module.