Failed to convert code coverage report to XML

I was able to surpass this issue too by updating to the newest version (SonarCloudPrepare@2, SonarCloudAnalyze@2 and SonarCloudPublish@2) of the sonar tasks. It works on classic pipelines both on onprem an dcloud solutions in Azure DevOps. However, we are using yaml pipelines as well (trying to upgrade from classic to yaml), and although the yaml looks alike, the code coverage fails for the yaml pipelines after pulling the latest code from the main branch, so it seems a bit unstable.