hello, I have a MR script that creates Billing Sch...
# suitescript
k
hello, I have a MR script that creates Billing Schedule per line of a Sales Order. The script seemed to be working fine but it threw the following error on a Sales Order that has about 600 lines. Can anyone help me with what the issue is?
"type":"error.SuiteScriptError","name":"SSS_USAGE_LIMIT_EXCEEDED","message":"Script Execution Usage Limit Exceeded"
w
You have a limited amount of usage in each map(or reduce) execution. Make sure you don't have a lot of loops inside them that consumes points.
k
the only loop I have in the script is to loop through the lines of the sales order record.
w
What does the script do in that loop? Perhaps it is doing something that costs points for each line, thus using up all the points available? Could it be that you have a userevent-script that is triggered on the sales order, and maybe that can't handle that many rows?