Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

SSRS - The report parameter has a defaultValue or a ValidValue that depends on the report parameter

(0) ShareShare
ReportReport
Posted on by 873

Hello everyone,

In an SSRS report, I have a fetchXML query that is dependent on the parameters that the users will choose form the UI that are defined in the report:

  
    
    
    
      
      
      
        
          
        
      
    
    
      
    
  

The parameters that I have are the below:
ParamSettings.png

The companyParam is based on the dataset of the fetchXML and will populate the list of the companies' names.
The quarterParam is a list of options that are not based on the dataset.

When trying to publish the report I got the below error:
2068.ReportError.png


Knowing I am passing the param as per the above query and the company column name that I am querying against is of type text and not GUID:

\queryResult.pngSSRS-Result.png

I hardcoded the company name in the query it works perfectly and in the parameters, it populates the list of the companies in the UI. However, when I pass the param in the fetchXML nothing happens as the CompanyName in the UI display null values.


Could you please support solving this issue? I have spent 3 hours changing in query with no result.

Resources that I found:
SSRS - Community Dynamics
Stack overflow - SSRS param

Any help is greatly appreciated.

Best regards,
EBMRay

  • EBMRay Profile Picture
    EBMRay 873 on at
    RE: SSRS - The report parameter has a defaultValue or a ValidValue that depends on the report parameter

    Hi  ,

    Thanks for sharing the above.

    After the investigation, I realized that I had not created another dataset to retrieve the list of companies, so I configured the parameter to get the values from this new dataset, and this fixed the issue.

    Best regards,
    EBMRay

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS - The report parameter has a defaultValue or a ValidValue that depends on the report parameter

    Hi EBMRay,

    Maybe you can refer the following links: 

       

    social.msdn.microsoft.com/.../the-report-parameter-8216reportdate8217-has-a-defaultvalue-or-a-validvalue-that-depends-on-the

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans