• Not Answered

Sitecore EXM email link throwing error ERR_TOO_MANY_REDIRECTS

Hello,

We are using Sitecore.NET 8.1 (rev. 160519) with Email Experience Manager 3.3.0 rev. 160527.

When we try to click on the link in exm mail it throws an error and going in redirect loop.

your-site/.../RedirectUrlPage.aspx

When we check the logs, we can see the errors as below. Can anyone know what would be the possible solution ?

2019-02-05 14:03:22 12488 WARN Automation context generation 542 could not be saved for contact 6693ccfe-b480-4a14-a15b-dd985bc41ed2. This automation context has already been saved.
Exception: MongoDB.Driver.MongoDuplicateKeyException
Message: WriteConcern detected an error ''. (Response was { "ok" : 1, "code" : 11000, "err" : "E11000 duplicate key error collection: analytics.AutomationStates index: _id_ dup key: { : { ContactId: BinData(3, FECC936680B4144AA15BDD985BC41ED2), Generation: 542 } }", "n" : NumberLong(0) }).
Source: MongoDB.Driver
at MongoDB.Driver.Operations.InsertOpcodeOperationEmulator.Execute(MongoConnection connection)
at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options)
at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options)
at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbCollection.<>c__DisplayClass32.<Insert>b__31()
at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbCollection.Execute(Action action, ExceptionBehavior exceptionBehavior)
at Sitecore.Analytics.Data.DataAccess.MongoDb.MongoDbCollection.Insert(Object value)
at Sitecore.Analytics.Automation.Data.MongoDbAutomationProvider.SaveAutomationContext(AutomationContext modifiedAutomationContext)

2019-02-05 14:03:22 12488 WARN Session Submit has failed.
Exception: System.InvalidOperationException
Message: args.Session.Contact is not set.Source: Sitecore.Analytics
at Sitecore.Analytics.Pipelines.SubmitSessionContext.RenumberInteractions.Process(SubmitSessionContextArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Analytics.Pipelines.SubmitSessionContext.SubmitSessionContextPipeline.Run(SubmitSessionContextArgs args)
at Sitecore.Analytics.Data.HttpSessionContextManager.Submit(Session session)
at Sitecore.Analytics.Pipelines.CommitSession.SubmitSession.Process(CommitSessionPipelineArgs args)

2019-02-05 14:03:22 12488 ERROR PostSessionEndPipeline failed.
Exception: System.InvalidOperationException
Message: args.Session.Contact is not set.
Source: Sitecore.Analytics
at Sitecore.Analytics.Pipelines.CommitSession.SubmitSession.Process(CommitSessionPipelineArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Analytics.Pipelines.CommitSession.CommitSessionPipeline.Run(CommitSessionPipelineArgs args)
at Sitecore.Analytics.Pipelines.PostSessionEnd.CommitSession.Process(PostSessionEndArgs args)
at (Object , Object[] )
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.EndSession.PostSessionEndPipeline.Run(PostSessionEndArgs args)
at Sitecore.Web.Application.RaiseSessionEndEvent(HttpApplication context)


Thanks,
Sanket