RE: How to handle when we get more result form saved search in suitelet and get SSS_USAGE_LIMIT_EXCEEDED

Hello Everyone,

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…..

Thanks.!

Ajay_K_Mandloi Rookie Asked on July 26, 2022 in SuiteScript.
Add Comment
4 Answers

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.

Rookie Answered on July 26, 2022.

Understand Marvinroman – its hard to suggest and idea without viewing code but please see the requirement (above comment). I would  show  you or talk about my logic as well..

And I cant use map/reduce and scheduled script because the whole process is customize means I am doing it on suitelet so we do not have any option.

on July 29, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.