• Not Answered

Why does EXM 3.2.1 sometimes schedule e-mails for the year 1901?

I have a strange problem with EXM sometimes scheduling an email for the year 1901. When I see the e-mails in the scheduled list, I see they have the right date, but when the time comes, they end up in "paused" state and the date is now in the past. There are no EXM logs for that day (I would have expected EXM to at least log that they were about to be dispatched).

How can I figure out what is wrong? I checked the contacts and they seem fine, and it doesn't seem to be recipient related. Any thoughts?

2 Replies

  • Update: I found the logs, two emails being scheduled for the same time, both ended paused:

    ManagedPoolThread #3 09:01:01 INFO Dispatch Message (name): Started
    Message Id: {C7FFC021-2362-41A9-BF88-B230B5242D94}
    Message Path: /sitecore/content/Email Campaign/Messages/xxx/Bookings/xxx/name/name
    Included Recipient Lists: name
    Excluded Recipient Lists:
    SMTP settings taken from: Sitecore.EmailExperience.ContentManagement.config
    ManagedPoolThread #14 09:01:02 INFO Dispatch Message (name): Started
    Message Id: {28CE5FE0-C09E-4302-B7D6-A78682E41D09}
    Message Path: /sitecore/content/Email Campaign/Messages/xxx/Bookings/xxx/name/name
    Included Recipient Lists: name
    Excluded Recipient Lists:
    SMTP settings taken from: Sitecore.EmailExperience.ContentManagement.config
    ManagedPoolThread #14 09:01:44 ERROR Exception: System.Reflection.TargetInvocationException
    Message: Exception has been thrown by the target of an invocation.
    Source: mscorlib
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
    at Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline)
    at Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic)
    at Sitecore.Workflows.Simple.Workflow.ExecuteCommandActionsAndTransition(Item commandItem, Item dataItem, StringDictionary commentFields, Object[] parameters, Processor callback)
    at Sitecore.Workflows.Simple.Workflow.Execute(String commandID, Item item, String comments, Boolean allowUI, Object[] parameters)
    at Sitecore.Modules.EmailCampaign.Core.ItemUtilExt.ExecuteWorkflowCommandForItem(Item item, String commandId)
    at Sitecore.Modules.EmailCampaign.Core.Pipelines.DispatchNewsletter.DeployAnalytics.ProcessCampaign(MessageItem message)
    at Sitecore.Modules.EmailCampaign.Core.Pipelines.DispatchNewsletter.DeployAnalytics.Process(DispatchNewsletterArgs args)

    Nested Exception

    Exception: System.AggregateException
    Message: One or more exceptions occurred while processing the subscribers to the 'item:saved' 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.Events.Event.RaiseItemSaved(Object sender, ItemSavedEventArgs args)
    at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
    at Sitecore.Data.Engines.EngineCommand`2.RaiseEvent[TArgs](EventHandler`1 handlers, Func`2 argsCreator)
    at Sitecore.Data.Engines.EngineCommand`2.Execute()
    at Sitecore.Data.Engines.DataEngine.SaveItem(Item item)
    at Sitecore.Data.Managers.ItemProvider.SaveItem(Item item)
    at Sitecore.Data.Managers.PipelineBasedItemProvider.ExecuteAndReturnResult[TArgs,TResult](String pipelineName, String pipelineDomain, Func`1 pipelineArgsCreator, Func`1 fallbackResult)
    at Sitecore.Data.Managers.PipelineBasedItemProvider.SaveItem(Item item)
    at Sitecore.Data.Items.ItemEditing.AcceptChanges(Boolean updateStatistics, Boolean silent)
    at Sitecore.Data.DataManager.SetWorkflowInfo(Item item, WorkflowInfo info)
    at Sitecore.Workflows.Simple.Workflow.SetStateID(Item item, String stateID, StringDictionary commentFields, String workflowID)
    at Sitecore.Workflows.Simple.Workflow.PerformTransition(Item commandItem, Item item, ID stateId, StringDictionary commentFields)
    at Sitecore.Workflows.Simple.Workflow.CommandActionsComplete(WorkflowPipelineArgs args)


    ManagedPoolThread #3 09:01:44 ERROR Exception: System.Reflection.TargetInvocationException
    Message: Exception has been thrown by the target of an invocation.
    Source: mscorlib
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj)
    at Sitecore.Nexus.Pipelines.NexusPipelineApi.Resume(PipelineArgs args, Pipeline pipeline)
    at Sitecore.Pipelines.Pipeline.Start(PipelineArgs args, Boolean atomic)
    at Sitecore.Workflows.Simple.Workflow.ExecuteCommandActionsAndTransition(Item commandItem, Item dataItem, StringDictionary commentFields, Object[] parameters, Processor callback)
    at Sitecore.Workflows.Simple.Workflow.Execute(String commandID, Item item, String comments, Boolean allowUI, Object[] parameters)
    at Sitecore.Modules.EmailCampaign.Core.ItemUtilExt.ExecuteWorkflowCommandForItem(Item item, String commandId)
    at Sitecore.Modules.EmailCampaign.Core.Pipelines.DispatchNewsletter.DeployAnalytics.ProcessCampaign(MessageItem message)
    at Sitecore.Modules.EmailCampaign.Core.Pipelines.DispatchNewsletter.DeployAnalytics.Process(DispatchNewsletterArgs args)

    Nested Exception

    Exception: System.AggregateException
    Message: One or more exceptions occurred while processing the subscribers to the 'item:saved' 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.Events.Event.RaiseItemSaved(Object sender, ItemSavedEventArgs args)
    at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
    at Sitecore.Data.Engines.EngineCommand`2.RaiseEvent[TArgs](EventHandler`1 handlers, Func`2 argsCreator)
    at Sitecore.Data.Engines.EngineCommand`2.Execute()
    at Sitecore.Data.Engines.DataEngine.SaveItem(Item item)
    at Sitecore.Data.Managers.ItemProvider.SaveItem(Item item)
    at Sitecore.Data.Managers.PipelineBasedItemProvider.ExecuteAndReturnResult[TArgs,TResult](String pipelineName, String pipelineDomain, Func`1 pipelineArgsCreator, Func`1 fallbackResult)
    at Sitecore.Data.Managers.PipelineBasedItemProvider.SaveItem(Item item)
    at Sitecore.Data.Items.ItemEditing.AcceptChanges(Boolean updateStatistics, Boolean silent)
    at Sitecore.Data.DataManager.SetWorkflowInfo(Item item, WorkflowInfo info)
    at Sitecore.Workflows.Simple.Workflow.SetStateID(Item item, String stateID, StringDictionary commentFields, String workflowID)
    at Sitecore.Workflows.Simple.Workflow.PerformTransition(Item commandItem, Item item, ID stateId, StringDictionary commentFields)
    at Sitecore.Workflows.Simple.Workflow.CommandActionsComplete(WorkflowPipelineArgs args)


    ManagedPoolThread #3 09:01:44 INFO The 'DispatchNewsletter' pipeline is aborted. Exception has been thrown by the target of an invocation.
    ManagedPoolThread #14 09:01:44 INFO The 'DispatchNewsletter' pipeline is aborted. Exception has been thrown by the target of an invocation.

    Any hints?
  • I should also mention that once it is in paused state, I am able to send it manually.