Hello. I have problem with assign activity. I have two datatables, which I compare to each other. I don’t have rows in any of them process i returning message “Assign - the source contains no data row - problem with extracting data from empty datatable”.
Put this linq in the if activity and replace the CopyToDatatable with Any method and if it’s going to then block it means the linq is satified and you can put you assign activity in else block you can do whatever you want.
@Olivera_Kalinic
you got several inputs including the firstAid sheet which is guiding you to rewrite the CopyToDataTable into a toList and evaluating based on the count if CopyToDataTable or Clone is to execute.
Regarding to your LINQ a String.IsNullOrEmpty(yourString.Trim()) would handle more strict and greedy the blank check
What trying is to create list of Data Rows from dt1Upareni.AsEnumerable.Where(Function(x)Not (String.IsNullOrEmpty(x(“Uparivanje”).ToString) or String.IsNullOrWhiteSpace(x(“Uparivanje”).ToString))).CopyToDataTable
in the tutorial the steps are explained at an example and can be applied to the individual case. For sure it is not about replacing the own statement with the tutorial code.
If the condition is true , then use the expression in the snapshot provided by you
If the condition is false, Then you can clone the datatable which will give you an empty data table.