After an upgrade from SSRS 2005 to SSRS 2012, one of our reports no longer renders and gives the following error:
Microsoft.ReportingServices.ReportProcessingException: The specified operation is not valid
I've narrowed it down to a textbox with the following expression:
=CountDistinct(Fields!field1.Value) / (CountDistinct(Fields!field2.Value) - CountDistinct(Fields!field3.Value))
Why would this no longer work, and is there an alternative i can use? The text box is to show a percentage and has format P1 assigned to it.
Many thanks in advance for any help.
Tunrs out that field3 was a calculated field. I've updated the SQL to populate field3 and all works fine now.
Related
When I run a report that has run for a few years with no problems, the report runs but I get the following error:
[rsFieldReference] The Value expression for the text box 'FieldName' refers to the field 'FieldName'.
Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
However, the Value and the field name are identical ['FieldName']. And, the report runs correctly in Visual Studio [in spite of the error] and on the Report Server when it is deployed.
How do I get the error to stop showing up?
I suspect it is a 'residual' error that is persisting even though I can't see an actual 'error'.
We recently switched to a newer version of Visual Studio [2017] and I have made a slight change to the SQL in the Dataset [nothing to do with 'FieldName'].
Thanks!
I have VS 2010.
I try using variable in SSRS.
Adding variable as explained on: http://www.sqlchick.com/entries/2010/11/24/deciding-whether-to-use-an-expression-or-a-variable-in-ssrs.html
Several problems:
I am using above, and cannot see the "readonly" parameter.
I am trying doing something like (in expression): =Variables!MyVariable.Value, and I got an error while trying to compile the report: Error 1 : Value is invalid. InvalidIdentifier.
I need to set variable value as on: http://msdn.microsoft.com/en-us/library/dd255208.aspx - Maybe this is for VS 2014. Is there any way doing that for VS 2012?
Thanks :)
I've set up a report using SSRS and would like it to AutoRefresh constantly as data will continuously be added. Simple solution was to set the value to a constant which is easy enough. However, the report is an error log so I would like for the user to be able to shut it off or delay the refresh while they read the messages. I've tried adding a parameter Refresh as an Integer but I cannot set the AutoRefresh value to an expression via
=Parameters!Refresh.Value
and
=[#Refresh]
SSRS yells at me saying the "Property value is not valid. PARAM is not a valid value for Int32."
I appreciate any help.
Yes, AutoRefresh can use an expression in SSRS 2012.
I was able to set this up correctly on SSRS 2012 and make it work. The data type of the parameter must be Integer. What data type are you using? What version of SSRS are you using?
Edit: I have confirmed it does NOT work in SSRS 2008. However, if you are using SSRS 2008 R2, change the project property TargetServerVersion to SQL Server 2008 R2, and it will work. I have it working in a test environment.
I'm using SSRS 2005 and I'd like to be able to 'jump to' different reports depending on the value in a date field. For example:
=iif(Fields!Date.Value = Today, TodaysReport, OtherDaysReport)
When I use this syntax, I get this error when previewing the report:
The ReportName expression for the textbox ‘CallId’ contains an error: [BC30451] Name 'TodaysReport' is not declared.
I don't get any error on the 'OtherDaysReport' parameter but I think the compiler gave up on the first error.
Is the syntax I'm using in the IIF statement valid in a 'Jump to Report' expression in the Navigation property of a textbox? If not, is there a different way to do what I'm trying to do.
I am not sure if you found answer to your problem yet. but for anybody with similar problem please try following
put your report names in quotations. In your case try
=iif(Fields!Date.Value = Today,"TodaysReport", "OtherDaysReport")
Also make sure you specify the right parameters and the "Omit" properties as required.
I have a report that has two tablix on it. I'm trying to control the visibility of the tablix using an expression. When i hard code in a boolean value of 0 or 1 the visibilty works. When i put in something like the following
=cbool(iif(First(Fields!bGeneralQuestionDisplayed.Value, "ClassificationNarrowed")=1 ,1,0))
it does not work. I've profiler to verify that the query is running and returning the results. I've also created a text field on the form rumming the same expression.. the result is a 1 or a 0.
anyone have any idea as to what might be causing the issue.
thanks
shannon
According to the FIRST documentation, the second parameter represents a group. Do you have a "ClassificationNarrowed" group defined?