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?
