How to update the value of the variable IntContador to perform an insert in the loop of each for each


This variable value would be like the index of my array, but when the second loop forward, it cannot add (0+1,1+1…)

1 Like

Hello, @Eduardo_Goncalves1.

I don’t know if I understood the problem correctly, but if you are using a variable to control the loop index inside a “For Each” activity, you can use the “index” property that it controls itself.

UiPath.Studio_adfOeGZ2Ck


image
Thanks for your answer, but I already tried to use this method, but it causes the same problem from the next insert, which I would like to apply the index value in the Sql insert but returns this error.