addImpact is not supported on external issues

Template for a good new topic, formatted with Markdown:

  • Bitbucket
  • jenkins
  • dotnet ${scannerHome}/SonarScanner.MSBuild.dll begin /o:organization /k:${projectKey} /n:‘${pipelineParams.serviceName}’ ${extraParams} /d:sonar.verbose=true
    dotnet build
    dotnet test
    dotnet ${scannerHome}/SonarScanner.MSBuild.dll end
    C#
13:08:25.394 ERROR: Error during SonarScanner execution

[2025-05-01T13:08:25.463Z] java.lang.UnsupportedOperationException: addImpact is not supported on external issues

[2025-05-01T13:08:25.463Z] 	at org.sonar.api.batch.sensor.issue.internal.DefaultExternalIssue.addImpact(DefaultExternalIssue.java:58)

[2025-05-01T13:08:25.463Z] 	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.setExternalIssueSeverityAndType(SarifParserCallbackImpl.java:196)

Also, there is issues as such:

[2025-05-01T13:08:24.372Z] 13:08:24.342 DEBUG: Failed to find resources: Resource folder "/config/roslyn.sonaranalyzer.security.cs-autogenerated/encoders/" does not exist.

[2025-05-01T13:08:24.371Z] 13:08:24.274 DEBUG: Failed to find resources: Resource folder "/config/roslyn.sonaranalyzer.security.cs-autogenerated/collectionHandlers/" does not exist.

[2025-05-01T13:08:24.370Z] 13:08:24.242 DEBUG: Failed to find resources: Resource folder "/config/roslyn.sonaranalyzer.security.cs-autogenerated/validators/" does not exist.

eporting issues for rule roslyn.sonaranalyzer.security.cs:S2076

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S2078

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S2083

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S2091

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S2631

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S3649

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5131

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5135

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5144

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5145

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5146

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5147

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5334

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S5883

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6096

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6173

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6287

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6350

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6399

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6547

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6549

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6639

[2025-05-01T13:08:24.635Z] 13:08:24.610 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6641

[2025-05-01T13:08:24.635Z] 13:08:24.611 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S6776

[2025-05-01T13:08:24.635Z] 13:08:24.611 DEBUG: Reporting issues for rule roslyn.sonaranalyzer.security.cs:S7044
[2025-05-01T13:08:24.372Z] 13:08:24.349 DEBUG: Failed to find resources: Resource folder "/config/roslyn.sonaranalyzer.security.cs-autogenerated/decoders/" does not exist.


We are experiencing the same issue across multiple .NET projects in Azure Devops.
The Code has not changed nor has the scanner setup.

Attached Logs are with scanner version 9.0.1 but i also tested with latest 10.1.2.114627

This is becoming quite an issue as we have hundreds of projects we manage for our customers and this problem is kinda spreading but we have no idea why, so we are ofc. really concerned about what we need to tell out clients in relation to this problem.

Link to Full Azure Devops Log for Sonar Scanner. valid until May 9. - 2025.
Not able to attach to issue!

Subtract from log:

2025-05-01T11:16:55.7178464Z INFO: csharp security sensor: Begin: 2025-05-01T11:16:52.956140259Z, End: 2025-05-01T11:16:55.714824885Z, Duration: 00:00:02.758
2025-05-01T11:16:55.7183027Z   Load type hierarchy and UCFGs: Begin: 2025-05-01T11:16:52.957833876Z, End: 2025-05-01T11:16:53.428504852Z, Duration: 00:00:00.470
2025-05-01T11:16:55.7184434Z     Load type hierarchy: Begin: 2025-05-01T11:16:52.957873776Z, End: 2025-05-01T11:16:53.009692580Z, Duration: 00:00:00.051
2025-05-01T11:16:55.7187516Z     Load UCFGs: Begin: 2025-05-01T11:16:53.009858481Z, End: 2025-05-01T11:16:53.427312340Z, Duration: 00:00:00.417
2025-05-01T11:16:55.7188820Z   Check cache: Begin: 2025-05-01T11:16:53.428690754Z, End: 2025-05-01T11:16:53.429034157Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7191653Z     Load cache: Begin: 2025-05-01T11:16:53.428710054Z, End: 2025-05-01T11:16:53.428742654Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7194225Z   Create runtime call graph: Begin: 2025-05-01T11:16:53.431367580Z, End: 2025-05-01T11:16:53.574172268Z, Duration: 00:00:00.142
2025-05-01T11:16:55.7195804Z     Variable Type Analysis #1: Begin: 2025-05-01T11:16:53.432691593Z, End: 2025-05-01T11:16:53.521162153Z, Duration: 00:00:00.088
2025-05-01T11:16:55.7197004Z       Create runtime type propagation graph: Begin: 2025-05-01T11:16:53.434523111Z, End: 2025-05-01T11:16:53.486270814Z, Duration: 00:00:00.051
2025-05-01T11:16:55.7197580Z       Run SCC (Tarjan) on 8053 nodes: Begin: 2025-05-01T11:16:53.486775719Z, End: 2025-05-01T11:16:53.499845746Z, Duration: 00:00:00.013
2025-05-01T11:16:55.7199454Z       Propagate runtime types to strongly connected components: Begin: 2025-05-01T11:16:53.500123148Z, End: 2025-05-01T11:16:53.520014442Z, Duration: 00:00:00.019
2025-05-01T11:16:55.7201357Z     Variable Type Analysis #2: Begin: 2025-05-01T11:16:53.523326074Z, End: 2025-05-01T11:16:53.572795355Z, Duration: 00:00:00.049
2025-05-01T11:16:55.7201934Z       Create runtime type propagation graph: Begin: 2025-05-01T11:16:53.523391775Z, End: 2025-05-01T11:16:53.550555439Z, Duration: 00:00:00.027
2025-05-01T11:16:55.7203697Z       Run SCC (Tarjan) on 8053 nodes: Begin: 2025-05-01T11:16:53.550787541Z, End: 2025-05-01T11:16:53.559193723Z, Duration: 00:00:00.008
2025-05-01T11:16:55.7204354Z       Propagate runtime types to strongly connected components: Begin: 2025-05-01T11:16:53.559432825Z, End: 2025-05-01T11:16:53.572569253Z, Duration: 00:00:00.013
2025-05-01T11:16:55.7225091Z   Load config: Begin: 2025-05-01T11:16:53.574344170Z, End: 2025-05-01T11:16:53.956888890Z, Duration: 00:00:00.382
2025-05-01T11:16:55.7225909Z   Compute entry points: Begin: 2025-05-01T11:16:53.958503705Z, End: 2025-05-01T11:16:54.059973492Z, Duration: 00:00:00.101
2025-05-01T11:16:55.7227057Z   Slice call graph: Begin: 2025-05-01T11:16:54.061388106Z, End: 2025-05-01T11:16:54.076337551Z, Duration: 00:00:00.014
2025-05-01T11:16:55.7227605Z   Live variable analysis: Begin: 2025-05-01T11:16:54.076554653Z, End: 2025-05-01T11:16:54.214637396Z, Duration: 00:00:00.138
2025-05-01T11:16:55.7238955Z   Taint analysis for csharp: Begin: 2025-05-01T11:16:54.216077410Z, End: 2025-05-01T11:16:55.627969343Z, Duration: 00:00:01.411
2025-05-01T11:16:55.7239537Z   Report issues: Begin: 2025-05-01T11:16:55.629095735Z, End: 2025-05-01T11:16:55.704748349Z, Duration: 00:00:00.075
2025-05-01T11:16:55.7240282Z   Store cache: Begin: 2025-05-01T11:16:55.707561331Z, End: 2025-05-01T11:16:55.712893897Z, Duration: 00:00:00.005
2025-05-01T11:16:55.7241034Z INFO: csharp security sensor peak memory: 392 MB
2025-05-01T11:16:55.7241384Z INFO: Sensor CSharpSecuritySensor [security] (done) | time=2761ms
2025-05-01T11:16:55.7241792Z INFO: Sensor PhpSecuritySensor [security]
2025-05-01T11:16:55.7242124Z INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5334, S5335, S5883, S6173, S6287, S6350, S7044
2025-05-01T11:16:55.7242450Z INFO: Load type hierarchy and UCFGs: Starting
2025-05-01T11:16:55.7242688Z INFO: Load type hierarchy: Starting
2025-05-01T11:16:55.7242948Z INFO: Reading type hierarchy from: /home/vsts/work/1/.sonarqube/out/.sonar/ucfg2/php
2025-05-01T11:16:55.7243201Z INFO: Read 0 type definitions
2025-05-01T11:16:55.7243453Z INFO: Load type hierarchy: Time spent was 00:00:00.000
2025-05-01T11:16:55.7243701Z INFO: Load UCFGs: Starting
2025-05-01T11:16:55.7243932Z INFO: Load UCFGs: Time spent was 00:00:00.000
2025-05-01T11:16:55.7244204Z INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.001
2025-05-01T11:16:55.7244464Z INFO: No UCFGs have been included for analysis.
2025-05-01T11:16:55.7244722Z INFO: php security sensor: Time spent was 00:00:00.002
2025-05-01T11:16:55.7245056Z INFO: php security sensor: Begin: 2025-05-01T11:16:55.718325262Z, End: 2025-05-01T11:16:55.720505648Z, Duration: 00:00:00.002
2025-05-01T11:16:55.7245460Z   Load type hierarchy and UCFGs: Begin: 2025-05-01T11:16:55.718600161Z, End: 2025-05-01T11:16:55.720257050Z, Duration: 00:00:00.001
2025-05-01T11:16:55.7245872Z     Load type hierarchy: Begin: 2025-05-01T11:16:55.718841759Z, End: 2025-05-01T11:16:55.719014158Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7246254Z     Load UCFGs: Begin: 2025-05-01T11:16:55.720048451Z, End: 2025-05-01T11:16:55.720156751Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7246555Z INFO: php security sensor peak memory: 392 MB
2025-05-01T11:16:55.7246814Z INFO: Sensor PhpSecuritySensor [security] (done) | time=2ms
2025-05-01T11:16:55.7247057Z INFO: Sensor PythonSecuritySensor [security]
2025-05-01T11:16:55.7247398Z INFO: Enabled taint analysis rules: S2076, S2078, S2083, S2091, S2631, S3649, S5131, S5135, S5144, S5145, S5146, S5147, S5334, S5496, S6287, S6350, S6639, S6680, S6776, S6839, S7044
2025-05-01T11:16:55.7247938Z INFO: Load type hierarchy and UCFGs: Starting
2025-05-01T11:16:55.7248164Z INFO: Load type hierarchy: Starting
2025-05-01T11:16:55.7248435Z INFO: Reading type hierarchy from: /home/vsts/work/1/.sonarqube/out/.sonar/ucfg2/python
2025-05-01T11:16:55.7248686Z INFO: Read 0 type definitions
2025-05-01T11:16:55.7248924Z INFO: Load type hierarchy: Time spent was 00:00:00.000
2025-05-01T11:16:55.7249165Z INFO: Load UCFGs: Starting
2025-05-01T11:16:55.7249394Z INFO: Load UCFGs: Time spent was 00:00:00.000
2025-05-01T11:16:55.7249654Z INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
2025-05-01T11:16:55.7249922Z INFO: No UCFGs have been included for analysis.
2025-05-01T11:16:55.7250249Z INFO: python security sensor: Time spent was 00:00:00.000
2025-05-01T11:16:55.7250586Z INFO: python security sensor: Begin: 2025-05-01T11:16:55.721940539Z, End: 2025-05-01T11:16:55.722659834Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7251112Z   Load type hierarchy and UCFGs: Begin: 2025-05-01T11:16:55.722151638Z, End: 2025-05-01T11:16:55.722453136Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7251508Z     Load type hierarchy: Begin: 2025-05-01T11:16:55.722170938Z, End: 2025-05-01T11:16:55.722286937Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7251902Z     Load UCFGs: Begin: 2025-05-01T11:16:55.722374236Z, End: 2025-05-01T11:16:55.722399636Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7252207Z INFO: python security sensor peak memory: 392 MB
2025-05-01T11:16:55.7252461Z INFO: Sensor PythonSecuritySensor [security] (done) | time=2ms
2025-05-01T11:16:55.7252713Z INFO: Sensor JsSecuritySensor [security]
2025-05-01T11:16:55.7253019Z INFO: Enabled taint analysis rules: S2076, S2083, S2631, S3649, S5131, S5144, S5146, S5147, S5334, S5696, S5883, S6096, S6105, S6287, S6350
2025-05-01T11:16:55.7262645Z INFO: Load type hierarchy and UCFGs: Starting
2025-05-01T11:16:55.7287612Z INFO: Load type hierarchy: Starting
2025-05-01T11:16:55.7287976Z INFO: Reading type hierarchy from: /home/vsts/work/1/.sonarqube/out/.sonar/ucfg2/js
2025-05-01T11:16:55.7290258Z INFO: Read 0 type definitions
2025-05-01T11:16:55.7290753Z INFO: Load type hierarchy: Time spent was 00:00:00.000
2025-05-01T11:16:55.7291080Z INFO: Load UCFGs: Starting
2025-05-01T11:16:55.7291327Z INFO: Load UCFGs: Time spent was 00:00:00.000
2025-05-01T11:16:55.7291611Z INFO: Load type hierarchy and UCFGs: Time spent was 00:00:00.000
2025-05-01T11:16:55.7291901Z INFO: No UCFGs have been included for analysis.
2025-05-01T11:16:55.7292163Z INFO: js security sensor: Time spent was 00:00:00.005
2025-05-01T11:16:55.7292517Z INFO: js security sensor: Begin: 2025-05-01T11:16:55.723247031Z, End: 2025-05-01T11:16:55.728263698Z, Duration: 00:00:00.005
2025-05-01T11:16:55.7294223Z   Load type hierarchy and UCFGs: Begin: 2025-05-01T11:16:55.725343217Z, End: 2025-05-01T11:16:55.726097312Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7294816Z     Load type hierarchy: Begin: 2025-05-01T11:16:55.725404517Z, End: 2025-05-01T11:16:55.725530516Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7295298Z     Load UCFGs: Begin: 2025-05-01T11:16:55.725613415Z, End: 2025-05-01T11:16:55.725638115Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7295618Z INFO: js security sensor peak memory: 392 MB
2025-05-01T11:16:55.7295893Z INFO: Sensor JsSecuritySensor [security] (done) | time=5ms
2025-05-01T11:16:55.7296202Z INFO: Sensor KotlinSecuritySensor [security]
2025-05-01T11:16:55.7299051Z INFO: No taint analysis rules have been enabled, will not execute taint analysis.
2025-05-01T11:16:55.7300786Z INFO: kotlin security sensor: Time spent was 00:00:00.000
2025-05-01T11:16:55.7313507Z INFO: kotlin security sensor: Begin: 2025-05-01T11:16:55.729318392Z, End: 2025-05-01T11:16:55.729771289Z, Duration: 00:00:00.000
2025-05-01T11:16:55.7313907Z INFO: kotlin security sensor peak memory: 392 MB
2025-05-01T11:16:55.7314163Z INFO: Sensor KotlinSecuritySensor [security] (done) | time=2ms
2025-05-01T11:16:55.7314423Z INFO: ------------- Run sensors on project
2025-05-01T11:16:55.8776922Z INFO: Sensor C# Telemetry processor [csharpenterprise]
2025-05-01T11:16:55.8815029Z INFO: Sensor C# Telemetry processor [csharpenterprise] (done) | time=3ms
2025-05-01T11:16:55.8815364Z INFO: Sensor C# [csharpenterprise]
2025-05-01T11:16:55.8891169Z INFO: Importing results from 8 proto files in '/home/vsts/work/1/.sonarqube/out/3/output-cs'
2025-05-01T11:16:56.3021995Z INFO: Importing results from 8 proto files in '/home/vsts/work/1/.sonarqube/out/1/output-cs'
2025-05-01T11:16:56.3609055Z INFO: Importing results from 8 proto files in '/home/vsts/work/1/.sonarqube/out/0/output-cs'
2025-05-01T11:16:56.4016852Z INFO: Importing results from 8 proto files in '/home/vsts/work/1/.sonarqube/out/2/output-cs'
2025-05-01T11:16:56.5542764Z INFO: Importing 4 Roslyn reports
2025-05-01T11:16:56.6513973Z INFO: ------------------------------------------------------------------------
2025-05-01T11:16:56.6518177Z INFO: EXECUTION FAILURE
2025-05-01T11:16:56.6518728Z INFO: ------------------------------------------------------------------------
2025-05-01T11:16:56.6538236Z INFO: Total time: 20.629s
2025-05-01T11:16:56.7322863Z INFO: Final Memory: 33M/117M
2025-05-01T11:16:56.7337458Z INFO: ------------------------------------------------------------------------
2025-05-01T11:16:56.7354372Z ##[error]ERROR: Error during SonarScanner execution
java.lang.UnsupportedOperationException: addImpact is not supported on external issues
	at org.sonar.api.batch.sensor.issue.internal.DefaultExternalIssue.addImpact(DefaultExternalIssue.java:58)
	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.setExternalIssueSeverityAndType(SarifParserCallbackImpl.java:196)
	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.createExternalIssue(SarifParserCallbackImpl.java:179)
	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.onIssue(SarifParserCallbackImpl.java:171)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:178)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:146)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:113)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:96)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:66)
	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:38)
	at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:58)
	at org.sonarsource.dotnet.shared.plugins.sensors.DotNetSensor.importResults(DotNetSensor.java:111)
	at org.sonarsource.dotnet.shared.plugins.sensors.DotNetSensor.execute(DotNetSensor.java:82)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:63)
	at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:40)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:160)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:414)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2025-05-01T11:16:56.7359149Z ERROR: Error during SonarScanner execution
2025-05-01T11:16:56.7359440Z java.lang.UnsupportedOperationException: addImpact is not supported on external issues
2025-05-01T11:16:56.7359801Z 	at org.sonar.api.batch.sensor.issue.internal.DefaultExternalIssue.addImpact(DefaultExternalIssue.java:58)
2025-05-01T11:16:56.7360346Z 	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.setExternalIssueSeverityAndType(SarifParserCallbackImpl.java:196)
2025-05-01T11:16:56.7360895Z 	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.createExternalIssue(SarifParserCallbackImpl.java:179)
2025-05-01T11:16:56.7361321Z 	at org.sonarsource.dotnet.shared.plugins.SarifParserCallbackImpl.onIssue(SarifParserCallbackImpl.java:171)
2025-05-01T11:16:56.7361732Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleResultFileElement(SarifParser10.java:178)
2025-05-01T11:16:56.7362126Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleLocationsElement(SarifParser10.java:146)
2025-05-01T11:16:56.7362502Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssue(SarifParser10.java:113)
2025-05-01T11:16:56.7362882Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.handleIssues(SarifParser10.java:96)
2025-05-01T11:16:56.7363238Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:66)
2025-05-01T11:16:56.7363609Z 	at org.sonarsource.dotnet.shared.sarif.SarifParser10.accept(SarifParser10.java:38)
2025-05-01T11:16:56.7363986Z 	at org.sonarsource.dotnet.shared.plugins.RoslynDataImporter.importRoslynReports(RoslynDataImporter.java:58)
2025-05-01T11:16:56.7364388Z 	at org.sonarsource.dotnet.shared.plugins.sensors.DotNetSensor.importResults(DotNetSensor.java:111)
2025-05-01T11:16:56.7364779Z 	at org.sonarsource.dotnet.shared.plugins.sensors.DotNetSensor.execute(DotNetSensor.java:82)
2025-05-01T11:16:56.7365144Z 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:63)
2025-05-01T11:16:56.7365513Z 	at org.sonar.scanner.sensor.ProjectSensorsExecutor.execute(ProjectSensorsExecutor.java:40)
2025-05-01T11:16:56.7365892Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:160)
2025-05-01T11:16:56.7366255Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-05-01T11:16:56.7366645Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-05-01T11:16:56.7367000Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:414)
2025-05-01T11:16:56.7367362Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-05-01T11:16:56.7367736Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-05-01T11:16:56.7400083Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
2025-05-01T11:16:56.7400497Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2025-05-01T11:16:56.7401045Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2025-05-01T11:16:56.7401375Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
2025-05-01T11:16:56.7401679Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
2025-05-01T11:16:56.7402049Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2025-05-01T11:16:56.7402426Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2025-05-01T11:16:56.7402739Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2025-05-01T11:16:56.7403260Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2025-05-01T11:16:56.7403547Z 	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2025-05-01T11:16:56.7403896Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2025-05-01T11:16:56.7404221Z 	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
2025-05-01T11:16:56.7409332Z ##[error]at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
2025-05-01T11:16:56.7417948Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2025-05-01T11:16:56.7418328Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2025-05-01T11:16:56.7418681Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
2025-05-01T11:16:56.7418978Z 	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
2025-05-01T11:16:56.7419331Z 	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
2025-05-01T11:16:56.7419573Z ERROR: 
2025-05-01T11:16:57.0824499Z ##[error]The SonarScanner did not complete successfully
2025-05-01T11:16:57.0830631Z The SonarScanner did not complete successfully
2025-05-01T11:16:57.0831553Z ##[error]11:16:57.082  Post-processing failed. Exit code: 1
2025-05-01T11:16:57.0832101Z 11:16:57.082  Post-processing failed. Exit code: 1
2025-05-01T11:16:57.0893137Z ##[error][ERROR] SonarQube Cloud: Error while executing task Analyze: The process '/usr/bin/dotnet' failed with exit code 1
2025-05-01T11:16:57.0894599Z ##[error]The process '/usr/bin/dotnet' failed with exit code 1
2025-05-01T11:16:57.0954262Z ##[section]Finishing: Sonarcloud Analyze the codebase

We seem to be having this same issue as well


##[error]at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:160)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:160)
##[error]at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
##[error]at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:414)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR:
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:414)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at jdk.proxy1/jdk.proxy1.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:126)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
	at org.sonarsource.scanner.cli.Main.main(Main.java:62)
ERROR: 
##[error]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]12:26:43.384  Post-processing failed. Exit code: 1
12:26:43.384  Post-processing failed. Exit code: 1
##[error][ERROR] SonarQube Cloud: Error while executing task Analyze: The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\3.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
##[error]The process 'D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\3.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1

Hey all.

This seems related to an incident that was resolved yesterday.

Are you still facing the issue on new analyses this morning?

Thanks @Colin for your response. My teams are checking it currently. The pipelines take some time so I will get back on this later

1 Like

Everything is resolved now. Thanks for your quick reply :slight_smile: