While building parameterized reports in SQL Server Reporting Services 2005 you may come across the following error when viewing the report in Preview.
An error occurred during local report processing.
The value provided for the report parameter ‘YourParameter’ is not valid for its type.
I encountered this error even though I had not specified a default value for the parameter. So how can it be not valid if it doesn’t exist?
I found a perfect solution in this little article.
Apparently it has something to do with the Allow blank value checkbox. In my report the data type for my parameter was Integer. And as explained in the mentioned article, the Allow blank value checkbox is checked and greyed out. Luckily the little trick of switching to String, unchecking the checkbox and switching back to Integer solves the error.
But why? How come that an error occurs due to a setting that is greyed out? A greyed out setting, doesn’t that mean that its value is not applicable in combination with the other settings? Apparently not. Well, I guess that’s a bug then, right?
If someone has a good explanation on this behaviour don’t hesitate to post a comment!
Tags: bug, Reporting Services, SSRS
-
is it just me or this is being extremely silly ?
good thing some1 posted this .. cheers -
Thanks for sharing this, blog based solutions to an issue are making me happy
You get 2 at once, first the solution to the issue, mostly with some side info, and second you get to know a nice blog. -
Thanks for this. Just like Peter I spent quite some time recreating datasets, changing queries, changing parameter types to no avail. This has got to one of the most annoying bugs, because it seems like it would be so simple to fix. Oh well, thanks for the blog entry.
-
Thank you for posting this! I was pulling my hair out trying to figure this out.
-
Thanks from me also. This was one of several annoyances for the day, I would have wasted a lot more time trying to figure this one out had it not been for your post. It is much appreciated.
-
-
Very helpful tip. Thank you.
I migrated rdls from a previous version to RS 2005 rdls, and it seems that option appeared out of nothing -
thanks a lot.it helps me
-
Thank the lord! You saved me from a big headache….
Very strange behaviour. I wouldn’t have figured it out for ages if you hadn’t told me.Many thanks!
-
Thanks a lot.. it helps me
-







11 comments
Comments feed for this article
Trackback link: http://blog.hoegaerden.be/2009/08/26/the-value-provided-for-the-report-parameter-is-not-valid-for-its-type/trackback/