Loop error

Jennifer Red
Tera Expert

I'm doing a "for each item" loop and there's only 10 items in my current test, but it's giving me the "max iteration limit exceeded" error. Any ideas how this could be happening? I'm completely lost at this point.

4 REPLIES 4

Hitoshi Ozawa
Giga Sage
Giga Sage

Difficult to know the cause without the flow that you've designed.

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @Jennifer Red 

Can you check what is the value of property sn_flow_designer.max_iterations set in your instance.

 

Please mark the answer as helpful and correct if helped.

Kind Regards,

Ravi

Moin Kazi
Kilo Sage
Kilo Sage

Hi @Jennifer Red ,

 

Please check the sn_flow_designer.max_iterations property in the sys_properties table. If the value is set too low, you can increase it as needed.

MoinKazi_0-1730030688686.png

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.

 

Thank you!
Moin Kazi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

Hitoshi Ozawa
Giga Sage
Giga Sage

Common cause of "max iteration limit exceeded" error are the followings:

  1. Too Many Records: Processing a high number of records that exceeds the iteration limit
  2. Recursive Flows: A flow that calls itself directly or indirectly
  3. Infinite Loops: A loop without a proper termination condition

The execution result shows that you are trying to process  more than 1000 records.  sn_flow_designer.max_iterations by default is to 1000 record. It seems like filter condition in "Look Up Records"  is not setup correctly and selecting too many records.

Open the table you're using in Look Up records and manually enter the filter condition there to see how many records are selected. It is not recommended to use Flow Designer to process too much records because it will impact performance.

If this is just a once time job, try to use Fix script to update the record instead of using Flow Designer.