Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
RemoteException wrapping 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)-------
Please find the attached xaml & excel file for your reference.
‘Object reference not set to an instance of an object.’ means that some of the value that you are passing is null. Please check if you have declared correct datatable variable in for each loop.
@Hariprasad yeah buddy i deleted the readdt variable which you used at for each and i commented out which are not in use,yeah it is always good practice to comment out or delete the activities which are not in use.
Hello
I have created process for Client Security hash without using Reframework. But I am having issue “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 in uipath” in for loop inside the Process Transaction for in_FilteredData while running and debugging process. I tried to debug the process but I am getting same issue. I also used the Try catch block, but same issue. I am attaching workflow, excel file and error screenshot.
Please tell me the resolution of the issue and fix the issue.