TFVC: cannot undo/delete workspace with orphaned owner identity — TF14061 on all operations

Tareq Marji 0 Reputation points
2026-08-06T07:57:28.4433333+00:00

Organization: xxxxxxx (Azure DevOps Services). TFVC server workspace xxxxx holds a lot pending changes including an exclusive lock on files under $/Axxxxa/.../xxxxxx, blocking checkout for the team. The workspace's local mapping was deleted on the owner's machine.

The workspace is enumerable but not bindable:

  • tf workspaces /owner:* and VersionControlServer.QueryWorkspaces() return it (owneruniq xxxxxxxx, ownerdisp "xxxxx")
  • tf vc status /user:* lists all pending changes
  • But tf workspace /delete, tf vc undo /workspace:, VersionControlServer.DeleteWorkspace(), and even Workspace.Delete() / Workspace.GetPendingChanges() on the object returned by QueryWorkspaces all fail with TF14061 / WorkspaceNotFoundException
  • Tried every owner form: display name, email, tenant-qualified UPN, and the owner GUID

Requesting user is a collection admin with Allow on Undo/Unlock/Check in other users' changes.

Request: guidance or backend cleanup to release this workspace's pending changes and lock.

Azure DevOps

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.