今天上午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.
请仔细阅读本文,然后重新编写您的问题https://stackoverflow.com/help/how-to-ask –