Stef_99
(Mary)
1
Hello,
I have question sometime after filter don’t have data , so it error as below.
dt_Output = dt_Input.AsEnumerable().ExceptBy(dt_Report.AsEnumerable().Select(Function(r) r("sr1").ToString),Function(r) r("SR").ToString).CopyToDataTable
Please guide me for solve it.
ppr
(Peter Preuss)
2
Yoichi
(Yoichi)
3
Hi,
Can you try as the following?
arrDr =dt_Output = dt_Input.AsEnumerable().ExceptBy(dt_Report.AsEnumerable().Select(Function(r) r("sr1").ToString),Function(r) r("SR").ToString).ToArray
Then check arrDr.Any(). If there is datarow, use CopyToDataTAble method.
Also check the following post.
Regards,
Stef_99
(Mary)
4
@Yoichi How to choose datarow.array ?

Yoichi
(Yoichi)
5
First, choose Array of T

Next, choose Browse for Types

Finally, Choose DataRow
Regards,
1 Like
choose Array of T
browse for types then select data row
1 Like