The source contains no datarows (no data)?

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.

:ambulance: :sos: [FirstAid] Handling of The source contains no DataRows exception - News / Tutorials - UiPath Community Forum

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,

@Yoichi How to choose datarow.array ?

image

First, choose Array of T

image

Next, choose Browse for Types

image

Finally, Choose DataRow

Regards,

1 Like

choose Array of T
browse for types then select data row

1 Like