For Each Row: Collection was modified

For Each Row: Collection was modified; enumeration operation might not execute.

while iam adding data in remarks column

In datatable already has “warning” data in remarks columns, But I have so many warnings so I want to add another warnings also in same column
like this
remarks column = Warning/warning2/warning3
please suggest how can I add data(append) in existing column datatable

need solution without workbook or excel relation


Hi @Deepthi_Borra,
Are you able to show exact error and show us bigger perspective like what your datatable consist of etc?

Hi, I am not mistaken, you are looping datatable dt_Details and at the same time you are trying to add a row in datatable dt_Details. If that is the case, then it is not possible to do that.

1 Like

foreach with datatable
adding data in error sheet with some values using Add data row
Remarks column = “uipath”
After that
in another row again adding the data in error sheet with values using add data row , but here
I need in 2nd row with = 1st row values next “/” after 2nd row

Remarks column= “uipath/member”