Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Script usage limit exceeded after only 30 records??
Hi,
We are developing a Server-side script, for kits and assemblies, triggered Before Save. It goes into each Member of the Kit/Assembly and totals the Sales Price and Purchase Prices, and write those totals on the Kit/Assembly. The script works correctly, no doubt about it.
However, I am getting Usage Limit Exceeded errors after having only accessed 30 members! The limit is supoposed to be 300! Is this normal? Are there any work arounds? Here is the relevant loop from my script:
... for (i=1; i<=memberCount && i<=30; i++){ ... fieldValues = nlapiLookupField('inventoryitem', itemID, fieldsToLookup, null); ... ... 0