Sql server 2008 未找到SSRS2008子报告

Sql server 2008 未找到SSRS2008子报告,sql-server-2008,reporting-services,reportviewer,reportserver,Sql Server 2008,Reporting Services,Reportviewer,Reportserver,我有一个主报表,它调用同一子报表的两个实例,只有一个参数不同。主报表和子报表都可以在报表服务器上查看,并且存在于同一文件夹中,使用相同的数据源,并且具有相同的权限 在VisualStudio报表项目中查看时,报表正常运行,但在部署时不运行 编辑:我发现问题存在于具有4个或更多参数的子报表中。删除多值参数至3后,报告正确运行。将非多值参数添加到子报表会导致问题重新出现 我从SQL Server日志中得到以下错误: processing!ReportServer_0-1!5884!11/20/201

我有一个主报表,它调用同一子报表的两个实例,只有一个参数不同。主报表和子报表都可以在报表服务器上查看,并且存在于同一文件夹中,使用相同的数据源,并且具有相同的权限

在VisualStudio报表项目中查看时,报表正常运行,但在部署时不运行

编辑:我发现问题存在于具有4个或更多参数的子报表中。删除多值参数至3后,报告正确运行。将非多值参数添加到子报表会导致问题重新出现

我从SQL Server日志中得到以下错误:

processing!ReportServer_0-1!5884!11/20/2014-13:31:51:: e ERROR: An error has occurred while processing a sub-report. Details: Object reference not set to an instance of an object. Stack trace:
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.IsAllDataShared(SubReport subReport, Boolean canShareDataSets)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.FetchSubReports(Report report, IChunkFactory getReportChunks, ErrorContext errorContext, OnDemandMetadata odpMetadata, CatalogItemContext parentReportContext, OnDemandSubReportCallback subReportCallback, Int32 subReportLevel, Boolean snapshotProcessing, Boolean processWithCachedData, Boolean canShareDataSets, GlobalIDOwnerCollection globalIDOwnerCollection, ParameterInfoCollection parentQueryParameters)
reportrendering!ReportServer_0-1!5884!11/20/2014-13:31:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: The subreport 'rptCombinedItems' could not be found at the specified location /HVAC_STAGING/subrptQuoteLineItems. Please verify that the subreport has been published and that the name is correct., ;
 Info: Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: The subreport 'rptCombinedItems' could not be found at the specified location /HVAC_STAGING/subrptQuoteLineItems. Please verify that the subreport has been published and that the name is correct.
processing!ReportServer_0-1!5884!11/20/2014-13:31:51:: e ERROR: An error has occurred while processing a sub-report. Details: The subreport 'rptCombinedItems' could not be found at the specified location /HVAC_STAGING/subrptQuoteLineItems. Please verify that the subreport has been published and that the name is correct. Stack trace:
   at Microsoft.ReportingServices.OnDemandReportRendering.SubReport.CheckRetrievalStatus(Status status)
   at Microsoft.ReportingServices.OnDemandReportRendering.SubReport.RetrieveSubreport()
对于参数传递,主报表使用

<Parameters>
  <Parameter Name="OfficeCopy">
     <Value>=Parameters!OfficeCopy.Value</Value>
  </Parameter>
  <Parameter Name="QuoteProfile">
     <Value>=Parameters!QuoteProfile.Value</Value>
  </Parameter>
  <Parameter Name="isBreakout">
     <Value>=NOT(Parameters!ShowTotal.Value)</Value>
  </Parameter>
  <Parameter Name="quoteIDs">
     <Value>=Parameters!quoteIDs.Value</Value>
  </Parameter>
  <Parameter Name="printOptions">
     <Value>=Parameters!printOptions.Value</Value>
  </Parameter>
子报告采取了以下措施:

  <ReportParameters>
    <ReportParameter Name="OfficeCopy">
      <DataType>Boolean</DataType>
      <Prompt>OfficeCopy</Prompt>
    </ReportParameter>
    <ReportParameter Name="QuoteProfile">
      <DataType>Integer</DataType>
      <Prompt>QuoteProfile</Prompt>
    </ReportParameter>
    <ReportParameter Name="isBreakout">
      <DataType>Boolean</DataType>
      <Prompt>isBreakout</Prompt>
    </ReportParameter>
    <ReportParameter Name="quoteIDs">
      <DataType>Integer</DataType>
      <Prompt>quoteIDs</Prompt>
      <MultiValue>true</MultiValue>
    </ReportParameter>
    <ReportParameter Name="printOptions">
      <DataType>Integer</DataType>
      <Prompt>printOptions</Prompt>
      <MultiValue>true</MultiValue>
    </ReportParameter>
  </ReportParameters>

最后,它由.NET 4.5.2应用程序中的报表查看器9.0.0.0调用,报表服务器正在运行10.0.5520.0。服务器正在运行server 2008。

您能否登录到ssrs管理器并验证子报表是否与主报表位于同一存储库中?是的,ssrs管理器显示它们位于同一个repo中。手动检查报告数据库也显示了这一点。