Hi Wei,
Here are the errors from report server log file: (the two always came =
together)
We changed to have both main report and subreport use private data =
sources, but we were still getting same error.
w3wp!webserver!1!08/01/2006-16:46:18:: i INFO: Processed report. =
Report=3D'/', Stream=3D''
w3wp!library!1!08/01/2006-16:49:36:: i INFO: Call to CreateDataSource( =
'MyReport', '/Data Sources', dataSourceDefinition )
w3wp!library!1!08/01/2006-16:49:36:: i INFO: Call to CreateReport( =
'BudgetAdHoc', '/EventReports', def)
w3wp!library!1!08/01/2006-16:49:36:: i INFO: Call to =
SetReportDefinition( '/EventReports/BudgetAdHoc', def )
w3wp!library!1!08/01/2006-16:49:39:: e ERROR: Throwing =
Microsoft.ReportingServices.Diagnostics.Utilities.ItemNotFoundException: =
The item '/GenericSubreportEventDetails' cannot be found., ;
Info: =
Microsoft.ReportingServices.Diagnostics.Utilities.ItemNotFoundException: =
The item '/GenericSubreportEventDetails' cannot be found.
w3wp!processing!1!08/01/2006-16:49:39:: e ERROR: An error has occurred =
while retrieving datasources for a sub-report. Details: The item =
'/GenericSubreportEventDetails' cannot be found. Stack trace:
at =
Microsoft.ReportingServices.Library.RSService.GetCompiledDefinition(Strin=
g originalItemPath, String itemPath, ItemType& type, ReportSnapshot& =
compiledDefinition, Guid& executionSnapshotID, String& properties, =
String& description, Byte[]& secDesc, Guid& reportID, Int32& =
execOptions)
at =
Microsoft.ReportingServices.Library.RSService.ProcessingGetDataSources(Ca=
talogItemContext reportContext, String subreportPath, =
CatalogItemContext& subreportContext, GetReportChunk& =
getCompiledDefinition, DataSourceInfoCollection& dataSources)
at =
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CheckCreden=
tials(Report report, DataSourceInfoCollection dataSources, =
CatalogItemContext reportContext, SubReportDataSourcesCallback =
subReportCallback, RuntimeDataSourceInfoCollection allDataSources, Int32 =
subReportLevel, Boolean checkIfUsable, ServerDataSourceSettings =
serverDatasourceSettings)
w3wp!library!1!08/01/2006-16:49:41:: i INFO: Call to RenderFirst( '' )
w3wp!library!1!8/1/2006-16:49:41:: e ERROR: Throwing =
Microsoft.ReportingServices.Diagnostics.Utilities.ItemNotFoundException: =
The item '/GenericSubreportEventDetails' cannot be found., ;
Info: =
Microsoft.ReportingServices.Diagnostics.Utilities.ItemNotFoundException: =
The item '/GenericSubreportEventDetails' cannot be found.
w3wp!processing!1!8/1/2006-16:49:41:: e ERROR: An error has occurred =
while processing a sub-report. Details: The item =
'/GenericSubreportEventDetails' cannot be found. Stack trace:
at =
Microsoft.ReportingServices.Library.RSService.ProcessingGetSubreport(Cata=
logItemContext reportContext, String subreportPath, CatalogItemContext& =
subreportContext, String& description, GetReportChunk& =
getCompiledDefinition, ParameterInfoCollection& parameters)
at =
Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeRICo=
llection.RetrieveSubReport(SubReport subReport, ProcessingContext =
processingContext, ProcessingErrorContext subReportErrorContext, Boolean =
isProcessingPrefetch)
It is important to know that we use LoadReportDefinition to load RDL for =
this kind of ad-hoc report (columns were created on the fly based on =
user's selections). If I understand correctly, the LoadReportDefinition =
method requires RDL use private data source. I believe the second error =
(ItemNotFoundException) was actually caused by the first error (failed =
to create the subreport item due to the error while retrieving data =
sources).
Since the main report and sub report both use private data source, I =
only see one data source was created from report server log. I expect to =
see two data sources created, one for main report and one for sub =
report. Can this be the reason, or something to do with data source =
credential ?
Thanks
[quoted text, click to view] "Wei Lu [MSFT]" <weilu@online.microsoft.com> wrote in message =
news:ktCgbCRtGHA.2500@TK2MSFTNGXA01.phx.gbl...
> Hi spamme,
>=20
> Thank you for using MSDN Managed Newsgroup Support.
>=20
> From your description, my understanding of this issue is: You could =
not see=20
> your subreport and you get the error "Error: Subreport could not be=20
> shown.". If I misunderstood your concern, please feel free to let me =
know.
>=20
> I would like to get the Report Error log file to troubleshot this =
issue. By=20
> default, the log file is located at \Microsoft SQL Server\<SQL Server=20
> Instance>\Reporting Services\LogFiles.=20
>=20
> Please post the error in the log file so that I could provide further=20
> assistance.
>=20
> Sincerely,
>=20
> Wei Lu
>=20
> Microsoft Online Community Support
>=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
[quoted text, click to view] >=20
> Get notification to my posts through email? Please refer to=20
> =
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#no= tif
[quoted text, click to view] > ications.
>=20
> Note: The MSDN Managed Newsgroup support offering is for non-urgent =
issues=20
> where an initial response from the community or a Microsoft Support=20
> Engineer within 1 business day is acceptable. Please note that each =
follow=20
> up response may take approximately 2 business days as the support=20
> professional working with you may need further investigation to reach =
the=20
> most efficient resolution. The offering is not appropriate for =
situations=20
> that require urgent, real-time or phone-based interactions or complex=20
> project analysis and dump analysis issues. Issues of this nature are =
best=20
> handled working with a dedicated Microsoft Support Engineer by =
contacting=20
> Microsoft Customer Support Services (CSS) at=20
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. >=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
[quoted text, click to view] > (This posting is provided "AS IS", with no warranties, and confers no=20
> rights.)