Unable to calculate sonarqube code coverage even though nothing has changed in the project on Gitlab

The pipeline on the Gitlab includes the sonarqube check step. And this particular pipeline works automatically at certain time intervals. Although there was no change in the project, I got the following error. What could be the reason?

INFO: ------------------------------------------------------------------------
INFO: Total time: 9.987s
INFO: Final Memory: 17M/360M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: QUALITY GATE STATUS: FAILED - View details on http://sonarqube......

In the link I have  on overall code coverage is less than 80% error. But this is not correct because when I rerun the pipeline again it works properly.

Here is the piplene

Here is the gitlab yml

  stage: check
    - '& $SONAR_SCANNER_EXE begin /k:$SONAR_KEY /n:$SONAR_KEY /d:sonar.host.url=$SONAR_HOST_URL /d:sonar.login=$SONAR_TOKEN /d:sonar.cs.opencover.reportsPaths=coverage.opencover.xml /d:sonar.cs.nunit.reportsPaths=TestResult.xml /d:sonar.qualitygate.wait=true /d:sonar.qualitygate.timeout=180'
    - 'nuget restore -configfile $NUGET_CONFIG_PATH' # restore NuGet dependencies
    - 'msbuild -p:Configuration=Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg .\$VS_SOLUTION_FILE'
    - '& $SONAR_SCANNER_EXE end /d:sonar.login=$SONAR_TOKEN'
    - cf-aws-windows-runner
    - main
    - merge_requests
    - build_job

And sonaqrqube info is here

The important point is I am not getting this error all the time, nothing changed but sonarqube can not calculate the test coverage of the project. Could you please help me?

Hey there.

SonarQube only reads the report it’s provided. Between runs, do you see any differences in the logs of this step?