After upgrading to TC9.1.3 from 9.1.0, our PMD code duplicate detection task started failing with the following error:
[10:47:38][Parsing errors] Failed to parse 1 report
[10:47:38][Parsing errors] build\test\testresults\metrics\duplicates_report.xml: Report is incomplete or has unexpected structure
Prior to the upgrade, it worked fine. Tested with PMD 5.1.0 and 5.4.0. The XML file itself seems structurally sound.