Jeff_E
(Jeff E.)
April 20, 2020, 11:09pm
1
Hello Experts, I am using the ‘filter data table activity’ , to filter a ‘DataTable’ extracted from a DataScraping done in a website. The problem is the following error “column type is not supported”
Below the table generated using the ‘Write Range’
Sequence
Please, how can I solve this?
Any help would be really appreciated. Thanks!
Doanh
(Do Anh)
April 21, 2020, 2:16am
2
Please show setting of Filter Data Table activity
Jeff_E
(Jeff E.)
April 21, 2020, 2:54am
3
Here it is.
First I tryed with the name columns “Job Title”, “Company” and “Salary”
GBK
(GBK)
April 21, 2020, 5:59am
4
@Jeff_E - pls try below with assign activity
dtTestJob =vDataTableIndeed.Rows.Cast(Of DataRow)().Where(Function(row) Not row.ItemArray.All(Function(field) field Is DBNull.Value Or field.Equals(“”))).CopyToDataTable()
Jeff_E
(Jeff E.)
April 21, 2020, 12:56pm
5
@GBK
Hi, thanks for the answer.
I tried it, but didn’t work. First gave me a error, that i solved using this method
Hi @lucas.mcgonagle
EDIT
20.10 fixed this issue for newly created projects.
You can fix it by adding the Assembly Reference manually in your xaml file:
[image]
Simply open the file in Notepad and create new line with this String:
<AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
Then reopen your project and the error should be gone.
Please be careful while doing so and always keep a backup.
Then, the robot runs without error, but the rows in the datatable that contains empty fields isn’t deleted.
Please, check the files.
Data Extraction Job Sites.zip (977.5 KB)
Doanh
(Do Anh)
April 22, 2020, 3:09am
6
Hi,
Please remove the last AND condition in filter setting (by click on X button) then it will be ok