2329
Views
11
Comments
"Detected a recursive iteration over the same list." Exception
Question

Hello Team,


I am stuck in a situation where I am using Local List Record to bind list of data to table record, but when I am trying to refresh the Table container I am getting this exception, "Detected a recursive iteration over the same list."


Can someone help me out here.


Thanks and Regards,

Atul Patel

2020-10-02 21-47-41
Samuel Nunes Marques

Hi Atul,

Are you copying your Local List Record to another variable and iterating both variables in your logic? If yes, use the built in function List Duplicate to do that.

Hope it can help you.

Samuel

UserImage.jpg
José Santos

Works

2023-07-28 17-00-32
Marco Arede
 
MVP

Hello Atul,

(Following Samuel post) 

Or are you using a one "For Each" loop inside the another? 

Could it also be possible that you are iterating same content more than one time?

Regards!

2020-11-04 06-52-56
Atul Patel

Hello Team,


I am not doing both of these. I have just copied the result from my SQL to a local list and then I am binding it to table records to display data.


I am ajax refreshing this table records then I am getting the exception.


Thanks

Atul Patel

2020-11-04 06-52-56
Atul Patel

MiP wrote:

hi Patel

https://www.outsystems.com/forums/discussion/22758/help-with-repetitive-loops-detected-a-recursive-iteration-over-the-same-list/

regards,

MiP

Hello MiP,


I have seen this post but I did not help me in my case.


Thanks 

Atul Patel


2020-06-08 02-42-28
Wasabi

HI Atel,

Can you provide a simple OML?

regards,

MiP

2021-08-30 14-04-44
Maykon Nogueira

The same thing happened to me and I realized that I was using the same list more than once in a foreach. In this case I used listduplicate and solved the problem.

2024-03-14 14-46-22
Nelson Inácio

This error means that you are doing changes to the list used on for each inside the cycle. You have to use list duplicate and do the changes on that list.

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi Atul,


Just share the OML or screenshot so we can help you out here. If you just copied the result from my SQL to a local list and then binding it to table records to display data then this error don't need to occur. We will help you just share information with us.


Thanks,

Rajat Agrawal

2019-03-29 01-33-35
usha kunder

Hi, 

 I am facing the same issue  "Detected a recursive iteration over the same list" error . when more than one user login to the application at the same time this recursive error is seen. I have attached the screen shot. Please help me out to solve this.

Thanks,

Usha Kunder

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.