You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am performing a migration and I have encountered an error while migrating git links.
{"Timestamp":"2025-11-20T13:14:26.7544653+01:00","Level":"Error","MessageTemplate":"Sy**stem.IndexOutOfRangeException: Index was outside the bounds of the array.** \r\n
at MigrationTools.Tools.TfsGitRepositoryInfo.CreateFromGit(ExternalLink gitExternalLink, IList 1 possibleRepos) in D:\\a\\azure-devops-migration-tools\\azure-devops-migration-tools\\src\\MigrationTools.Clients.TfsObjectModel\\Tools\\TfsGitRepositoryInfo.cs:line 97\r\n
at MigrationTools.Tools.TfsGitRepositoryInfo.Create(ExternalLink gitExternalLink, IList 1 possibleRepos, TfsChangeSetMappingTool tfsChangeSetMappingTool, String workItemSourceProjectName) in D:\\a\\azure-devops-migration-tools\\azure-devops-migration-tools\\src\\MigrationTools.Clients.TfsObjectModel\\Tools\\TfsGitRepositoryInfo.cs:line 31\r\n
at MigrationTools.Tools.TfsGitRepositoryTool.Enrich(TfsProcessor processor, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\\a\\azure-devops-migration-tools\\azure-devops-migration-tools\\src\\MigrationTools.Clients.TfsObjectModel\\Tools\\TfsGitRepositoryTool.cs:line 109\r\n
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.ProcessWorkItemLinks(WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\\a\\azure-devops-migration-tools\\azure-devops-migration-tools\\src\\MigrationTools.Clients.TfsObjectModel\\Processors\\TfsWorkItemMigrationProcessor.cs:line 686\r\n
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.<ProcessWorkItemAsync>d__31.MoveNext() in D:\\a\\azure-devops-migration-tools\\azure-devops-migration-tools\\src\\MigrationTools.Clients.TfsObjectModel\\Processors\\TfsWorkItemMigrationProcessor.cs:line 581",
I've checked that some of the LinkedArtifactUri values of the Git links are not in the expected legacy format: vstfs:///Git/Commit/_repoId_**%2f**_commitId_
but instead use the newer Azure DevOps format: vstfs:///Git/Commit/_projectName_/_repoName_/_commitId_
This causes the tool to fail when trying to parse and construct the Git link. <img width="1502" height="223" alt="image" src="https://github.com/user-attachments/assets/07489056-8b5b-43d2-b005-703ae0204580" />
Suggestion:
If supporting the new URI formats is not possible at this time, would it be feasible to at least catch this exception so the migration process does not stop entirely?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am performing a migration and I have encountered an error while migrating git links.
I've checked that some of the LinkedArtifactUri values of the Git links are not in the expected legacy format:
vstfs:///Git/Commit/_repoId_**%2f**_commitId_but instead use the newer Azure DevOps format:
vstfs:///Git/Commit/_projectName_/_repoName_/_commitId_This causes the tool to fail when trying to parse and construct the Git link.
<img width="1502" height="223" alt="image" src="https://github.com/user-attachments/assets/07489056-8b5b-43d2-b005-703ae0204580" />Suggestion:
If supporting the new URI formats is not possible at this time, would it be feasible to at least catch this exception so the migration process does not stop entirely?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions