Remove data row activity showing :collection was modified error

image

getting this error while trying to execute the remove data row activity.
Can some one help ?

You cannot remove a datarow from a table you’re currently iterating over. You can copy the data to a different table, or log each row you want to delete later in a List, and iterate over the List to delete the rows.

okay will try this method…any idea how to use datatable.rows.remove method in uipath??

You would have to pass a datarow object from the table to the method (see below). However, using the Remove Row activity will be simpler.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.