An item with the same key has already been added. Key: VisualBasicValue`1_1 after "Convert to Windows"


After converting to Windows, i am now unable to execute the sequence which was working before conversion. I have tried both Copy as well as convert, which resulted in the following error:-

15:29:52.8467 => [WARN] [UiPath.Studio] [1] GetCompilableWorkflows: allWfCount = 2, normalizedDistinctWfCount = 1
15:29:54.3796 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [72] 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,

If possible, can you share your workflow?

Regards,

Sorry for the messy design, but here goes:-

Main.xaml (421.8 KB)

Hi,

For now, can you try to just Run File (not Debug File)? And if exception occurs at somewhere, can you share screenshot? There might be something integrity issue in your xaml file.

Regards,

Run File manages to get past the first few activities until met with this message:
image

I have tried converting my other projects as well and they all end with the same error. I am wondering if the Windows conversion is doing something that it shouldn’t.

Many thanks,

It somehow ends and zooms in “Expanded View” on this “Type Into” activity

image

Full Error:

22.10.1+Branch.master.Sha.6819bfe64fea81995a1624684fda5212d2bd4dc1

Source: If

Message: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.

Exception Type: System.NotSupportedException

System.NotSupportedException: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled. at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Can you please provide a screenshot of the if condition you are getting error at.

Regards

Sreejith S S

Sure, here it is:


image

Hi,

This error is caused by double quote character except 0x22. In the above case, there are several expression which uses not " but , like the following, for example.

Split(TabData.rows(10)(1).ToString,”/”)(1).ToString.Trim = "RELATIVES"

I just fixed these expression as the following. However it’s not cause for the first exception. So can you try to run the following xaml again?

Main2.xaml (423.3 KB)

Regards,

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