Error: Object reference not set to an instance of an object. 111

I am creating a Flow to read UPS tracking numbers from Excel sheet, open browser and search and write excel data back to a excel file.
In the Section ‘For Each Row’ , I am getting error Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Core.Activities.ForEach`1.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Sorry I wasn’t able to attach the main.xaml as forum doesn’t allow new users to attach files. So I have added the xaml file on Gdrive and shared it

Hi @tej004
Welcome to the community forum!

Is the ReadDT being properly built?

Thanks. Yes the ReadDT is VaribaleType:DataTable with Global Scope

Could you set a break point when you read the Excel file in and take a screenshot of the ReadDT value after?

OK, I will find out how to set a break point (yea thats how new I am to Uipath) and get back to you.

To set a break point:

  • Select the activity you wish to set the break point on.
  • Push the F9 button on your keyboard, this should add a red circle to the upper left corner of the activity.
  • Push the F7 key to run your program in debug mode.

More information can be found here: