Report Generation Error: Sequence Contains More Than One Matching Element
Symptom
When running a job in Netwrix Access Analyzer that generates a report, the report generation fails with the error:
Sequence contains more than one matching element.
NOTE: The same error text also appears on the Schedules tab when duplicate job folders exist in the Jobs directory. For that cause, see Sequence Contains More Than One Matching Element Error on Schedules Tab After Upgrading to 12.x.
Cause
Duplicate entries in the %sainstalldir%\Reports\report.xml file lead to the report failing to populate, as it cannot be determined which field is correct.
Report Configuration Example
<Reports>
<Report>
<Id>{F5BE87EC-11E4-4779-93C9-462DB92F68E4}</Id>
<Name>Attribute Changes</Name>
<Version>3</Version>
<Author>Netwrix Corporation</Author>
<Published>true</Published>
<Generated>Monday, January 27, 2025 5:00 PM</Generated>
<Description>This report tracks attribute changes within Active Directory.</Description>
<Tags />
</Report>
<Report>
<Id>{F5BE87EC-11E4-4779-93C9-462DB92F68E4}</Id>
<Name>Attribute Changes</Name>
<Version>3</Version>
<Author>Netwrix Corporation</Author>
<Published>true</Published>
<Generated>Monday, January 27, 2025 5:00 PM</Generated>
<Description>This report tracks attribute changes within Active Directory.</Description>
<Tags />
</Report>
</Reports>
Resolution
To resolve this issue, follow these steps:
- Open the
%sainstalldir%\Reports\report.xmlfile in a text editor. - Locate and remove all duplicate entries for the job causing the error.
- Copy the line that begins and ends with
<Id>and</Id>. Search the file for this line. - Remove any duplicates of the corresponding
<Report></Report>section.
- Copy the line that begins and ends with
- Save the file.
- Run the job again to generate the report.
Report Configuration Example
<Reports>
<Report>
<Id>{F5BE87EC-11E4-4779-93C9-462DB92F68E4}</Id>
<Name>Attribute Changes</Name>
<Version>3</Version>
<Author>Netwrix Corporation</Author>
<Published>true</Published>
<Generated>Monday, January 27, 2025 5:00 PM</Generated>
<Description>This report tracks attribute changes within Active Directory.</Description>
<Tags />
</Report>
</Reports>