Monday, June 1, 2020

Sitecore XC 9.3 - Fix for Request URL: GetCatalogMappings(environmentName='')

 Recently, We found below error during the development -

      Message: Access to the registry key 'Global' is denied.  
 8516 10:01:25 INFO Cache created: 'DeviceDictionaryCache' (max size: 100MB, running total: 3908MB)  
 18808 10:01:40 INFO [Path Analyzer](.) Map EnsureAllDeployed started.  
 18808 10:01:40 INFO [Path Analyzer](.) Map EnsureAllDeployed complete.  
 18808 10:02:40 INFO [Path Analyzer](.) Map EnsureAllDeployed started.  
 18808 10:02:40 INFO [Path Analyzer](.) Map EnsureAllDeployed complete.  
 14936 10:02:47 ERROR Commerce.Connector - Request URL: GetCatalogMappings(environmentName='') - Exception: System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.  
   --- End of inner exception stack trace ---  
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)  
   at Sitecore.Commerce.Engine.Connect.DataProvider.CommerceRepository.InvokeHttpClientGet(String serviceCallUrl, Boolean useCommerceOps, Boolean raiseException, String language, String environment, IDictionary`2 headers)  
 ---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---  
 Exception: System.AggregateException  
 Message: One or more errors occurred.  
 Source: mscorlib  
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)  
   at Sitecore.Commerce.Engine.Connect.DataProvider.CommerceRepository.InvokeHttpClientGet(String serviceCallUrl, Boolean useCommerceOps, Boolean raiseException, String language, String environment, IDictionary`2 headers)  
 Nested Exception  
 Exception: System.Threading.Tasks.TaskCanceledException  
 Message: A task was canceled.  
Investigation details -

We noticed it was because of deployment, As few dlls were missing, After a full deployment this issue has been resolved.