今天上午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 –