Hi,
We have an error sending an Email marketing campaign to 5000+ users. Some mails are sent and some others are not sent.
The task is timed out, and in Monitoring appear and error for each mail not sent:
Description[199]: MergeAndDeliver failed. RecipientId: '111159'.
Exception type: ArgumentException
2021-09-01 10:53:38.024: [199]: MergeAndDeliver failed. RecipientId: '111159'.
System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.SetUnknownResponseHeader(String name, String value, Boolean replace)
at System.Web.Hosting.IIS7WorkerRequest.SetKnownResponseHeader(Int32 index, String value, Boolean replace)
at System.Web.HttpHeaderCollection.Remove(String name)
at Dynamicweb.Controls.Legacy.HttpHelper.SetSecurityHeaders()
at Dynamicweb.Frontend.PageView.SetSecurityHeaders()
at Dynamicweb.Frontend.PageView.Output()
at Dynamicweb.EmailMarketing.Renderer.BuildPageHtml(Int32 intPageID, String template, PageViewContext pageviewContext)
at Dynamicweb.EmailMarketing.EmailContentProvider.GetContent(Message message, Recipient recipient)
at Dynamicweb.Mailing.MessagingHandler.MessageHandler.MergeAndDeliverInternal()
at Dynamicweb.Mailing.MessagingHandler.MessageHandler.MergeAndDeliver(RecipientQueueItem rqi)
at Dynamicweb.Mailing.MessagingHandler.QueueWorker.<>c__DisplayClass7_1.<StartMergeAndDeliver>b__0()
2021-09-01 10:53:38.040: Request headers: [ "Connection", "Accept", "Accept-Encoding", "Accept-Language", "Cookie", "Host", "Referer", "User-Agent", "sec-ch-ua", "sec-ch-ua-mobile", "upgrade-insecure-requests", "sec-fetch-site", "sec-fetch-mode", "sec-fetch-user", "sec-fetch-dest" ]
2021-09-01 10:53:38.040: Request item keys: [ "UserManagement.GetUserById.81836", "UserManagement.GetUserById.81806", "UserManagement.GetUserById.81816", [... MORE IDS ...] "UserManagement.GetUserById.82983" ]
2021-09-01 10:53:38.040: Request form: []
The only information about this "MergeAndDeliver failed" error inthe forum is at this post, biut it has a different cause (An item with the same key has already been added)
Does somebody know the cause of this error and how to fix it?
Regards,
Tomas