Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

GetReportsListAsync - more than one matching element error

Started by Aaron Bell -   in API Endpoints


When calling GetReportsListAsync from my App for a Tennant I am getting an "InnerException Sequence contains more than one matching element" error.

I then used Xero's API Explorer to call the same Xero Accounting API > Reports Endpoint > Get Reports List Operation for the same Tennant and can see that there is a double-up of the same GST Calculation Activity Statement for the same period of 1 Jan 2022 to 31 Jan 2022.

How can there be 2 records for the same Tennant for the same period? Which is the correct one so I can take the ReportID to then call GetReportFromId?

Any help greatly appreciated.