Recently, We have done a scaled environment setup and found this error in the logs (Sitecore XP)
Exception details: Sitecore.XConnect.Client.XdbModelConflictException
Message: One or more local models conflict with the xDB service layer.
'RegisterConnectEventModel, 0.1' does not have a remote version
Source: Sitecore.Xdb.Common.Web
at Sitecore.Xdb.Common.Web.Synchronous.SynchronousExtensions.SuspendContextLock[TResult](Func`1 taskFactory)
at Sitecore.XConnect.Client.XConnectSynchronousExtensions.SuspendContextLock(Func`1 taskFactory)
at Sitecore.XConnect.Client.Configuration.SitecoreXConnectClientConfiguration.Initialize(XmlNode configNode)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
at Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert)
at Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert)
at Sitecore.XConnect.Client.Configuration.SitecoreXConnectClientConfiguration.GetClient(String clientConfigPath)
at Sitecore.Analytics.XConnect.DataAccess.BatchEnabledXdbRuntimeContext..ctor(IXdbContextFactory factory)
at Sitecore.Analytics.Events.BatchEventHandler.OnBatchStarting(Object sender, EventArgs args)
at Sitecore.Events.Event.EventSubscribers.RaiseEvent(String eventName, Object[] parameters, EventResult result)
Steps to fix - the error is pointing that issue withing xConnect models - We checked all the modes in Sitecore rules
Example path -
C:\inetpub\wwwroot\xconnect.dev.local\App_Data\Models
C:\inetpub\wwwroot\xconnect.dev.local\App_Data\jobs\continuous\IndexWorker\App_Data\Models
We noticed both models are the same, After investigating it further we noticed that on XP leading site there was only one model, We copied the existing model from below path and updated the xConnect (Removed all others)
C:\inetpub\wwwroot\<siteName>.xconnect\App_data\Models
that change resolved the issue.