New Organisation showing Projects as "Already Imported"

  • ALM used - Bitbucket Cloud
  • CI system used - Bitbucket Cloud
  • Languages of the repository - TS
  • Error observed

We’ve just created a new organisation and some of the repositories are showing as linked / already imported. These do not show up in the projects view in sonar, so I cannot delete them. I suspect maybe someone historically has tried out sonar and not deleted their organisation.

Ultimately this means that the scans for these repositories fail to execute completely as they cannot upload results.


INFO: ------------------------------------------------------------------------
INFO: ------------------------------------------------------------------------
INFO: Total time: 8.636s
INFO: Final Memory: 18M/67M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Could not find a default branch for project with key '######REDACTED########'. Make sure project exists.
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed. (exit code = 2)
  • Potential workaround

No workaround available. Please can someone from support reach out via PM, this has been suggested by sales admin.

Hello @TW_SVT

Usually, this happens when a project is already imported from another Sonarcloud organization.

That means that the project needs to be removed from the Sonarcloud organization so you can import it from your own.

If you don’t have access to that org, please send me (in private message) your organization key and the name of the project that you want to import, and I’ll try to see if I can find from which organization they were already imported.

Best regards,

Hi Quentin,

Thanks I’ll get in touch privately as we no longer have any access to any previous organisation that might have existed in the past.

1 Like

Quentin - I don’t seem to have the option of private messaging you, is this because I’m a relatively new account, or am I looking in the wrong place… apologies

Ooops, my bad. I sent you a private message, so you can reply with the information required.

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