I am encountering a looping issue within the Excel Application Scope in UiPath Studio. After using the Read Range activity to retrieve data from an Excel sheet, I’m iterating through the DataTable with a “For Each Row” activity. My workflow is supposed to log the data from each row, but instead, it enters into what seems like an endless loop, logging the same data multiple times.
Put a breakpoint at assign activity which is inside the for each row, and debug the workflow, when execution point comes at breakpoint then go to immediate panel and put output.Rowcount and see what’s the row count, and try to solve it by your self, I’m sure you resolve!
Or If you need any further assistance then kindly, share input excel if it is not confidential or else some dummy data!
i’v checked everyhing, i printed the count of the table and it is three and also that is printing in endless loop.
i also added break points and it seems that the whole sequence is prining in endles loops.
Step 1 : Create a int32 variable, x and assign
Step 2 : inside for loop as first step assign x=x+1
Step 3 : After the steps you want add an if condition
If x = datatable.rows.count then break else proceed.