2017-08-21 22 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という名前のデータセットは、フィールドが同じ名前で返されるか、名前が1回以上返されることを意味します。

解決するには、クエリを検索し、フィールド名がすべて一意になるようにクエリを修正します。 SharePointから取得しているものが、同じ名前のフィールドに複数回指定されていないことを確認してください。これは、RDLを更新する必要があることを意味します。

レポートとサブスクリプションは、レポートサーバーに変更を展開した後に機能するはずです。

関連する問題