Hi,
I have a workflow with the E-mail tool in it. When I do not use AMP Engine, Alteryx does not send an email if there is an error in the workflow. When I use AMP Engine, alteryx does send the mail.
Does anyone know how I can make sure that all emails are not sent until everything is ready?
Thanks in advance!
Hi @IR_2021,
My first thought is that since AMP engine uses multi-threaded processing, it may start processing the email tool before hitting the error in another portion of the workflow. If you want to force the workflow to wait until all other steps are taken before sending the email, I'd recommend placing a "Block Until Done" tool in your workflow prior to the Email tool.
Hi Taylor,
Thanks for your reaction! Unfortunately, the mail will still be sent if there is an error message.
@IR_2021 One other suggestion - do you have the setting "Cancel Running Workflow on Error" set within your Workflow Configuration panel?
We are actively looking into this difference in behavior with AMP.
This may be more of a difference in the way AMP handles errors in general and not specific to the Email Tool. We will investigate and let you know what we find.
I'm interested to know if Taylor's suggestion to use the "Cancel running workflow on error" setting works or not.
Thank you @taylor_butler for the suggestions!
Hi all,
In the workflow below I have checked the 2 checkboxes. If there is now an error in flow 1, the workflow stops. If there is an error in flow 2 or 3, the mail is sent.
I think TonyaS is right and it has to do with how AMP handles errors. For some of my workflows I can move forward with taylor_butler's solution. Unfortunately not for some more. This will require a different solution.
Update on this and the suggested workaround, I discovered that "Cancel running workflow on error" was never implemented with AMP Engine. We have added it to our roadmap to support this in a future release.
Thanks for the feedback TonyaS!
Hi TonyaS,
Is there known for when this is on the roadmap?
This one is still on our Roadmap, it may potentially be delivered in 23.2.