Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

an item with the same key has already been added, but there are not duplicate fields in the query - SSRS

Posted on by 572


Hi Experts,

I've been having an issue where I keep getting the error "an item with the same key has already been added" when I try to add a query with HCMWorker Table as datasource in my dataset for a SSRS report.

I've looked up this error online and people were saying it is due to duplicate fields generated by the query, but there are no duplicate fields in the query. Can any one help me out to solve this issue please.

pastedimage1609237884664v1.png

  • George.Zhao Profile Picture
    George.Zhao 5 on at
    RE: an item with the same key has already been added, but there are not duplicate fields in the query - SSRS

    I am using a data provider class and a temp table so there is no way the column name can be duplicated. but still I am getting the same error.

  • D365  beginner Profile Picture
    D365 beginner 572 on at
    RE: an item with the same key has already been added, but there are not duplicate fields in the query - SSRS

    I found that the issue occurs when I add the field person in the query, noting that the table used in the query is HCMWorker and the dynamic fields property set as No. I am able to add other fields except Person in the query but facing the same error when joining other data sources in the same query.

    any workarounds ?

  • D365  beginner Profile Picture
    D365 beginner 572 on at
    RE: an item with the same key has already been added, but there are not duplicate fields in the query - SSRS

    Hi Blue Wang,

    Thanks for your response. It keeps giving me error with both YES or NO as dynamic fields property.

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: an item with the same key has already been added, but there are not duplicate fields in the query - SSRS

    Hi Sir,

    How about your "Dynamics Fields" property in your Query?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans