I have 2 reports that run. When I try to add the 2nd report into the 1st report as a subreport, I get an error “Error: Subreport could not be shown.” when the report is run. I have been able to create a report with a subreport in the the past. Does anyone have instructions or a workshop or link to a recording of how to add an SSRS subreport so that I can review the basics again.
I can run reports TimePhase2 and TimePhase3 separately. When I try to add TimePhase3 as a subreport on TimePhase2 with parameters: TableGuid and PartNum the report fails.
I’ve found that the path to the subreport gets fouled sometimes. Sometimes it needs the full path to its locaction, and other times it needs to be relative to parent reports location.
I dont believe thats entirely correct. Maybe a BAQ only creates a single dataset, but you definitely able to have subreports (with their own embedded datasource and dataset) in the RDL of a BAQ Report.
Calvin is correct, you should be able to have no problems with a subreport from a BAQ. Remember unlike Crystal where a sub-report is embedded in the main report in SSRS a subreport is nothing more than another SSRS Report being referenced during run time in a set location.
In Query Designer build the query to get the data of your subreport. Here’s an example to query the Part table, with PartNum being a paramter (which will be passed from the main report)
This is great! Also, since you are on Premise may i suggest using Data Tools instead of Report Builder, it will allow you to see all your objects in one solution and test them as you are developing.