「Catalog Mappings」テーブルの取得時に「OutOfMemoryException」エラーがスローされる


解説

カタログ アイテムのブランチ内のすべてのアイテムのロードに失敗し、未処理の例外が発生する可能性があります。この問題は、「Catalog Mappings」テーブルに非常に多くのレコードがあり、カタログ マッピングのサイズが2GBを超えていることが原因で発生します。次のメッセージがログ ファイルに記録されます。

ERROR Commerce.Connector - Request URL: GetCatalogMappings(environmentName='') - Exception: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Text.StringBuilder.ToString()
   at Sitecore.Commerce.Engine.Connect.DataProvider.CommerceRepository.InvokeHttpClientGet(String serviceCallUrl, Boolean useCommerceOps, Boolean raiseException, String language, String environment, IDictionary`2 headers)
Exception: System.OutOfMemoryException
Message: Exception of type 'System.OutOfMemoryException' was thrown.
Source: mscorlib
   at System.Text.StringBuilder.ToString()
   at Sitecore.Commerce.Engine.Connect.DataProvider.CommerceRepository.InvokeHttpClientGet(String serviceCallUrl, Boolean useCommerceOps, Boolean raiseException, String language, String environment, IDictionary`2 headers)

解決策

本問題を解決するには、以下のいずれかのオプションを検討してください: