For loop issue
Options
![Thierry MARTIN](https://us.v-cdn.net/6037124/user_avatars/2208966.jpg)
Thierry MARTIN
Member ✭
Hi guys,
In a custom function, I have a for loop nested in a while loop.
The while loop iterates a paginated request to the DB (until the page_num>last_page), and the for loop iterates the records of the current page. After the for loop, I add 1 to the page_num variable.
[image.png]When I do nothing within the for loop, or when step 5.4.3 only add a record with data that is not related to the current_release, everything is ok.
But when I try to activate 5.4.1, or add a value depending on the current_release in 5.4.3, I get an error ("an unknown error has occured").
However, 5.4.3 properly creates all the records in the database!
Any idea about what happens?
In a custom function, I have a for loop nested in a while loop.
The while loop iterates a paginated request to the DB (until the page_num>last_page), and the for loop iterates the records of the current page. After the for loop, I add 1 to the page_num variable.
[image.png]When I do nothing within the for loop, or when step 5.4.3 only add a record with data that is not related to the current_release, everything is ok.
But when I try to activate 5.4.1, or add a value depending on the current_release in 5.4.3, I get an error ("an unknown error has occured").
However, 5.4.3 properly creates all the records in the database!
Any idea about what happens?
Comments
-
This was resolved in office hours. The debugger had too much data so we just needed to uncheck the box for including variable details
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback