Hi, I am trying to filter the data based on the columns name, but when I give the same column name in the Filter Data Table it’s showing me Column Name is not set or Invalid.
Note. I am reading the data from the 11th row itself.
Actually, I have huge data in an excel.csv file. I am using filter the data from the 11th row based on the Column Name, and want to save in a new excel file.
This is my excel headers, I am reading the data from the 11th row so that I can used the filter and it’s easy for bot to understand the header. Bcz I have to filter from the 11th row only.
If you see the 3rd column is type, I want to filter only type column and need only the Order and Shipping Services from this. If you can see Services are there below the type column, but I want to keep only Order & Shipping Services. And copy the complete data in a new excel file.
Fine
we can mention the column index as well like how we do in the assign activity
0 for the first column and rest
Kindly try mentioning the column index in the filter datatable wizard and let know for any queries or clarification
Hope this would help you
Cheers @balkishan
The we can try with a simple Select method
Like
dt = dt.Select(“ [columnname] = ‘yourvalue’ AND [columnname] = ‘yourvalue’ “ ).CopyToDatatable()
Make sure the column name is meant correctly
Is there any space before and after type in the columnname
We can check that with
Yourcolumnname.ToString.Length
If it is five then there is a space so kindly check that with the writeline before using this select method
Cheers @balkishan