Developer forum

Forum » CMS - Standard features » Marketing Flows Failing

Marketing Flows Failing

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

I have couple of Email Marketing Flows set up. One, for example, has three emails that be sent with 1,2 and three days of delay. 

That flow only sends e-mail number 2. None of the other e-mails are sent. 

In the System/Log/EmailMarjeting/QueueWorker/Errors/ I have lots of logfiles with the content below. 

I cannot quite figure aout what the problem is. Does someone have an idea it could be?

2022-01-11 19:30:01.8946|ERROR|EmailMarketing/QueueWorker|[4802]: MergeAndDeliver failed. RecipientId: '1200'.
System.Exception: Invalid permission context state: Expected -1 but found -2
   at Dynamicweb.Security.Permissions.PermissionContext.RemoveContext()
   at Dynamicweb.Security.Permissions.PermissionContext.Dispose(Boolean disposing)
   at Dynamicweb.Security.Permissions.PermissionContext.Dispose()
   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()

Regards / Aki

 

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've tested the feature using simple flow setup for one recipient with email permission, has 'Repeat every'=5 minutes, has three steps with delay 1,2,3 minutes use different mails on last DW9.12.7. All old logs were deleted in the folder. So, all three mail have been received as expected and I don't see any error log in the folder. Please, specify your setup if relevant (URL to your solution is preferable) to have an extra look. Actually, the exception may not be related to the flow processing, since can be related to regular mailing posts the error to the same place. I've created new task 6376 to try to expand the loggin to have better info about reasons. Besides, refer to the manual for details related to the 'Flow' feaure.

BR, Oleg QA 

2022-01-17_15-45-16.png 2022-01-17_15-45-56.png 2022-01-17_15-46-28.png
 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Thanks for the input Oleg.

The solution is : https://mindflower.se/Admin/

The flow I am testing is the one named "Awarness". It has three steps and with previous tests all three mails has been sent. But now when I test only the mail number 2 is sent. And I cannot figure out why.

Regrds  / Aki 

Flow.png steps.png
 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I see the solution based on old admin version (DW9.10.0). Besides, there are some troubles with SMTP server (I've received no one test mail and force to use posting to folder) and scheduler(I've performed it manually). I've created simple test user/user group/mail/flow has delays 1,2,3 minutes and was able to see mails successfully without the error in log(attachment). One more my flow is in progress now (1,2,3 days delays), so the results can be checked later. I recomend to upgrade the solution to last DW9.12.7 and fix the general issues to have valid enviroment first of all.

BR, Oleg QA 

2022-01-19_11-46-47.png 2022-01-19_11-47-08.png 2022-01-19_11-49-40.png
 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi Oleg,

Thanks again for your input and testing. I have also now received all testmails. Guess it's something with the that specifc flow and the email it's supposed to send. 

I also upgraded to latest version now.  

Regards / Aki

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Aki,

Sounds goods, my congratulations! Please, comment behavior the feature if extra issues occur in future (with conditions and steps if possible to have the check as far as quick).

BR, Oleg QA 

 

You must be logged in to post in the forum