SuiteScript Statement and Instruction Limits

NetSuite enforces execution limits to help prevent scripts from running indefinitely or consuming excessive resources. If a script exceeds these limits, NetSuite throws an error and terminates execution. This error varies depending on which script version is used.

Important:

SuiteScript 2.1 is now the standard scripting version. Update scripts that use SuiteScript 1.0 or the SuiteScript 2.0 or 2.x version annotations to SuiteScript 2.1 by the 2028.2 release to ensure continued compatibility. For more information, see Transitioning To SuiteScript 2.1.

If you encounter these errors, you should examine all of the execution loops in your script to ensure that they contain either a terminating condition or a condition that can be met.

Related Topics

General Notices