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 2012 Forums
 Analysis Server and Reporting Services (2012)
 The query returned no rows. The expression therefo
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jassie
Constraint Violating Yak Guru

296 Posts

Posted - 11/05/2013 :  23:42:54  Show Profile  Reply with Quote
In a SSRS 2012 existing report, I am getting the following error message when the value selected by the user should be:
Parameters!pGrade.Value = "KG".

"The Hidden expression for the tablix 'Tablix3' contains an error: The query returned no rows. The expression therefor evaluates to null."

The error message could occur on one of the iif statement(s):

1. hidden property on Tablix3 =iif(Parameters!pGrade.Value = "KG" OR Parameters!pGrade.Value = "01", False, True)

2. expression on one of the group header rows =iif(Parameters!Team.Value = "ALL","ALL", Parameters!Team.Value)

Can you tell me which iif statement could be causing the problem and what code should I use to keep the error message from occuring?

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/06/2013 :  04:07:22  Show Profile  Reply with Quote
whats the value you selected for pGrade parameter?

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

jassie
Constraint Violating Yak Guru

296 Posts

Posted - 11/06/2013 :  14:13:09  Show Profile  Reply with Quote
The value selected for pGrade parameter was "KG". When the value of '01' was selected for pGrade, no error message was generated. The default error message of saying 'no records' were selected appeared on the report.

Thanks for looking into this error message!
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.05 seconds. Powered By: Snitz Forums 2000