Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

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

Posted on by 867

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 867 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans