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.
*This post is locked for comments
Hi ysrael i my issues is solve thanks for your support
Yes I am using contract class but when i wrote code for lookup fields its getting some tracing errors
Hi Sudarshan,
The having the issue??
HI,
I got the result same parameters i gave two times
now i chaged its working properly
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();
}
please verify your contract class and two param methods may have same DataMemberAttribute('CategoryName').
give your contract class details if you can't find
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'.
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:
Screenshot:
SSRS Error.
SSRS Contract Class in Other AOS Instance having duplicate DataMemberAttribute.
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,
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.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156