The report parameter ‘sales’ has a DefaultValue or a ValidValue that depends on the report parameter “sales”. Forward dependencies are not valid.

Normally you will encounter the above error when you intend to make your parameter as a selection (dropdown) as follows:

Combo1

When developers try it in the first time and use Available Value in Report Parameters dialog then they will normally get an error that is close to this:

The report parameter ‘sales’ has a DefaultValue or a ValidValue that depends on the report parameter “sales”. Forward dependencies are not valid.

RSError

It is uneasy to find this error in Internet. Look at the below picture closely:

Combo2

The answer is not that hard. You need to use 2 Datasets instead of one. As in the picture I have dbconn (the query with parameter) and dsAllCall (query that return all the rows).

Parameter

It is hard to find this approach in Reporting Services documented mainly because using 2 Datasets is usually slow if and when you have huge amount of rows.

Resources:

How to: Associate a Query Parameter with a Report Parameter
http://msdn.microsoft.com/en-us/library/ms157187.aspx

Developing Report Navigation and Drilldown
http://msdn.microsoft.com/en-us/library/aa964132.aspx

About chanmingman

Since March 2011 Microsoft Live Spaces migrated to Wordpress (http://www.pcworld.com/article/206455/Microsoft_Live_Spaces_Moves_to_WordPress_An_FAQ.html) till now, I have is over 1 million viewers. This blog is about more than 50% telling you how to resolve error messages, especial for Microsoft products. The blog also has a lot of guidance teaching you how to get stated certain Microsoft technologies. The blog also uses as a help to keep my memory. The blog is never meant to give people consulting services or silver bullet solutions. It is a contribution to the community. Thanks for your support over the years. Ming Man is Microsoft MVP since year 2006. He is a software development manager for a multinational company. With 25 years of experience in the IT field, he has developed system using Clipper, COBOL, VB5, VB6, VB.NET, Java and C #. He has been using Visual Studio (.NET) since the Beta back in year 2000. He and the team have developed many projects using .NET platform such as SCM, and HR based applications. He is familiar with the N-Tier design of business application and is also an expert with database experience in MS SQL, Oracle and AS 400.
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to The report parameter ‘sales’ has a DefaultValue or a ValidValue that depends on the report parameter “sales”. Forward dependencies are not valid.

  1. kevin says:

    But in your solution you also populated available values.

  2. damodaram says:

    it is good. it working as per requirementss

  3. Amal says:

    It works perfectly, thank you.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.