# Customer Financials Flow Failure in Salesforce-NetSuite IO. #Script Execution Time Exceeded. # Parentheses are unbalanced

**URL:** <https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781>\
**Category:** Integrator.io\
**Tags:** integration-app, salesforce, netsuite\
**Created:** [June 10, 2025, 10:28am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781 "2025-06-10T10:28:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goutham\_Pothugalla](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Goutham\_Pothugalla](https://connective.celigo.com/u/Goutham_Pothugalla)\
**Post date:** [June 10, 2025, 10:28am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/1 "2025-06-10T10:28:05Z")

</div>

Dear All,

We are experiencing a critical production issue with the Customer Financials Flow within our Salesforce-NetSuite IO integration, requiring immediate attention.

The flow is failing under the following conditions:

Export Type: All or with a Limit: The flow fails with the error: "Script Execution Time Exceeded."

Export Type: Delta: The flow fails with the error: _"Failed to run saved search because Search error: Parentheses are unbalanced."_

The search filters being used are:

**filters [[["custentity\_celigo\_sfio\_sf\_id","isnotempty",""],"AND",["transaction.posting","is","T"],"AND",["max(transaction.trandate)","onorafter","startoflastfiscalyear"]],"AND",[["lastmodifieddate","onorafter","31/05/2025 6:30 pm"]]]**

Has anyone encountered similar errors or have any insights into resolving these issues? Any suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [June 10, 2025, 11:53am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/2 "2025-06-10T11:53:47Z")

</div>

It seems you are using a group in your filter but it looks like it is not set properly.:

Seems like the lastmodifieddate is in a apart group. Looks like a overnesting..

Can you share a screenshot of the filter?

---

<div class="post-metadata">

**Author:** ![Goutham\_Pothugalla](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Goutham\_Pothugalla](https://connective.celigo.com/u/Goutham_Pothugalla)\
**Post date:** [June 10, 2025, 1:17pm UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/3 "2025-06-10T13:17:11Z")

</div>

Hi Nuri,

Find below the Screenshots of NetSuite Saved Search Filters and Results.

 ![Screenshot 2025-06-10 184534](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/97cb978b35bf1189af7ff0a671caa5912fb56606.png)

 ![Screenshot 2025-06-10 184645](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/e/e5578c9b35f8238b9b4b190467453d9e9b307846.png)

---

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [June 10, 2025, 4:10pm UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/4 "2025-06-10T16:10:36Z")

</div>

Could you also provide some screenshots of your Celigo export along with any additional criteria you're using?

---

<div class="post-metadata">

**Author:** ![Goutham\_Pothugalla](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Goutham\_Pothugalla](https://connective.celigo.com/u/Goutham_Pothugalla)\
**Post date:** [June 10, 2025, 4:26pm UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/5 "2025-06-10T16:26:46Z")

</div>

Hi Nuri,

It's an IA flow, currently I have not set any Filters on the flow.  
Even in IA settings(For Customer Financials); Only Saved Search is selected.

 ![Screenshot 2025-06-10 215716](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/184167fbd1808ded4cff45acb61bda74d409a5b4.png)  
 ![Screenshot 2025-06-10 215728](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/e/e9fab6aa4b522e46ffac587362594461d5115f55.png)

---

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [June 11, 2025, 6:16am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/6 "2025-06-11T06:16:20Z")

</div>

Interesting. Its a bit difficult as I cannot see everything from here however could you try duplicating the saved search in NS and stripping it down to a minimal version, just one or two default fields, no filters or extra settings and see if that works?

---

<div class="post-metadata">

**Author:** ![friendoftuesday](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@friendoftuesday](https://connective.celigo.com/u/friendoftuesday)\
**Post date:** [June 11, 2025, 9:00pm UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/7 "2025-06-11T21:00:48Z")

</div>

@Goutham_Pothugalla Is it possible that you had previously used expressions in your saved search? I've run into an issue previously where simply unchecking the "Use expressions" box but not actually removing the parentheses can cause issues when removing filters from the search criteria since it now has unbalanced (hidden) parentheses.

---

<div class="post-metadata">

**Author:** ![Goutham\_Pothugalla](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Goutham\_Pothugalla](https://connective.celigo.com/u/Goutham_Pothugalla)\
**Post date:** [June 16, 2025, 9:13am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/8 "2025-06-16T09:13:59Z")

</div>

Hi @friendoftuesday,  
Yes, I’ve tried this and noticed that the filters didn’t have parentheses earlier.  
Appreciate the suggestion—thanks again!

---

<div class="post-metadata">

**Author:** ![Goutham\_Pothugalla](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@Goutham\_Pothugalla](https://connective.celigo.com/u/Goutham_Pothugalla)\
**Post date:** [June 16, 2025, 9:18am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/9 "2025-06-16T09:18:47Z")

</div>

Hi Nuri,  
Thanks for pointing out the things to check. I’ve tried this—while the flow is able to pick up records using default or standard fields, it doesn’t seem to work when using summary fields.  
Appreciate your help!

I’m currently working on this with support, and if we find a solution, I’ll be sure to keep you posted—it might be helpful for similar use cases in the future.  
Also, feel free to let me know if there’s anything else you’d like me to look into.

---

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [June 16, 2025, 9:31am UTC](https://connective.celigo.com/t/customer-financials-flow-failure-in-salesforce-netsuite-io-script-execution-time-exceeded-parentheses-are-unbalanced/4781/10 "2025-06-16T09:31:17Z")

</div>

Great to hear! Sometimes it helps to go step by step and reduce things to a minimal test case, especially when working with these kinds of saved searches.
