The file was removed, no source code can be displayed

Template for a good new topic, formatted with Markdown:

  • ALM used → Azure DevOps
  • CI system used → Azure DevOps
  • Scanner command used when applicable (private details masked)
  #Prepare Sonar Code Analysis (this dependency must run before build)
- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
  displayName: Prepare analysis on SonarCloud
    SonarCloud: '${{ parameters.SonarConnection }}'
    organization: 'cae'
    scannerMode: 'CLI'
    configMode: 'file'
    cliProjectKey: '${{ parameters.SonarProjectKey }}'
    cliProjectName: 'Odyssey'
    cliSources: 'Odyssey'
    extraProperties: |
      sonar.projectKey=${{ parameters.SonarProjectKey }}
      sonar.projectName=${{ parameters.SonarProjectKey }}
      # sonar.exclusions=**/*.bin
  continueOnError: true
* Languages of the repository -> C++

Hey there.

Where do you see this message? How did you get there? Without some more details, it will be difficult to provide any help!

Hi, here is some more information.

With my DevOps CI pipeline, I am able to run the build_wrapper around my msbuild command that builds my C++ project. I then am able to successfully run the sonar-scanner.bat (locally from my PC, but also from the DevOps pipeline). After the analysis is run the test results/report are uploaded to our private project on Once there I see the message when I click on an issue, and it should show me the corresponding code.

It sounds similar to After adding code coverage, i can't see my file anymore - #3 by VGIb

I’ll reach out for your organization details.

Also here is a snapshot, yes similar to that post

Hello @SeanCae,

I will reach out to you for some additional info.


Hello @SeanCae,

After investigation from our side. I think you have this issue because your logged user doesn’t have “See Source Code” permission in your project => Administration => Permissions.
I invite you to check this and tell me if it’s ok or if you need any extra help.


1 Like

Ah! I wouldn’t be surprised. I am going to go through my IT department and confirm this. Thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.