An item with the same key has already been added. Key: VisualBasicValue`1_1 error after upgrading to windows

Hi All Below is the error I am getting after upgrading the windows legacy process to windows. This is running completely fine in regular run but when I debug execution is not starting and throwing below error .
System.ArgumentException: An item with the same key has already been added. Key: VisualBasicValue1_1 at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at UiPath.Executor.Tracking.ActivityIdsResolver.Register(WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.DebugTrackingParticipant.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.DebuggerPlugin.UiPath.Executor.IDebuggerPlugin.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.Tracking.WorkflowTracking.RegisterWorkflowTracking(WorkflowInfo workflowInfo)
at UiPath.Executor.WorkflowRuntime.RegisterWorkflow(WorkflowInfo workflowInfo)
at UiPath.Executor.RobotRunner.InitWorkflowApplication()
at UiPath.Executor.RobotRunner.ExecuteJob()

Hi,

The following post will help you.

Regards,

4 Likes

@Yoichi Thank you it worked. Ideally we have to open the Main xaml in notepad and replace the VisualBasicValue 1_1 if there are multiple.

Thanks,
Harinath

2 Likes

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