Could not find the pullrequest with key '41483'

In our organization we are facing PR validation issue with following error

##[error]ERROR: Error during SonarScanner execution

ERROR: Could not find the pullrequest with key '41483'

ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=<Removed>.Web.Vue&pullrequestKey=41483 : {"errors":[{"msg":"Unable to find the pullrequest with key \u002741483\u0027"}]}

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

ERROR: Error during SonarScanner execution

ERROR: Could not find the pullrequest with key '41483'

ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=<removed>.Web.Vue&pullrequestKey=41483 : {"errors":[{"msg":"Unable to find the pullrequest with key \u002741483\u0027"}]}

ERROR:

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

##[error]The process '/home/vsts/work/_tasks/SonarCloudAnalyze_ce096e50-6155-4de8-8800-4221aaeed4a1/1.37.0/sonar-scanner/bin/sonar-scanner' failed with exit code 2

We use Azure DevOps and checked the service connection and the project key in sonarcloud. Those are looks good for me. Any guide how to resolve this would be appreciated.

Hey there.

Thanks for reaching out to us on this.

  • Are other projects in your organization affected, or just this one (or is this the first project you’ve tried activating PR analysis for?)
  • Please have an organization administrator check the status of your Azure DevOps PAT configured under organization-level Administration > Organization settings > Azure DevOps connectivity management

Finally, can you check your scanner logs and report what logs you find around whether or not your project is bound?

2021-11-24T15:08:41.5819599Z INFO: Check ALM binding of project 'xxxxxxx'
2021-11-24T15:08:41.7529949Z INFO: Detected project binding: BOUND
2021-11-24T15:08:41.7531176Z INFO: Check ALM binding of project 'xxxxxxxx' (done) 

Hi Colin,

this was affected to multiple projects. and the pat token shows as valid

Thanks. Is there a PAT set at the project-level for any of these projects? (Project Administration > Pull Requests) or only at the organization level?

Not sure is there any PAT configured. But it shows to change or reset