2017-08-21 55 views
-2

今天上午SSRS电子邮件订阅无法使用。我看到的错误消息是“发送邮件失败:报告处理期间发生错误,邮件不会被重新发送。”当我检查日志文件时,发现报告中的多个数据集中存在错误。该报告正在从Sharepoint读取数据。请在下面找到日志文件中的错误。发送邮件失败:报告处理期间发生错误。邮件不会重新发送

processing!WindowsService_22!c0c!08/21/2017-06:00:34:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'WORK_PACKS'. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary'2.Add(TKey key, TValue value) at Microsoft.ReportingServices.DataExtensions.SharePointList.SPRemoteCommand.DataReader..ctor(SPRemoteCommand command, CommandBehavior behavior) at Microsoft.ReportingServices.DataExtensions.SharePointList.SPRemoteCommand.CreateDataReader(SPCommandBase command, CommandBehavior behavior) at Microsoft.ReportingServices.DataExtensions.SharePointList.SPCommandBase.ExecuteReader(CommandBehavior behavior) at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List'1 queryParams, Object[] paramValues) --- End of inner exception stack trace ---; processing!WindowsService_22!a88!08/21/2017-06:00:34:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'CONSTRUCTION_ACTIVITIES'. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary'2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary'2.Add(TKey key, TValue value)
at Microsoft.ReportingServices.DataExtensions.SharePointList.SPRemoteCommand.DataReader..ctor(SPRemoteCommand command, CommandBehavior behavior) at Microsoft.ReportingServices.DataExtensions.SharePointList.SPRemoteCommand.CreateDataReader(SPCommandBase command, CommandBehavior behavior) at Microsoft.ReportingServices.DataExtensions.SharePointList.SPCommandBase.ExecuteReader(CommandBehavior behavior) at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSet.RunEmbeddedQuery(Boolean& readerExtensionsSupported, Boolean& readerFieldProperties, List`1 queryParams, Object[] paramValues) --- End of inner exception stack trace ---; processing!WindowsService_22!a88!08/21/2017-06:00:34:: e ERROR: An exception has occurred in data set 'CONSTRUCTION_ACTIVITIES'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'CONSTRUCTION_ACTIVITIES'. ---> System.ArgumentException: An item with the same key has already been added. processing!WindowsService_22!c0c!08/21/2017-06:00:34:: e ERROR: An exception has occurred in data set 'WORK_PACKS'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'WORK_PACKS'. ---> System.ArgumentException: An item with the same key has already been added. processing!WindowsService_22!c0c!08/21/2017-06:00:34:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: , Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'CONSTRUCTION_ACTIVITIES'. ---> System.ArgumentException: An item with the same key has already been added.

+0

请仔细阅读本文,然后重新编写您的问题https://stackoverflow.com/help/how-to-ask –

回答

1

在错误消息中描述的问题(很差)。我从来不喜欢这个错误信息,但我已经看过很多次了。

Query execution failed for dataset 'WORK_PACKS'. ---> System.ArgumentException: An item with the same key has already been added.

它的意思是数据集名为WORK_PACKS已经被用相同的名称,或没有名字,不止一次返回的字段。

要解决该问题,请查找查询并更正查询,以使字段名称都是唯一的。确保您从SharePoint获得的内容不会多次向您提供具有相同名称的字段。这可能意味着RDL需要更新。

在将更改部署到报告服务器后,报告和订阅应该可以工作。

相关问题