2017-08-21 67 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需要更新。

在將更改部署到報告服務器後,報告和訂閱應該可以工作。

相關問題