# Script execution time exceded

**URL:** <https://connective.celigo.com/t/script-execution-time-exceded/5155>\
**Category:** Integrator.io\
**Created:** [July 31, 2025, 1:52pm UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155 "2025-07-31T13:52:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Lacey](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Matthew\_Lacey](https://connective.celigo.com/u/Matthew_Lacey)\
**Post date:** [July 31, 2025, 1:52pm UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/1 "2025-07-31T13:52:05Z")

</div>

Hello all,

What could be a typical cause of the below error on an export stage of a flow;

_**Message:  
Script Execution Time Exceeded.**_

_ **Code: sss\_time\_limit\_exceeded** _

_ **Source: NetSuite** _

_ **Classification : Too large** _

This is a NetSuite saved search exporting inventory levels for items that have recently had their inventory level modified. The errors seem to happen at sporadic times. Is it as simple as the search returning too many items? That seems unlikely.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![praveenbasani](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/praveenbasani/32/9585_2.png) [@praveenbasani](https://connective.celigo.com/u/praveenbasani)\
**Post date:** [July 31, 2025, 3:55pm UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/2 "2025-07-31T15:55:06Z")

</div>

Hi @Matthew_Lacey

This error is usually seen when NetSuite takes more than 5 mins to execute/complete the search. It could be because of multiple factors and one of those could be the search is complex.

I’d advice you to create a support case with us so the team can take a closer look at the search and analyse other factors too.

Thanks.

---

<div class="post-metadata">

**Author:** ![Matthew\_Lacey](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Matthew\_Lacey](https://connective.celigo.com/u/Matthew_Lacey)\
**Post date:** [August 1, 2025, 7:36am UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/3 "2025-08-01T07:36:05Z")

</div>

Thanks Praveen, I’ll create a support ticket.

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [August 1, 2025, 9:03pm UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/4 "2025-08-01T21:03:21Z")

</div>

Try decreasing the batch size under advanced and try removing fields you don’t actually need.

> NetSuite's search APIs will by default return up to 1000 records every time you request a new page of results. This is problematic if you need to execute a SuiteScript based hook on the records before they are exported (in which case you will likely run out of SuiteScript points or hit NetSuite instruction count limits), or if the individual records you are exporting are very large such that the sum of all 1000 records exceeds 5 MB (which is also not allowed). For either situation, this field can easily be used to tell [integrator.io](http://integrator.io) to break down the default 1000 record batches into smaller batches where you define the ideal size.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/6770377bbebc1e9fcda3543b649a686c9c210cdd.png)

---

<div class="post-metadata">

**Author:** ![Matthew\_Lacey](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Matthew\_Lacey](https://connective.celigo.com/u/Matthew_Lacey)\
**Post date:** [August 4, 2025, 9:25am UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/5 "2025-08-04T09:25:45Z")

</div>

Hi Tyler, this is great advice thanks. I’ll give it a try and see if sorts things out.

---

<div class="post-metadata">

**Author:** ![Matthew\_Lacey](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@Matthew\_Lacey](https://connective.celigo.com/u/Matthew_Lacey)\
**Post date:** [August 6, 2025, 9:23am UTC](https://connective.celigo.com/t/script-execution-time-exceded/5155/6 "2025-08-06T09:23:35Z")

</div>

I can confirm I’ve had no errors since making the changes to the batch size limit. Thanks again for the help!
