When facing an issue like this, the first step is to check whether any getText methods have been used instead of getValue. Next, verify if the value is sourced from another field. If it is, you should retrieve the value using a search. I encountered this error while executing my Map/Reduce script. Although the error… Continue reading name: “SSS_INVALID_API_USAGE”, message: “Invalid API usage. You must use getValue to return the value set with setValue. “,
Tag: SuiteScript Error
Error in Client Script: INVALID_FLD_VALUE
The root cause of this error was because of the lack of permission to a role. A specific role doesn’t had the permission for location. When the sales orders are created two custom fields will be set with available quantities of that particular item selected in the sales order from two particular locations. Since, the… Continue reading Error in Client Script: INVALID_FLD_VALUE
Vicarious emails permission errors
ISSUE When trying to send emails through Suitescript for a particular role, an error occurred: “Permission Violation: You need the ‘Vicarious emails’ permission to access this page. Please contact your account administrator.” SOLUTION Navigate to Setup > Users/Roles > Manage Roles Preferred Role: Click Edit Click Permissions Click Setup Permission: Select Vicarious Email Level: Select Full Click Add Click Save
Record.setSublistValue() Errors and Fixes
Here are some common errors that can cause while using Record.setSublistValue() function. If not handled these errors can stop the sublist values from rendering on the NetSuite suitelet page. INVALID_FLD_VALUE errorThis error can happen if the value is passed as the value parameter in the Record.setSublistValue() function. The type should match the value passed.e.g: form.subLists.custpage_sublist1.addField({id:… Continue reading Record.setSublistValue() Errors and Fixes
ERROR Custom Module Call Undefined in SuiteScript
In calling Custom Modules in SuiteScript 2.0, make sure to beautify or format your code to avoid undefined calls from the originating script. Sample of a not well-formed Custom Module script: Sample of a well-formed Custom Module script:
Resolve SuiteScript Error – Invalid date value (must be D/M/YYYY)
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.