Getting "For Each Row in Data Table: Object reference not set to an instance of an object.' error

Hi ,

I am getting below error while trying to get data from excel. please help me .

For Each Row in Data Table: Object reference not set to an instance of an object.

Hi @tippeshkumar1987

Welcome to UiPath community

Have you tried like this? Share the screenshot of the error

Use Read Range activity → Store it as DT

Use For Each Row in Data Table → Pass the Dt value in it.

Regards
Gokul

maybe EAS and read range was used and the datatable variable scope has to be changed to a more wide scope

Hi @tippeshkumar1987

Please check your data table variable scope, may be it’s ambiguous

@tippeshkumar1987
please show us workflow where you are facing issue

It means there is no data in your datatable.

Hi All,

There was error in placing read range activity. I placed it inside for Each loop. I placed it before “For Each” loop.

Thanks for ur time and suggestions

Can you share the screenshot of your XAML file for more understanding @tippeshkumar1987