Hello,
I know you can use the interface tools to generate an error message but when not using interactive tools how can you generate error messages. I have workflows that I have scheduled to run and there is no interactive process in them. I have built a process that says if the output generates a result then a Success email is sent, otherwise a failure email is sent. However, we are having issues with the workflow failing at the beginning and since that doesn't generate any records no email gets sent (as it neither failed nor succeeded). Any ideas on other ways we can have it send some sort of error notification?
This is the code I wrote to generate a Success or failure email based on if there are records or not
This is one of the workflows and the problem is we are having an error message at the Original table (for example) and as a result the entire workflow is failing and not getting to the point of generating any records so no email gets sent. Is there a way to generate an error message?
Solved! Go to Solution.
I could suggest using Message Tool under the Developer Tab, but another way would be using Events Tab on Workflow Configuration:
You can setup the "Send Email" event to run when "After Run With Errors".
I thinks this would work better.
Cheers,
Hello @Thableaus
So why this should in theory work every since I made this change and published it to the Alteryx Gallery and scheduled the workflow it has failed.
Any ideas why?
Hey @alyssa_sedai
I think you should check the log files from the Gallery. Were you able to see what actually happened? You need to be sure your server is able to access the SMTP Server.
This topic confirms that this works in the Gallery:
When workflow fails, send an email notification of workflow error messages
Cheers,
Hello @Thableaus
If I run it in the Gallery without scheduling it; it runs just fine. It seems to have to do with the scheduling aspect itself.