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
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
Works
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!
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
hi Patel
https://www.outsystems.com/forums/discussion/22758/help-with-repetitive-loops-detected-a-recursive-iteration-over-the-same-list/
regards,
MiP
MiP wrote:
Hello MiP,
I have seen this post but I did not help me in my case.
HI Atel,
Can you provide a simple OML?
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.
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.
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
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.
Usha Kunder