microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.07k stars 1.43k forks source link

TF26198 Error during Work Item Migration: Work Item Does Not Exist or Access Denied #4710

Closed SathishkumarG3 closed 1 month ago

SathishkumarG3 commented 1 month ago

Brief description of your issue

Issue Summary When migrating work items, an error is encountered indicating that a specific work item does not exist or access is denied. Please check the error details and provide the solution for the error. Next time, skip these errors.

Error Details

Error logged to Elmah.io
[16:25:52 ERR] [15.1.7-Preview.5] Unable to GetWorkItem with id[103561]
Microsoft.TeamFoundation.WorkItemTracking.Client.DeniedOrNotExistException: TF26198: The work item does not exist, or you do not have permission to access it.
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.LoadWorkItemFromRowSetInternal(Int32 rev, Nullable`1 asof, IWorkItemRowSets witem)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem..ctor(WorkItemStore store, Int32 id)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.GetWorkItem(Int32 id)
   at MigrationTools._EngineV1.Clients.TfsWorkItemMigrationClient.GetWorkItem(Int32 id) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemMigrationClient.cs:line 162

image

Steps to reproduce

Steps to Reproduce


1. Attempt to migrate work items from the source project to the target project.
2. Encounter error indicating that the work item with id [103561] does not exist or access is denied.

Investigation

  1. The work item id [103561] is mentioned in the comments of another work item with id [103622].
  2. Validation of the work item id [103561] in the source project confirms its existence.

image

Expected behavior

The migration process should successfully access and migrate the work item with id [103561].

Actual behavior

The migration process fails with a TF26198 error, indicating the work item does not exist or access is denied.

Additional Context The error occurs in the GetWorkItem method of the TfsWorkItemMigrationClient class. The relevant source file and line number are: D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel_EngineV1\Clients\TfsWorkItemMigrationClient.cs:line 162.

Environment

Migration Tool Version: 15.1.7-Preview.5
Migration Tools Used: Azure DevOps Migration nkdagility Tool
Operating System: [Windows 10]
denelon commented 1 month ago

@SathishkumarG3 I'm not sure how this relates to WinGet.

microsoft-github-policy-service[bot] commented 1 month ago

Hello @SathishkumarG3,

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

Template: msftbot/noRecentActivity