Friday, July 27, 2018

Sitecore Experience Commerce - SitecoreConnectionManager getitemsbypath failures

In the minions commerce engine role of my Experience Commerce 9 environment, I have an import minion which syncs product data into Sitecore. During it's run it ran into errors connecting to Sitecore (via API) to retrieve settings (via content items).
3 11:14:32 ERROR SitecoreConnectionManager: RETRY 1 out of 3 with ERROR Internal Server Error. Failed to logging. /sitecore/api/ssc/auth/login for GET /sitecore/api/ssc/item/?path=%2Fsitecore%2FCommerce%2FCommerce%20Control%20Panel%2FCommerce%20Engine%20Settings%2FCommerce%20Terms%2FBusinessTools%2FViewPropertyNames&database=master&language=en
4 11:14:32 ERROR SitecoreConnectionManager.Error: Message=RETRY FAILED for GET /sitecore/api/ssc/item/?path=%2Fsitecore%2FCommerce%2FCommerce%20Control%20Panel%2FCommerce%20Engine%20Settings%2FCommerce%20Terms%2FBusinessTools%2FViewPropertyNames&database=master&language=en|Trace=   at Sitecore.Commerce.Plugin.Management.SitecoreConnectionManager.<ProcessRequestAsync>d__15.MoveNext()
4 11:14:32 ERROR Management.block.getitemsbypath: Sitecore Item Service Get item failed, Item /sitecore/Commerce/Commerce Control Panel/Commerce Engine Settings/Commerce Terms/BusinessTools/ViewPropertyNames not found.
This error traced back to the PlugIn.Content.PolicySet-1.0.0.json policy set configuration file inside the commerce engine. In this file I had correctly configured the username and password for the Sitecore index, however the Host setting was still set to the default of As I don't use this domain, it had not been configured with a valid SSL certificate. By changing this host to the correct one (with a valid certificate) the errors no longer occurred.

No comments:

Post a Comment