Hello everything is fine?
After the last UiPath update I am encountering this error: An item with the same key has already been added. Key: s. Nothing was changed in the project, I just updated it and this error is occurring. I can’t even locate the error flow. Can anyone help?
An item with the same key has already been added. Key: s
Error: RemoteException involving System.ArgumentException: An item with the same key has already been added. Keys
in System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) in System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](source IEnumerable1, Func2 keySelector, Func2 elementSelector, comparator IEqualityComparer1) in System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](source Inumerable1, Func2 keySelector, Func2 elementSelector)
in UiPath.TriggersProcessor.LocalTriggers.XmlTransform.TriggerXmlGenerator.MergeWorkflowModels (List1 allWorkflows) in UiPath.TriggersProcessor.LocalTriggers.XmlTransform.TriggerXmlGenerator.GenerateBigParallel(TriggerWorkflowModel startingTriggerModel, List1 otherWorkflowModels)
in UiPath.TriggersProcessor.LocalTriggers.Transforms.TriggerTransform.Transform(TransformArgs transformArgs)
in UiPath.Studio.Plugin.Workflow.LocalTriggers.Services.LocalTriggersTransformServiceProjectEndpoint.Transform(String StartingWorkflowPath, IEnumerable1 otherWorkflowPaths, CancellationToken cancellationToken) in UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- in UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- in UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- in UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler), HResult -2146233088
UiPath was updated to version 24.4.0-beta.16568 which was scheduled for April 30th. I did the installation today, the 29th and I had this problem. All packages are updated to the latest version.
It seems that the error is in Main.xaml, more precisely in the Run Local Triggers activity: when removing this activity the error disappears… I’m checking to see if there is an id with the same value…
This has really become a problem: I can’t find a solution. I already uninstalled the version and went back to the previous one and nothing. If I remove the Run Local Triggers activity it even works, otherwise it doesn’t. I already created another form to test but the error persists. I’ve also searched inside the codes for something like “key”:“s” or <key>s</key> to see if I could find repeated values but nothing… If anyone has any ideas…
I couldn’t identify the problem but I took it flow by flow and gave control+x and control+v (I saw this in another topic) and it worked. However, now I have another problem. When running the system, I come across this error in the console:
Run Local Triggers: The .local\generated\Triggers.Generated.xaml workflow cannot be found. Make sure that it is part of the project.
I had to do the procedure of restarting all the ids by cutting and pasting all the activities from all the flows that prevented the system from running;
Regarding the error:
“Run Local Triggers: The .local\generated\Triggers.Generated.xaml workflow cannot be found. Make sure that it is part of the project” I had to remove all flows that had an argument with a pre-defined value: for some reason UiPath removed this and the flows were giving errors…