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

Hello,
My project was working until UiPath updated yesterday
I get this error message:
For Each Row in Data Table: Object reference not set to an instance of an object.

image

Hi @Jonnathan_Fernandez ,

Could you try providing a different name to the Datatable variable ? It might get conflicted with the type System.Data.Datatable.

When using a different name, the error still persisted


@Jonnathan_Fernandez ,

From the Debug Panel, we could see that the variable excelFile is null, hence we get that error.

What is done to load data into the variable ? Also Check the scopes of the variables.

the excelfile variable comes from the Read range activity

As mentioned earlier, my process worked prior to the latest UiPath update
The scope has been changed to highest system activity

Hi @Jonnathan_Fernandez ,

Hope you have done Datatable Initialization

Thanks,
Rajkumar

Hello @RajKumar_DC, I just deleted the entire process and started from scratch. It seems the issue was possibly cause by a compatibility issue or glitch.
Appreciate the help

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