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&lt;=memberCount && i&lt;=30; i++){ ... fieldValues = nlapiLookupField('inventoryitem', itemID, fieldsToLookup, null); ... ... Without the i<=30 limited, I get this error:Date & Time: 3/15/2007 3:32 pmRecord Type: KitInternal ID: 7835Execution Time: 0.28sScript Usage: 300Script: writeMemberDataError: SSS_USAGE_LIMIT_EXCEEDEDScript Execution Usage Limit ExceededStack Trace:#writeMemberData.nlapiSearchRecord(inventoryitem, null, filters, columns) #writeMemberDataScript Usage 300? I'm nowhere near that. What's going on? Does anyone have any insight into this?