Hello Bharath,
Please reassign Counter value to 0 before entering the while loop.
In the existing code, when the robot is processing the second row, the counter value is more than 60 and hence it never enters the while loop.
If this works please mark this as the solution .
Thanks
Do you need 2 variables doing the same thing - counter & index?
What values are you assigning to new columns? - same values per column? If they are same, you can do that by assigning a default column value, instead of iterating. Or, if values are calculated values, using an expression is the way.
Depending on where you’ve initialised the Counter and Index variables (For Each Row Vs While), you could be unnecessarily looping and wasting time and the CPU cycles.
Doing a
could be just masking the issue created by the While loop!
Maybe, if you could explain the use case, a better solution could be offered.