RE: How to handle when we get more result form saved search in suitelet and get SSS_USAGE_LIMIT_EXCEEDED
I have created a suitelet where I have to field “Start Date” and “End Date”. on the basis of the this two date the amount of sales order is coming via saved search. but when script consumed 1000 governance unit it shows error “SSS_USAGE_LIMIT_EXCEEDED”.
So how can we handle it in suitelet.?
Please guide and help…..
It is odd that you are running into governance while reading search results unless your doing something else that consumes governance for each result.
It’s hard to make any recommendations on how to handle governance without viewing your code.
You may be able to optimize the script to reduce governance.
If you can’t optimize you are going to need to find a way to break up the processing between multiple runs.
1. You could use a map/reduce script that has a lot of advantages when processing large amounts of data.
2. You can use a scheduled script that can process results until governance runs low and then reschedule. You can query governance remaining with the N/runtime module.