Discussions
NSC | How to resolve script error: MODULE_DOES_NOT_EXIST
Scenario
The user has a client script that when he tries to create a script record in NetSuite using this file, he encounters the MODULE_DOES_NOT_EXIST error.
Solution
First thing we need to check is the content of the script itself. The define function at the beginning of the script contains the modules that are loaded into the script. Users should:
1. Double check for any grammatical errors.
2. Validate if the module works for client-side scripts, server-side scripts, or both.
3. If no issues were found in the script’s content, check the file name of the script. There are times where users forget to add .js therefore the file is not recognized as a JavaScript file.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see