Troubleshooting Errors

Module not found

You may see this error if you are using the require Function. The require Function has no global context. Consequently, relative paths do not work for the require Function unless you import require() as a dependency of define().

If you receive the Module does not exist error, try replacing relative paths with absolute paths.

For more information, see require Function.

You do not have permission to load this module

Review your module scope settings. For a full description of support module scopes, see Controlling Access to Scripts and Custom Modules.

Related Topics

SuiteScript 2.x Custom Modules
SuiteScript 2.x Anatomy of a Custom Module Script
SuiteScript 2.x Custom Module Tutorial
Module Dependency Paths
Naming a Custom Module
Custom Module Examples
Custom Modules Frequently Asked Questions

General Notices