A developer uses a For Each Row in Data Table activity to iterate through a sampleDataTable that stores current prices of the product and price at the discount. The developer wants to remove some rows (please see the condition in the If activity) and display, how many rows were left in the datatable. What will be the result of the processing?

Please find the BuildDataTable wizard below:

When you try to delete a row inside a For Each Row in Data Table activity, ''Collection was modified; enumeration operation might not execute'' error will be displayed, as it is not allowed to modify the structure of the datatable (e.g. change positions of datarows, remove them etc.) during iteration.

UiPath Forum
UiPath Documentation
Exam Topic:Describe how to work with complex data structures and data manipulation; for example, datatables and collections.
Thaddeus
4 days agoCecil
9 days agoCraig
14 days ago