Strange issue with a procedure

Hi everyone!
The procedure “GenerateHorizontalArrangeID” crash the app when used 3 times. The first and second times works nice.
The procedure “GenerateHorizontalArrangeID2” works perfectly in the project, without any other change.

If I changed the first for the second, no problem, if I use the first, only two times and crashes at the third attempt.
I tried to convert the numbers to text with an extension, but didn’t solve the problem.
Any idea of why is this happening?

any error messages?
try to debug your blocks to find out, which variable values are causing the issues…

then you should use this one… KISS keep it simple stupid


I wanted to change the ID from number to text, for any other reason, but yes, I’ll try to keep it simple.