Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Report provider class cannot contain multiple parameters with same name.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Hi ysrael i my issues is solve thanks for your support

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Yes I am using contract class but when i wrote code for lookup fields its getting some tracing errors

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Hi Sudarshan,

    The having the issue??

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    HI,

    I got the result same parameters i gave two times

    now i chaged its working properly

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    This is my contract class

    public class InventDimViewCategoryContract extends InventDimViewContract

    {

       //EcoResCategoryName  categoryName;

       //EcoResCategoryHierarchyName categoryHierarchyName;

       List                ecorescategoryName;

       List                categoryHierarchyName;

    }

    [

       DataMemberAttribute('CategoryName'),

       SysOperationLabelAttribute(literalstr("@SUD47")),

       SysOperationHelpTextAttribute(literalstr("@SUD50")),

       AifCollectionTypeAttribute('CategoryName', Types::String, extendedtypestr(EcoResCategoryName))

    ]

    public List parmEcoresProdCategory(LIst     _categoryName= ecorescategoryName)

    {

       ecorescategoryName = _categoryName;

       return ecorescategoryName;

    }

    public static InventDimViewCategoryContract construct()

    {

       return new InventDimViewCategoryContract();

    }

  • Kanagaraj A Profile Picture
    Kanagaraj A 1,250 on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Hi SudarshanChowdary,

    please verify your contract class and two param methods may have same DataMemberAttribute('CategoryName').

    give your contract class details if you can't find

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    HI Ysrael,

    i got the same issue, i changed the datamember attribute is unique

    i changed method name

    still now i am getting this issue

    can you help me what you do

    Report provider class cannot contain multiple parameters with same name 'CategoryName'.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Clarification on the error above "class cannot contain multiple parameters with same name" while browsing in Visual Studio SSRS Report Data Provider in report designer dataset query properties, the main cause of this is having 2 or more parameters in ssrs contract class have the same DataMemberAttribute name.

    Impact: Cannot add new and update dataset with Data Source = Dynamics AX and Data Source Type = Report Data Provider in Report designer.

    Solution:

    1. Check parameters in SSRS contract class and see which are having the same DataMemberAttribute.

    2. Give a unique DataMemberAttrite name each parameter in SSRS contract class.

    Lesson:

    When working on a multiple AOS instance to a Development Environment(where AOSs server are installed), before we start any development or customization in SSRS, consider to check the following:

    1. All AOS instance are included and properly setup in AX Client Configuration.
    2. Change or select which AOS instance you were connecting in AX Client Configuration, so connection of application like Visual Studio will be point at the right instance.
    3. Make sure that all parameters declared in SSRS contract class, has a unique DataMemberAttribute.

         Screenshot:

    SSRS Error.

    3223.Capture2.png

    SSRS Contract Class in Other AOS Instance having duplicate DataMemberAttribute.

    3223.Capture2.png

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Hi All,

    Thank you for all the inputs, I've found the main cause of this problem. As I mentioned regarding the multiple AOS instance where the cause of the issue of VS RDP List is pointed in one AOS and also the reason why I having error "class cannot contain multiple parameters with same name".

    As per Iulian, "deployment relies heavily on the system wcf services" where in wcf service regeneration also happening during AX Client Configuration. In our case, we have multiple AOS in the Dev environment, where other AOS instance is not been setup in the Client configuration, that's why we come this far.

    My solution:

    1. Reinstall VS Tool.

    2. Add and setup the new AOS instance in AX Client Configuration

    3. In the AX Client Configuration Connection tab, select instance and press Up button to change the connection and press refresh button.

    Thanks,

  • Verified answer
    Iulian Cordobin Profile Picture
    Iulian Cordobin 8,201 on at
    RE: Report provider class cannot contain multiple parameters with same name.

    Certainly having multiple AOS servers is another plus factor in getting issues with development and deployments. I would however mention that you should not be doing development in a multi AOS topology, because of the exact same cause you mention: VS connected to one AOS, SSRS configured to work with another can cause issues.

    I would suggest you try to develop in a one AOS environment and then move the TEST to a multi AOS scenario.

    Plus, when you are doing deployment in a multi AOS scenario, for instance the Full CIL should be done on one server with the rest being closed, and then restart them sequentially. I'm not saying this applies to SSRS deployment, but the deployment relies heavily on the system wcf services, so, I can see some interference.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans