An item with the same key has already been added. Key: UiPath.WebAPI.Runtime

Hello guys, trying to publish a workflow that I created to run it through assistant, but when I press publish, get this error:

23.8.0-beta.13817+Branch.release-v23.8.0.Sha.120cd3ec54f082511b48105e2cfb52f8897346a8

An item with the same key has already been added. Key: UiPath.WebAPI.Runtime

Error: System.ArgumentException: An item with the same key has already been added. Key: UiPath.WebAPI.Runtime
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at UiPath.Project.WorkflowProjectRepository.OpenProjectFromText(IWorkflowProject project, IEnumerable`1 runtimePackages, Boolean ignoreOutputType)
   at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.CloneWorkflowProject(IWorkflowProjectModel projectModel)
   at UiPath.Studio.ProjectPackager.Publish.Services.PublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
   at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
   at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)
   at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.PublishAsync(IWorkflowProjectModel projectModel, IPublishSettings settings), HResult -2147024809

How can I solve it? The workflow runs as it should

Anyone has any Ideas?

So I just created another workflow, rewrote the whole “code” and it works.

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