2010-10-19 113 views
1

嗨: 我们的一位客户随机出现此异常。我们加入了一些重新尝试的代码和保持活着的代码,但它仍然会发生。 所以我正在查看我们的客户给我们发送的SQL日志。我看到了这一点。在SQL Reporting Service中随机发生UnhandledReportRenderingException

所以基本上,其中一个报告在某些领域没有数据。那会是这个问题的原因吗?

library!ReportServer_0-15!150c!10/11/2010-11:50:22:: i INFO: RenderForNewSession('/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008') 
processing!ReportServer_0-15!150c!10/11/2010-11:50:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9., ; 
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9. 
webserver!ReportServer_0-15!62c!10/11/2010-11:50:23:: i INFO: Processed report. Report='/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008', Stream='' 
library!ReportServer_0-15!13ec!10/11/2010-11:50:50:: Call to GetReportParametersAction(/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008). 
library!ReportServer_0-15!13ec!10/11/2010-11:50:51:: i INFO: RenderForNewSession('/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008') 
processing!ReportServer_0-15!13ec!10/11/2010-11:50:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9., ; 
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9. 
library!ReportServer_0-15!13ec!10/11/2010-11:50:58:: Call to GetReportParametersAction(/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008). 
library!ReportServer_0-15!13ec!10/11/2010-11:50:59:: i INFO: RenderForNewSession('/CMSm5/PharmaPac_Live/Custom/Documents/Purchase Order.Pharma.2008') 
processing!ReportServer_0-15!13ec!10/11/2010-11:50:59:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9., ; 
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 9. 

回答

0

它可以在文本框或其他控件中的条件表达式中使用。或者在一个组/排序/过滤表达式中。

所以大多数时候它是正常的,直到某些条件或事件发生,然后它寻找一个不存在的列。

对不起,是有点含糊

这也有可能是潜在的RDL稍有损坏太:你可以重新部署?

+0

是的,RDL部署。所以你推荐什么?重新部署? – user480838 2010-10-20 17:51:09

+0

@ user480838:删除并重新部署。这是一个随机的,不科学的,但它为我工作一两次之前。 – gbn 2010-10-20 18:25:00

0

数据集中的字段可能与源存储过程中不再存在的列相对应。该字段可能不再用于报表,因为如果使用该字段,运行报表时会出现真正的错误。

0

我得到这个错误坏RDL

<DataSets> 
    <DataSet Name="testDataSet"> 
    <Fields> 
     <Field Name="ID"> 
     <DataField /> 
     <rd:TypeName>System.String</rd:TypeName> 
     </Field> 
    </Fields> 

,你可以看到 - 数据字段元素为空。最奇怪的是,此类RDL由VS报表设计器预览显示,但不会显示在ReportViewer中作为本地报表和Web浏览器窗口中的报表服务。数据字段后 已经正确填写并报告调往报告

<DataField>ID</DataField> 

错误已经