System.ArgumentException: An item with the same key has already been added. #2336
Replies: 3 comments 6 replies
-
This is a new issue with version 15.2.1. I never got this issue with the previous version, using same template |
Beta Was this translation helpful? Give feedback.
-
Is it not advisable to use the latest version? This is the config I am using And here is the log which shows error |
Beta Was this translation helpful? Give feedback.
-
I just noticed the new version is 16.0. I am having 15.2, which has the problem |
Beta Was this translation helpful? Give feedback.
-
Got this error while migrating WI's. Can anyone help resolve this issue?
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable
1 source, Func2 keySelector, Func
2 elementSelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable
1 source, Func2 keySelector) at MigrationTools.Endpoints.TfsWorkItemConvertor.GetRevisionItems(RevisionCollection tfsRevisions) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel\Endpoints\TfsWorkItemConvertor.cs:line 73 at MigrationTools.Endpoints.TfsWorkItemConvertor.MapWorkItemtoWorkItemData(WorkItemData context_wid, WorkItem context_wi, Dictionary
2 fieldsOfRevision) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel\Endpoints\TfsWorkItemConvertor.cs:line 39at MigrationTools.TfsExtensions.RefreshWorkItem(WorkItemData context, Dictionary
2 fieldsOfRevision) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel\TfsExtensions.cs:line 51 at MigrationTools.TfsExtensions.SaveToAzureDevOps(WorkItemData context) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel\TfsExtensions.cs:line 87 at VstsSyncMigrator.Engine.WorkItemMigrationContext.ReplayRevisions(List
1 revisionsToMigrate, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 871Beta Was this translation helpful? Give feedback.
All reactions