ストリームから読み取り可能な最大バイト数に関するxConnectログ内のエラー


解説

リクエスト サイズがWeb.configファイルのmaxRequestLength属性の値を超えると、xConnectリクエストの送信が未処理の例外で失敗する場合があります。たとえば、訪問者があまりにも多くのページを訪問し、あまりにも多くの目標をトリガーし、膨大な訪問記録がxConnectに送信された場合などです。ログに次のメッセージが記録されます:

[Error] XConnect Exception Logger LogAsync()
Microsoft.OData.ODataException: The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read operation, a total of 1055995 bytes has been read from the stream; however a maximum of 1048576 bytes is allowed.
   at Microsoft.OData.MessageStreamWrapper.MessageStreamWrappingStream.IncreaseTotalBytesRead(Int32 bytesRead)
   at Microsoft.OData.MessageStreamWrapper.MessageStreamWrappingStream.Read(Byte[] buffer, Int32 offset, Int32 count)
...

解決法

本事象を解決するには、次の回避策を検討してください: