Skip to main content
added 1 character in body
Source Link
Peter Procházka
  • 9.5k
  • 2
  • 30
  • 71

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

7300 09:38:26 ERROR Http Client Error Exception: System.Exception Message: An error occured while trying to contact the Commerce Service. Error code BadRequest

7300 09:38:26 ERROR GetList(id='Catalogs',type='Sitecore.Commerce.Plugin.Catalog.Catalog, Sitecore.Commerce.Plugin.Catalog',skip=0,take=1)?$expand=Items($select=Id) System.Exception: An error occured while trying to contact the Commerce Service. Error code BadRequest at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.LogResponseError(HttpResponseMessage response, Boolean raiseError) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.d__24.MoveNext()

ManagedPoolThread #0 09:38:26 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object[] ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.DoExecute() at Sitecore.Jobs.Job.ThreadEntry(Object state) Nested Exception Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: key Source: mscorlib at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" iswas empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

7300 09:38:26 ERROR Http Client Error Exception: System.Exception Message: An error occured while trying to contact the Commerce Service. Error code BadRequest

7300 09:38:26 ERROR GetList(id='Catalogs',type='Sitecore.Commerce.Plugin.Catalog.Catalog, Sitecore.Commerce.Plugin.Catalog',skip=0,take=1)?$expand=Items($select=Id) System.Exception: An error occured while trying to contact the Commerce Service. Error code BadRequest at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.LogResponseError(HttpResponseMessage response, Boolean raiseError) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.d__24.MoveNext()

ManagedPoolThread #0 09:38:26 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object[] ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.DoExecute() at Sitecore.Jobs.Job.ThreadEntry(Object state) Nested Exception Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: key Source: mscorlib at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" is empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

7300 09:38:26 ERROR Http Client Error Exception: System.Exception Message: An error occured while trying to contact the Commerce Service. Error code BadRequest

7300 09:38:26 ERROR GetList(id='Catalogs',type='Sitecore.Commerce.Plugin.Catalog.Catalog, Sitecore.Commerce.Plugin.Catalog',skip=0,take=1)?$expand=Items($select=Id) System.Exception: An error occured while trying to contact the Commerce Service. Error code BadRequest at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.LogResponseError(HttpResponseMessage response, Boolean raiseError) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.d__24.MoveNext()

ManagedPoolThread #0 09:38:26 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object[] ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.DoExecute() at Sitecore.Jobs.Job.ThreadEntry(Object state) Nested Exception Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: key Source: mscorlib at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" was empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

Update title with relevant data
Link
Arvind Gehlot
  • 2.9k
  • 2
  • 21
  • 49

Value cannot be null Exception when updating data templates in Sitecore Commerce 9 on PaaS

added 795 characters in body
Source Link
Peter Procházka
  • 9.5k
  • 2
  • 30
  • 71

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

7300 09:38:26 ERROR Http Client Error Exception: System.Reflection.TargetInvocationExceptionException Message: Exception has been thrown byAn error occured while trying to contact the target of an invocation. ---> SystemCommerce Service.ArgumentNullException Error code BadRequest

7300 09: Value cannot be null. Parameter name38: key at System26 ERROR GetList(id='Catalogs',type='Sitecore.CollectionsCommerce.ConcurrentPlugin.ConcurrentDictionary`2Catalog.ContainsKeyCatalog, Sitecore.Commerce.Plugin.Catalog',skip=0,take=1)?$expand=Items(TKey key$select=Id) at System.Exception: An error occured while trying to contact the Commerce Service. Error code BadRequest at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityViewLogResponseError(String sitecoreId, String viewName, String forActionHttpResponseMessage response, String itemIdBoolean raiseError) at at Sitecore.Commerce.Engine.Connect.DataProvider.TemplatesCatalogRepository.CatalogTemplateGeneratord__24.BuildCatalogTemplatesMoveNext(Database database) --- End

ManagedPoolThread #0 09:38:26 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of inner exception stack trace --- atan invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at at (Object , Object[] ) at at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at at Sitecore.Jobs.Job.DoExecute() at at Sitecore.Jobs.Job.ThreadEntry(Object state) Nested Exception Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: key Source: mscorlib at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" is empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: key at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object[] ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.DoExecute() at Sitecore.Jobs.Job.ThreadEntry(Object state)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" is empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

One of the post installation steps of installing Sitecore Commerce 9 on PaaS is to Update Data Templates from Commerce ribbon in Content Editor.

Unfortunately, this is ending with exception.

enter image description here

7300 09:38:26 ERROR Http Client Error Exception: System.Exception Message: An error occured while trying to contact the Commerce Service. Error code BadRequest

7300 09:38:26 ERROR GetList(id='Catalogs',type='Sitecore.Commerce.Plugin.Catalog.Catalog, Sitecore.Commerce.Plugin.Catalog',skip=0,take=1)?$expand=Items($select=Id) System.Exception: An error occured while trying to contact the Commerce Service. Error code BadRequest at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.LogResponseError(HttpResponseMessage response, Boolean raiseError) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.d__24.MoveNext()

ManagedPoolThread #0 09:38:26 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object[] ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.Job.DoExecute() at Sitecore.Jobs.Job.ThreadEntry(Object state) Nested Exception Exception: System.ArgumentNullException Message: Value cannot be null. Parameter name: key Source: mscorlib at System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(TKey key) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetEntityView(String sitecoreId, String viewName, String forAction, String itemId) at Sitecore.Commerce.Engine.Connect.DataProvider.Templates.CatalogTemplateGenerator.BuildCatalogTemplates(Database database)

I navigated to "/sitecore/Commerce/Catalog Management/Catalogs" and field "SelectedCatalogs" is empty. You can see it on picture above on the bottom part. I suspect that this is causing trouble but I don't know how to make it fulfilled.

As this field is empty, it is also causing trouble with Default Catalog Setting item located in "/sitecore/Commerce/Settings/Catalog/Default Catalog":

enter image description here

I have clicked "Refresh Commerce Cache" couple of times and also restarted services in Azure PaaS. Nothing helped so far.

I can see catalogs for each environment without any problem in Business Tools (bizfx):

enter image description here

Any thoughts?

added 69 characters in body
Source Link
Peter Procházka
  • 9.5k
  • 2
  • 30
  • 71
Loading
Source Link
Peter Procházka
  • 9.5k
  • 2
  • 30
  • 71
Loading