Environment: Sitecore 9.3
I have created a custom Page Event.
When I am trying to use it throws this error:
48856 14:48:01 ERROR Cannot execute 'sessionEnd:batch:ended' event
Exception: System.AggregateException
Message: One or more exceptions occurred while processing the subscribers to the 'sessionEnd:batch:ended' event.
Source: Sitecore.Kernel
at Sitecore.Events.Event.EventSubscribers.RaiseEvent(String eventName, Object[] parameters, EventResult result)
at Sitecore.Events.Event.RaiseEvent(String eventName, Object[] parameters)
at Sitecore.Kernel.Web.SessionExpirationProcessor.TryRaiseEvent(String eventName, Object[] parameters)
Nested Exception
Exception: System.AggregateException
Message: One or more errors occurred.
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.Analytics.XConnect.DataAccess.BatchedXdbContextProxy.SubmitBatch()
at Sitecore.Analytics.XConnect.DataAccess.BatchEnabledXdbRuntimeContext.SubmitBatch()
at Sitecore.Analytics.Events.BatchEventHandler.OnBatchEnded(Object sender, EventArgs args)
at Sitecore.Events.Event.EventSubscribers.RaiseEvent(String eventName, Object[] parameters, EventResult result)
Nested Exception
Exception: Sitecore.XConnect.Schema.XdbModelException
Message: The type of this instance does not correspond to any type in the model. The type is Sitecore93.XConnect.Models.Events.PrintEvent
Source: Sitecore.XConnect.Core
at Sitecore.XConnect.XdbExtensible.Attach(XdbModel model)
at Sitecore.XConnect.Operations.InteractionOperation.Validate()
at Sitecore.XConnect.XdbContext.ValidateOperation(IXdbOperation operation)
Following steps taken:
- Event Model JSON has been deployed to 2 locations:
sc.xconnect\App_Data\Models
andsc.xconnect\App_Data\jobs\continuous\IndexWorker\App_Data\Models
- DLL has been deployed to
sc\bin
,sc.xconnect\bin
andsc.xconnect\App_Data\jobs\continuous\AutomationEngine
Rebuild Indexes
Rebuild Link Databases
Deploy marketing definitions
References: