I am using below linq query in assign activity for filtering empty rows but it’s not working ;
(From row In dt_input_file_toronto.AsEnumerable()Where Not row.ItemArray.All(Function(Model)Model Is DBNull.Value Or Model.Equals(“”))Select row).CopyToDataTable()
Can anybody assist why it’s not working
Any suggestion what is not correctly memtioned in above query
(From row In dt_input_file_toronto.AsEnumerable()
Where Not row.ItemArray.All(Function(Model) Model Is Nothing OrElse String.IsNullOrEmpty(Model.ToString().Trim()))
Select row).CopyToDataTable()
(From row In dt_input_file_toronto.AsEnumerable() Where Not row.ItemArray.All(Function(model) model Is DBNull.Value Or model.ToString().Trim().Length = 0) Select row).CopyToDataTable()
It’s working but it’s also consider column name also let say if i am having a 10 rows in excel then its uploading 11 row . 1 row as column name which is not required
I am uploading the data into the queue on orchestrator on the basis of column name then reading rows in Performer like specificcontent.(“Columnname”).to string
dt_input_file_toronto = dt_input_file_toronto.AsEnumerable().Where(Function(row) Not row.ItemArray.All(Function(Model) field Is DBNull.Value Or Model.Equals(“”))).CopyToDataTable()
Hey I f iam giving the another column name like PART ID in double quotes
dt_input_file_toronto.AsEnumerable().Where(Function(row) Not row.ItemArray.All(Function(“PART ID”) “PART ID” Is DBNull.Value Or “PART ID”.Equals(“”))).CopyToDataTable()
It should work but it’s saying indentifier expected…