While debugging locally an application we are restructuring I am running in to an error that I can’t seem to get past.
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.OperationCanceledException: An error occurred while calling tracking participants causing the instance to be aborted. See the inner exception for more details. ----> System.NullReferenceException: Cannot create an L-value from the given expression with property ‘get_Item’ because the target object is null.
at System.Activities.ExpressionUtilities.IndexerLocationFactory1.IndexerLocation.get_Value() at System.Activities.Location
1.get_ValueCore()
at System.Activities.Tracking.ActivityStateRecord.TrackData(String name, Int32 id, ActivityInstance currentInstance, ICollection1 data, Boolean wildcard, Dictionary
2& trackedData)
at System.Activities.Tracking.ActivityStateRecord.GetArguments(ICollection`1 arguments)
at System.Activities.Tracking.RuntimeTrackingProfile.ExtractArguments(ActivityStateRecord activityStateRecord, ActivityStateQuery activityStateQuery)
at System.Activities.Tracking.RuntimeTrackingProfile.PrepareRecord(TrackingRecord record, TrackingQuery query, Boolean shouldClone)
at System.Activities.Tracking.RuntimeTrackingProfile.Match(TrackingRecord record, Boolean shouldClone)
at System.Activities.Tracking.TrackingProvider.FlushPendingRecordsAsyncResult.PostTrackingRecord(TrackingParticipant participant, RuntimeTrackingProfile runtimeProfile)
at System.Activities.Tracking.TrackingProvider.FlushPendingRecordsAsyncResult.RunLoop()
at System.Activities.Hosting.WorkflowInstance.BeginFlushTrackingRecords(TimeSpan timeout, AsyncCallback callback, Object state)
at System.Activities.Hosting.WorkflowInstance.OnBeginFlushTrackingRecords(AsyncCallback callback, Object state)
at System.Activities.Runtime.WorkItem.FlushTracking(ActivityExecutor executor)
— End of inner ExceptionDetail stack trace —
This happens when it goes to call an invoke workflow activity. It doesn’t appear to be the workflow itself but a runtime exception. Looking in the Event Viewer I am given some additional information:
System.Activities.WorkflowApplicationAbortedException: The operation could not be performed because WorkflowApplication 52b603b6-467a-4022-83b7-c71a4c59617f is aborted.
at System.Activities.WorkflowApplication.ThrowIfAborted()
at System.Activities.WorkflowApplication.CancelAsyncResult.ValidateState()
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginCancel(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.Cancel() in D:\a\1\s\Robot\UiPath.Executor\RobotRunner.cs:line 352, HResult -2146233088
So far searching old posts has not shed any light on how to resolve this. If anyone has any information on what might be causing it let me know. I tried an uninstall/reinstall and before that stopping the bot service and rebooting my machine. I am currently using version 2018.4.4.