リクエスト サイズが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) ...
本事象を解決するには、次の回避策を検討してください:
<system.web>変更後:
<compilation debug="true" targetFramework="4.7.1" />
<httpRuntime targetFramework="4.7.1" maxRequestLength="1048576" maxUrlLength="8192" maxQueryStringLength="8192" requestPathInvalidCharacters="" />
<customErrors mode="RemoteOnly" />
</system.web>
<system.web>
<compilation debug="true" targetFramework="4.7.1" />
<httpRuntime targetFramework="4.7.1" maxRequestLength="2147483647" maxUrlLength="8192" maxQueryStringLength="8192" requestPathInvalidCharacters="" />
<customErrors mode="RemoteOnly" />
</system.web>