Hi , I need to check where i have to check all the columns of each row whether null or have data. i know for one column we have the linq but to check all the columns and to find which column dont have data in the row what is the query?
Hie @Madhups after read the data use a for each row and use inside this use assign activity and store the column data after that use if condition and pass
String.isnullorEmpty this will check all the rows have value or null
so it will check like this
cheers
Thank you sumit, is there any other simple way because i have so many columns to check
you need to count the blank columns or write value where the columns = blank ?
If you just need to find…then you can use the linq below
dt.AsEnumerable.Select(function(x,i) newdt.LoadDataRow({String.Join(",",dt.Columns.Cast(Of DataColumn).Where(function(y) x(y.ColumnName).ToString.Trim.Equals("")).Select(function(y) i.ToString + "_" + y.ColumnName).ToArray)},False)).CopyToDataTable
Newdt is s datatable with single column which you can build where you will get all data
cheers
Hi have to check each row if any column is not filled i have to update the status report saying that the column value is not provided in the column name so that we cannot proceed with the creation. so i need for each row which column is not updated.