I have a question regarding token expiration.
How long does it take for a token to expire?
The last time I ran the analysis was in October 2024. When I tried to run it again in July 2025 after a long break, I got a message saying the project could not be found.
ALM used (Azure DevOps)
Error observed
ERROR: Error during SonarScanner execution
##[error]ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator to check the permissions of the user the token belongs to
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator to check the permissions of the user the token belongs to
##[error]ERROR:
ERROR:
##[error]ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.```
Thanks Colin
I understand that if I don’t continue to apply the analysis within 60 days, it will expire.
It is a user token, but is the project token the same?
Is there any way to avoid this?
I use the Cloud version.
It is a token that is generated when a project is created.
It is used to create ServiceConnections in AzureDevOps.
It is something that appears only once, does that mean it is not a project token?
I don’t know the official name.