REFramework: object reference error only when running unattended

Hello All,

Issue here I am looking for input on.
I have a process setup using the RE framework. Running in debug mode, all works fine.
When I setup to run unattended, almost immediately it comes back with the error message below referencing object reference not set to an instance of an object. Process does not hit the same error issue when running, all else equal, the exact same process for exact same transaction.

Any help would be appreciated. Thank you

Err:

System.NullReferenceException: Object reference not set to an instance of an object. at Namespace_1ab2.KillAllProcesses_Expressions.KillAllProcesses_Expressions_TypedDataContext1_ForReadOnly.__Expr1Get()
at Namespace_1ab2.KillAllProcesses_Expressions.KillAllProcesses_Expressions_TypedDataContext1_ForReadOnly.ValueType___Expr1Get()
at Namespace_1ab2.KillAllProcesses_Expressions.InvokeExpression(Int32 expressionId, IList1 locations, ActivityContext activityContext) at System.Activities.Expressions.CompiledExpressionInvoker.InvokeExpression(ActivityContext 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.InArgument1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor) at System.Activities.RuntimeArgument.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance targetActivityInstance, ActivityExecutor executor, Object argumentValueOverride, Location resultLocation, Boolean skipFastPath) at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate)
at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
— End of stack trace from previous location —
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Start Time: 07/02/2024 10:44:53 AM
End Time: 07/02/2024 10:45:06 AM
Input Values: null
Output Values: Empty
Has Recording: false

i assume its happening in your killprocess.xaml you can use exception.source in a log message to find the exact activity

Found it, thank you.
required folder was missing. No idea why that would fault in the kill process.xaml, but the logs helped me track it down finally.

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