Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Script Execution Usage Limit Exceeded
We receive the following error message when trying to run the script below.
Environment: Production
Date & Time: 2/14/2014 3:32 pm
Execution Time: 790.35s
Script Usage: 10005
Script: UpdateAllBisac
Type: Scheduled
Function: updateAllBisac
Error: SSS_USAGE_LIMIT_EXCEEDED
Script Execution Usage Limit Exceeded
Stack Trace: updateAllBisac(updateallbisac.js$843955:52)
function updateAllBisac() {
var searchResults = nlapiSearchRecord('item', 'customsearch5022' , null, null);
var searchedItemId;
var lastId;
var completeResults = new Array();
var arrNewFilters = [];
if (searchResults != null) {
completeResults = completeResults.concat(searchResults);
}
else {
completeResults = null;
nlapiLogExecution('Debug', 'No item found', weight + ' Null result');
}
if (completeResults != null) {
if (searchResults.length == 1000) {
while (searchResults.length == 1000) {
//Initialize variable
lastId = "";
//Get Record Id of Last record,