web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Report provider class cannot contain multiple parameters with same name.

(0) ShareShare
ReportReport
Posted on by

Hi,

Anyone can give light about this issue, I tried to refresh dataset on the report designer, then I got this error "Report provider class cannot contain multiple parameters with same name paramName". I deleted all parameters but still the same error.

7382.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,580 Most Valuable Professional on at

    There are two sets of parameters. There is one parameter node for the whole report and then one parameter node for each dataset. Please make sure that you've cleaned up both.

  • Iulian Cordobin Profile Picture
    8,201 on at

    Is your contract class being used in your DP class properly compiling?  Also, when you say you deleted all the parameters, you are referring that you deleted them from the SSRS report - Parameter section?

  • Community Member Profile Picture
    on at

    Hi Martin,

    Yes, both are cleared properly, also I restart the AOS service to refresh but still same problem.

    Weird thing is when I tried to import back the VS Project backup, it did not change, still the same ssrs report design.   

    3036.Capture1.PNG

  • Community Member Profile Picture
    on at

    Hi Iulian,

    Yes, contract class is being used in DP class and properly compiled.

    Yes, I was referring on deleting parameters from the SSRS report - Parameter section.

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    Do a complete refresh of the components, meaning restart the SSRS service, AOS, and then in AX do a Tools -> Caches -> Refresh elements and Refresh report server.

  • Community Member Profile Picture
    on at

    Hi Iulian,

    I followed on your instruction but still the same, also I tried to removed the contract class in DP class but still the same.

    Thanks,

  • Martin Dráb Profile Picture
    238,580 Most Valuable Professional on at

    Can you show us your RDP class? The problem seems to be there. Also try restarting AOS after changing your RDP class; it's possible that the metadata service returns outdated data from cache.

  • Community Member Profile Picture
    on at

    Do think license for "Enable License code for authoring and editing" can cause this error. Also when I edit a class the model is still the same "Foundation" and not changing to CUS.

    I created new DP class, but when I browse it in the Report designer dataset Query properties, new DP class is not on the list, I tried to restart AOS but still the same.  

  • Iulian Cordobin Profile Picture
    8,201 on at

    No, that code in the license is not causing this.

    Now you are starting to describe a somehow different situation. For a DP class to be visible in the VS DP list it has to inherit one of the SRSDataProvider* classes, also to have specific attributes to describe the contract class SRSReportParameterAttribute(classStr(ContractClass)), maybe the query, etc. Have you done that?

    Also, a standard class edited by you will still show on Foundation, only the tree nodes changed by you will show the  new model.

  • Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hello,

    1. Can you please try to create new dataset & put RDP classname and check.

    2. If you have parameters in Contract class and you are using that in RDP class then please write a simple job and call your report class & check. You will get whether you are facing issue. If its not help then please put your contract class method and processReport of RDP class.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Volodya Profile Picture

Volodya 2

#2
tgudwanski Profile Picture

tgudwanski 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans