[Tips/Tricks] ASP.NET with SQL Reporting Services

1. Error Message ~ d:\xxxxx\yourwebproject\yourreport.rdl
The value expression used in query parameter ‘@xxx’ returned a data type that is not valid.

Solution ~

  • Remove this parameter from Parameter
  • Rebuild the solution
  • (If you are still getting this error) Close and Reopen Visual Studio IDE ***

………………

2. Error Message ~ Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError) Get Online Help

Solution ~

  • Check “Has default” checkedbox in parameter lists of ReportViewer

***********

3. Problem: Report doesn’t get updated.

Solution ~

  • Add another parameter like “Timestamp” in your viewer.
  • Pass a timestamp field to your report from code.

Note: If you don’t wanna see this parameter “Timestamp” in your reportviewer, put blank for this report. (Be sure that you  have installed all required service packs.)