xConnect - Model Conflict Exception

May 13, 2019

If xConnect and xDB aren't working in Sitecore 9 with Sitecore Commerce, check the logs and see if you can find a model conflict exception like the following:

            Exception: Sitecore.XConnect.Client.XdbModelConflictException
            Message: One or more local models conflict with the xDB service layer.

This could be due to the commerce models needing to be added to xConnect. The following issue helped me find a solution: https://github.com/raseniero/Sitecore-v901-XP1-Scaled-Installation/issues/3


  1. Open Windows Explorer
  2. Go to [Website Root]\XConnectModels
  3. Copy the file Sitecore.Commerce.Connect.XConnect.Models.json
  4. Go to [xConnect root]\App_data\Models
  5. Paste the file
  6. Go to [xConnect root]\App_data\jobs\continuous\IndexWorker\App_data\Models
  7. Paste the file