Write DataTable to Excel: The source data has no rows or columns

Hello,

I got this error: Write DataTable to Excel: The source data has no rows or columns.
and I didn’t know why I get this error

Thank you,
Akhil

@Anonymouss

Can you check whether the datatable is having any rows or not by placing a break point at the if activity.

And aslo IF it is the first run or First time (In Then Block disable the option Append)

Uncheck the append on the first write DataTable to Excel

@Shiva_Nikhil & @SenzoD
Hello, this problem i didn’t get every time , if I process run 5 time then I get this error once,
I want to know reason why I get this error.

Thank you

@Anonymouss

The exception “The source data has no rows or columns” in UiPath occurs when you try to write a DataTable to Excel but the DataTable is empty. This means that the DataTable does not contain any rows or columns.

But buddy i am confused bcz. my data table contain all values. :neutral_face:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.