How to overcome `SSS_SCRIPT_USAGE_LIMIT_EXCEEDED` ...
# suitescript
s
How to overcome
SSS_SCRIPT_USAGE_LIMIT_EXCEEDED
error in Suitescript 2.0 ? Is there a way without actually going to map/reduce script?
n
In which script type you are encountering this error?
s
Scheduled Script.
p
Depends very much on what you are doing. somtimes you can refactor (optimize) the code, other times, map/reduce is a better/ the only option
w
You can monitor the usage in the scheduled script and structure the code so that it can be restarted when the remaining points are nearing the limit. https://system.netsuite.com/app/help/helpcenter.nl?fid=section_N3352047.html
w
When nearing the governance limit, you can reinitiate your script using the task module.
n
You need to reschedule the script when the usage limit is about to exceed.
s
It also largely depends on what you are doing, instead of just "going to MR" or re-triggering your scheduled script, you should try to look for optimizations. Are you doing some load/search in a loop, ask why are you running out of governance and is there a smarter way to accomplish what you are doing.