Azure DevOps: "TF401180: The requested pull request was not found."
TF401180 is Azure DevOps' answer, with HTTP 404, when it cannot find the pull request at the address a tool asked for. The number may simply be wrong, but in public reports the pull request often exists: it belongs to another repository than the one in the address, to another project, or to a project the signed-in user cannot see, which Azure DevOps reports the same way.
The whole answer
Asked here on October 24, 2026, without signing in, from a public project on dev.azure.com, for a pull request number that does not exist:
HTTP/1.1 404 Not Found
{"$id":"1","innerException":null,"message":"TF401180: The requested pull request was not found.",
"typeName":"Microsoft.TeamFoundation.Git.Server.GitPullRequestNotFoundException, Microsoft.TeamFoundation.Git.Server",
"typeKey":"GitPullRequestNotFoundException","errorCode":0,"eventId":3000}
- The same answer came from the repository's address (
/{project}/_apis/git/repositories/{repository}/pullrequests/{id}), from the project's address (/{project}/_apis/git/pullrequests/{id}) and from the pull request's threads. - The project's address returned an existing pull request without the repository being named, with the repository in its answer (
repository.name).
What public reports show
- A pull request of another repository. An AI code review pipeline (February 2026) asked
repositories/DevOps/pullrequests/2and got TF401180: the pull request was in the repository whose branch policy ran the pipeline, not in the pipeline's own. The report asks for cross-repository build validation. - A project the user cannot see. A sprint board tool (May 2025) failed to load because a work item linked a pull request of another Azure DevOps project, where the user had different permissions; the request
/_apis/git/pullRequests/2472answered TF401180, not a permission error. - A number that does not exist. Command-line tools for Azure DevOps (August to October 2026) show TF401180 for a test number such as 999999; one asks that updating and merging say "not found" as plainly as reading does, instead of passing the raw message on.
What to check
- Open it in the browser:
https://dev.azure.com/{organization}/{project}/_git/{repository}/pullrequest/{id}. If it opens there but not in the tool, compare the organization, project and repository the tool uses. - Ask the project's address (
GET https://dev.azure.com/{organization}/{project}/_apis/git/pullrequests/{id}?api-version=7.1): it finds the pull request without a repository, andrepository.namesays where it lives. - In a pipeline, Microsoft's predefined variables keep them apart:
System.PullRequest.PullRequestIdis the pull request that caused the build,System.PullRequest.SourceRepositoryUrithe repository that contains it, andBuild.Repository.Namethe triggering repository. When a branch policy of one repository runs a pipeline from another, build the address from the pull request's repository, or use the project's address. - Check that you can see it: a pull request in a project or repository you cannot read is not found for you. Ask a project administrator, or use an account that is a member.
Azure DevOps pull requests in IntelliJ IDEA and Rider
Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server: from the repositories you have open, the whole project or every project of the organization, each read from its own repository and project, so there are no numbers to copy. You can vote, comment and complete without leaving the IDE. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.
Get it on JetBrains Marketplace
Azure DevOps is a trademark of Microsoft Corporation; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.
More: TF401019: the Git repository does not exist or you do not have permissions · VS800075: the project does not exist, or no permission · TF401181: the pull request cannot be edited due to its state · 日本語