Collection was modified enumeration may not execute error

Hi I am doing a process and I am trying to delete empty data columns in excel by using for each activity but I am getting error
Collection was modified;enumeration may not execute error
Can anyone help me with this

Hi @Gattu_Monika,

if you wish to delete columns which are empty in an datatable just use a filterdatatable activity in that under filter rows sections select the column names which are empty and then providing the conditions given their accordingly as per requirement .

Thanks,
Shikhar

Yes I have done that I have to find the columns which are empty and delete that empty columns so I used for each loop but getting error.

Can you share your xaml ??