Exception in SendEmail activity when using Liquid expression in mail body
See original GitHub issueHi,
I’m trying to evaluate Elsa workflow in a new project and i’m creating a POC following the document approval sample.
I’m building the workflow using the visual designer but when invoking it from postman, I receive the below error:
{
"errorMessage": "Workflow faulted at 2021-08-24T08:22:35Z with error: An exception was thrown whilst setting 'SendEmail.Body'. See the inner exception for further details.",
"workflow": {
"name": null,
"version": 15,
"instanceId": "59f096ad0dca456bb3a7ce6c8dd2399a"
}
}
After some digging, I found the error happens if I added this part to the email body:
<a href="{{ "Approve" | signal_url }}">
but when I remove it, everything works fine.
So, I’ve two questions:
- Why this issue happen?
- Where can I find the detailed exception logs so I can check the inner exception?
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
can't access variables inside the liquid templates #3195
Hi, I am trying to access workflow variables inside the liquid templates within workflow designer but any attempt to access variables throws ...
Read more >Elsa 2 - HTTP Response not working in this case · Issue #955
The error is : System.ArgumentNullException: 'Value cannot be null. (Parameter 'baseUri')' in "Elsa.Activities.Http". This is the code in the ...
Read more >Send mail in custom hook in directus 9 not working
I check by removing it, then i get an error that the template is missing. /extensions/hooks/event-time-update/index.js module.exports = function ...
Read more >Exception handling for SendEmailNotification activity
PRRuntimeException: Caught unhandled exception : Unable to send email due to : 250 2.0.0 x5R5ANsP012515 Message accepted for delivery .
Read more >How to get actual error message of Scope in Logic App
After trigger and Initializing variables have been added couple of actions in the Try scope, following it is the Catch Exception scope in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I just realized I didn’t try the workflow designer part yet. That part is still broken for me, so I will update the sample + guide as necessary.
Great!
It depends on the log provider you install with your application. The Elsa sample projects only use the Console provider, but you can configure others, like EventSource, EventLog, Application Insights, and more. You can also use SeriLog as the logging provider, which makes it easy to write log entries to files on disk. Here’s a brief blog post that describes configuring SeriLog to log to files for ASP.NET Core.
That’s a great suggestion. Thank you.