92
Views
2
Comments
Editable Table increased length during loop, exception in message
Question
 while for looping an editable table, it creates an exception "Called EndIteration while the list was not being iterated..."

 After the exception occurs, the records I updated was reverted. Why does this happen in an editable table?
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Hi Lawrence,

I've seen this error before (in a regular table records), which was triggered by ForEaching over the List attribute of a TableRecords, then Ajax-refreshing the TableRecords, then breaking the loop. But without further information I can't judge whether you have something similar that triggers it.
UserImage.jpg
Lawrence Arielle .
Hi Kilian,

  Your feedback is correct. I misplaced the ajax refresh of the list that i used in the for each loop. It then adds another item to itself. I removed the ajax refresh outside the loop and now it works. thanks a lot!!!
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.