Failed to execute task EmailTemplate.SE_SendQueuedEmails() for scheduled event EmailTemplate.SendQueuedEmails from task queue System.ScheduledEventsQueue.

0
Hi All,   In my system for application following message pops up regularly.  How to prevent this.   com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.core.UserException: To avoid duplicate emails being sent, this microflow can't be executed more than once at the time.    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:110) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.core.UserException: To avoid duplicate emails being sent, this microflow can't be executed more than once at the time.    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) Caused by: com.mendix.systemwideinterfaces.core.UserException: To avoid duplicate emails being sent, this microflow can't be executed more than once at the time.   Regards Sudhir
asked
2 answers
1

Hi Sudhir,

this error message states that microflow SE_SendQueuedEmails cannot be executed concurrently. You can doublecheck this in the microflow's properties where Disallow is set to Yes, preventing concurrent execution. Your app seems to try starting a new microflow instance while another instance is still running. This might be a misconfiguration regarding the scheduled event where you try to execute the microflow in too high a cadence.

answered
0

Hello Biehl,

 

I have relooked into my application and noticed that only in my development / test environment the "Failed to execute task 'EmailTemplate.SE_SendQueuedEmails() ... " error occurs. That too only for one application (service) in my development / test environment. Why ? 

 

Kindly note: my infrastructure is windows and configuration is identical in test and production environment.

 

Regards

Sudhir

answered