SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 parameter dependency
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

arkiboys
Flowing Fount of Yak Knowledge

1422 Posts

Posted - 04/04/2013 :  12:31:06  Show Profile  Reply with Quote
Hi,
My ssrs report has several datasets.
One of them uses a stored procedure (sp) which takes two parameters.
When I try to run the report, the error is:
The report parameter 'MyCode' has a defaultvalue or a validvalue that depends on the report parameter 'TableName'

The parameter 'TableName' is refering to the dataset as mentioned above which uses sp

Any thoughts please?
Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/04/2013 :  14:24:57  Show Profile  Reply with Quote
the reason for error is you've either set an expression or a dataset for default value of MyCode parameter which is having a reference to parameter TableName and it seems you've not set any default for latter

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

arkiboys
Flowing Fount of Yak Knowledge

1422 Posts

Posted - 04/05/2013 :  02:57:33  Show Profile  Reply with Quote
quote:
Originally posted by visakh16

the reason for error is you've either set an expression or a dataset for default value of MyCode parameter which is having a reference to parameter TableName and it seems you've not set any default for latter

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs



I have set a default for TableName though.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 04/09/2013 :  01:16:57  Show Profile  Reply with Quote
is tablename defined before or after MyCode?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000