Unable to re-import GitLab project - "Already imported"

ALM used

GitLab

CI system used

GitLab CI

Scanner command used

sonar-scanner -Dsonar.qualitygate.wait=true

Languages of the repository

Java (or your actual language)

Error observed

I am unable to re-import a GitLab project into SonarCloud.

SonarCloud shows “Already imported”, but:

  • The project is not visible in the Projects list
  • I cannot access or delete it

Steps to reproduce

  1. I manually created a SonarCloud project for a GitLab repo (PaymentsApi)
  2. I deleted that project
  3. I connected (bound) my GitLab organization to SonarCloud
  4. I tried to import the same repository again

Expected behavior

The project should be available for import again after deletion.

Actual behavior

SonarCloud says the project is “Already imported”

Additional details

  • Organization: avidi
  • GitLab repository: PaymentsApi

It seems like there is a leftover ALM binding or hidden project.

Could you please remove the existing binding or project so I can re-import it?

This is blocking our CI setup, so any help is appreciated.

I also checked via SonarCloud API:

```bash
curl -u TOKEN: “https://sonarcloud.io/api/projects/search?organization=avidi&q=PaymentsApi
Response:

{"paging":{"pageIndex":1,"pageSize":100,"total":0},"components":[]}

So the project is not returned by the Projects API, but the import UI still marks it as “Already imported”.

Hi @Serhii_Barabash,

Can you try importing this repository again, please?
We just released a fix that should address this issue

Hi, @Ambroise
Works now, thank you!
Just to confirm — should this be fixed for similar cases as well?
Thanks!

Great! Happy we could resolve your issue.
Yes, this should be fixed for similar cases. Now, the only reason you should see “Already imported” is when the repository is bound to a project in the current organization (in that situation, the repository is indeed “Already imported”)

Great, thanks!

You’re welcome! Have a great weekend!