Thursday, March 29, 2018

Sitecore Experience Commerce - One or more local models conflict with the xDB service layer

During an upgrade from the initial release for Sitecore Experience Commerce 9.0 to update 1, the following errors were appearing in the logs:
ERROR Exception when executing agent aggregation/pathAnalyzerLiveAgent
Exception: Sitecore.XConnect.Client.XdbModelConflictException
Message: One or more local models conflict with the xDB service layer.
 'RegisterConnectEventModel, 0.1' does not match the remote version
Source: Sitecore.Xdb.Common.Web
This was appearing when attempting to update the commerce data templates. It was not actually an error related to this action and is resolved when following these steps in the upgrade guide:

  1. In File Explorer, go to: \inetpub\wwwroot\<siteName>\App_Config\Include\Y.Commerce.Engine and Rename/enable:
    1. Sitecore.Commerce.Engine.DataProvider.config
    2. Sitecore.Commerce.Engine.Connectors.Index.Common.config
    3. All Sitecore.Commerce.Engine.Connectors.Index.Solr.*.config
  2. Copy the file: \inetpub\wwwroot\<siteName>\XConnectModels\Sitecore.Commerce.Connect.XConnect.Models.json and Paste it to two locations to overwrite:
    1. C:\inetpub\wwwroot\<siteName>.xconnect\App_data\jobs\continuous\IndexWorker\App_data\Models
    2. C:\inetpub\wwwroot\<siteName>.xconnect\App_data\Models
  3. Perform an IISreset

No comments:

Post a Comment