Question : Subreport could not be shown - SQL Server Reporting Services 2008 - Only on delpoyed Reports via Report Veiwer Web Part - SharePoint Integrated Mode Setup

I am using Visual Studio 2008, SQL Server 2008 Reporting Servces, WSS 3.0. Reporting Services is configured in SharePoint Integration mode. I am displaying reports on SharePoint pages using the Report Viewer Web Part.

Reports are deployed all in one folder (document library). Top level reports display just fine. When I go to sub report usually by going to he next page (unless the first report is a multiple page report), I get the "Subreport could not be shown" error.

I understand that this error comes up if there are any errors like no parameters passed, or sme other issue with the sub report. All of these errors can be repeated and fixed at design time in VS 2008. I even have VS 2008 installed on the same box that is running SRS 2008 and WSS with the same database.

I get the error only when the report runs in the report viewer web part. If I go to VS 2008 and run the same report and subreport on the same server I get no errors.

Can any one help?

Thanks!

Answer : Subreport could not be shown - SQL Server Reporting Services 2008 - Only on delpoyed Reports via Report Veiwer Web Part - SharePoint Integrated Mode Setup

It looks like digging into the expanded error message gave me the simple solution:

My original shared data source was PMCC2005. I changed the name of the data source to PMCC2008 mid way through development. The interesting thing is that in each report you can choose to "Use a shared data source reference" which is what I did. The problem it looks like is that I used the one and only shared data source in my project PMCC2005 from the drop down.

So I changed the name of the shared data source in my project to from PMCC2005 to PMCC2008. Then in each report where I define the data source, I make sure that the report's data source is using PMCC2008 shared data source by selecting it in the drop down. The crazy thing is that this works correctly everywhere else except for the production box. Good practice would be to name all data sources referring to the shared data source in your project the same name as the project's shared data source.

I have added a few images to explain it. Thanks Emes for getting me to the detailed error message!
 
Data source definition dialog box with different data source names
Data source definition dialog box with different data source names
 
 
Data source definition dialog box with the same name.
Data source definition dialog box with the same name.
 
 
Image of Shared Data Source in Project
Image of Shared Data Source in Project
 
 
Image of renamed Shared Datasource
Image of renamed Shared Datasource
 
Random Solutions  
 
programming4us programming4us