Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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,