General Business Process: Object reference not set to an instance of an object

Hello fellow UiPath experts!
I would like to ask about this error that I have gotten from while doing the last assignment (Generating Yearly Report). As this error pops up right after running the project, I could not locate the error at all.

Additional Information:

  • Info: Object reference not set to an instance of an object.
    An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at lambda_method(Closure , ActivityContext )
    at Microsoft.VisualBasic.Activities.VisualBasicValue1.Execute(CodeActivityContext context) at System.Activities.CodeActivity1.InternalExecuteInResolutionContext(CodeActivityContext context)
    at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity1 expressionActivity) at System.Activities.Variable1.PopulateDefault(ActivityExecutor executor, ActivityInstance parentInstance, Location location)
    at System.Activities.ActivityInstance.ResolveVariable(Variable variable, ActivityExecutor executor)
    at System.Activities.ActivityInstance.ResolveVariables(ActivityExecutor executor)
    at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Thanks for reading!


You can try some ways to find this out

  1. Try to slow step Debug option and see where workflow breaks
  2. See output pane after which successful workflow error is concurring
  3. Use log message activity in Start and End of your workflows then see output pane.

Logging messages will help you pin pointing the location


1 Like

Thanks for your quick reply!
This is what I found so far using Slow step debug and from the output pane.

Please open InitState, GetTransaction and Process and see if you can find any error that is shown as blue exclamation mark


All is clean and clear of blue exclamation marks.

Please check Variables pane and Argument pane there has to be something which is restricting program to run.

Or see if you can share the workflow


I have uploaded the workflow. At the same time, ill check through the variables and arguments! Thanks! (1.8 MB)

I have redone the workflow. This error doesnt occur anymore.

1 Like

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