デバイス検出が無効化されている場合に「Couldn't retrieve device information for user agent」エラーがログに出力される


解説

DeviceDetection.Enabled設定が falseに設定されている場合、次のエラーがログに出力されることがあります。

ERROR Couldn't retrieve device information for user agent: [user agent name]
Exception: Sitecore.CES.DeviceDetection.Exceptions.DeviceDetectionException
Message: Device detection is disabled
Source: Sitecore.CES.DeviceDetection
at Sitecore.CES.DeviceDetection.DefaultDeviceDetectionManager.GetDeviceInformation(String userAgent)
at Sitecore.Analytics.XConnect.DataAccess.Pipelines.ConvertToXConnectInteractionPipeline.ConvertToXConnectInteractionProcessor.ProcessGetUserAgentInfo(ConvertToXConnectInteractionPipelineArgs args)

この問題を解決するには、以下のオプションのいずれかの実施をご検討ください。

また、この挙動はSitecoreの機能自体には影響を与えないため、ログにエラーが出力されないよう抑止することができます。これを実施するには、以下のフィルターをLogFileAppenderに追加します。
<filter type="log4net.Filter.StringMatchFilter">
    <stringToMatch value="retrieve device information for user agent"/>
    <acceptOnMatch value="false" />
</filter>