Hello Devs,
While Installing Sitecore Commerce 9 update 1, I faced below
error -
This error seems to be from the Sitecore side.The log file from Sitecore showed below Stacktrace
“Exception [1]: Microsoft.OData.Client.DataServiceQueryException Message[1]: An error occurred while processing this request. Source[1]: Sitecore.Commerce.ServiceProxy at Sitecore.Commerce.ServiceProxy.Proxy.GetValue[T](DataServiceQuerySingle`1 query) at Sitecore.Commerce.Engine.Connect.DataProvider.CatalogRepository.GetLanguages() at Sitecore.Commerce.Engine.Connect.DataProvider.ReadOnlyCatalogDataProvider.GetItemVersions(ItemDefinition itemDefinition, CallContext context) at Sitecore.Data.DataProviders.DataProvider.GetItemVersions(ItemDefinition item, CallContext context, DataProviderCollection providers) at Sitecore.Data.DataSource.LoadVersions(ItemDefinition definition, Language language) at Sitecore.Data.DataSource.GetVersions(ItemInformation itemInformation, Language language) at Sitecore.Data.DataSource.GetLatestVersion(ItemInformation itemInformation, Language language) at Sitecore.Data.DataSource.GetItemData(ID itemID, Language language, Version version) ***
I tried to google this issue but was not able to find
anything concrete. I raised this issue with Sitecore support and they provided
me with few steps to resolve the issue.
1. Error that caused this exception is that sitecore can't
connect to the Commerce Engine instance (Commerce Authoring). So, please ensure that this instance is up and running.
Also check that sitecore has configured thumbprint to communicate with Commerce Authoring. You need specify certificate Thumbprint value (certificateThumbprint value of certificate which you've created before installation) in the App_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config
Also check that sitecore has configured thumbprint to communicate with Commerce Authoring. You need specify certificate Thumbprint value (certificateThumbprint value of certificate which you've created before installation) in the App_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config
<certificateThumbprint> V A L U E </certificateThumbprint>
In my case it was fine.
2. The other approach is to disable index rebuild
temporarily and rebuild all indexes after commerce is installed. To do it, you
need to comment out this handler during installation process.
<event
name="packageinstall:items:ended">
<handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackageInstallItemsEndHandler" />
</event>
<handler type="Sitecore.ContentSearch.Events.PackagingEventHandler, Sitecore.ContentSearch" method="OnPackageInstallItemsEndHandler" />
</event>
It executes index rebuild after each package is installed.
After commenting out this event I re-ran the installation process and was not
able to see the error again.
Note : Don’t forget to Re-build indexes after the
installation process is completed.
Happy Sitecore Commerce Installation!!! 😄 😄😄
No comments:
Post a Comment