cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Workflow Send Email Task Error

Charl_Pienaar
Frequent Guest

Good Morning,

I have a scenario where a workflow has been successfully sending weekly emails to a customer for the past six months without any issues. Each email contains exception details and their corresponding counts. The workflow is straightforward: it starts, runs a JavaScript code task to retrieve the metric data, passes that data to the email task, and then completes.

The error that I get is as follows

2025-07-01 09_28_08-scr4.png

Detailed log

2025-07-01 09_28_08-scr5.png

Email Send Task

2025-07-01 09_28_08-scr1.png

I added the send_email_1 task for testing so if I send plain text the email task works fine. If I add the message code to extract the details from the exception1_1 jscode task the email fails.

All though the "Preview" of the detail extraction for the message works fine in the Preview window. As you can see below there is the preview with the relevant exceptions and there counts.

2025-07-01 09_28_08-scr2.png

Did something change in Dynatrace and jscode tasks or am I missing something. Any help and advice will be much appreciated.

Thanks

Charl

1 REPLY 1

Charl_Pienaar
Frequent Guest

Hi I found the issue and its resolved.

Please see link below.

https://community.dynatrace.com/t5/Dynatrace-tips/Tips-Understanding-Recipient-Handling-in-quot-Dyna...

Tips: Understanding Recipient Handling in "Dynatrace Send Email Action" vs "M365 Send Email Action" - Dynatrace Community

Dynatrace Tips: Handling Multiple Recipients in Email Actions When configuring email notifications in Dynatrace, it's important to understand how

 

Regards

Charl

Featured Posts