You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Email Errors

asked on November 8, 2013

In version 8.0 of Workflow if an email activity failed in any way it would cause a warning but continue to process the workflow instance. In version 8.3 and up it appears that a failed email activity terminates the workflow. Is there an option somewhere to set it back to just a warning? 

0 0

Answer

APPROVED ANSWER
replied on December 13, 2013 Show version history

If you add the error that happens to the Task Error Handler, it'd record a warning. It would also actually wait around and trying to resend the e-mail every five minutes.

 

By default, it would wait for slightly over 4 hours before giving up and terminating the workflow. 

 

3 0

Replies

replied on November 11, 2013

If you are getting an error that causes it to fail, you may want to see about using a track tokens activity before the email and see what is happening.

 

  • If it is the email not being sent because of the email server, then you will want to use a try-catch activity. 
  • If the email is failing because no recipient is set in the token you used, then you will want to set the workflow to have a conditional decision based on the token having a value or not. 
  • Like the suggestion above, you may wish to test tokens and use them as a conditional sequence testing rule to see if it's worth using the email activity or not in each instance of the workflow. 

 

I hope these suggestions were helpful in providing you with an answer that will suit your needs.

1 0
replied on December 13, 2013

You are right, the activity behavior was changed between 8.0 and 8.3 due to user requests. Depending on how crucial that email is to your business process, just recording a warning and moving on may not be acceptable. So now the activity reports a fatal error.

 

Like Jason said, you can use a Try-Catch activity to turn it back into a warning. If you choose to do that, you should be careful how you set up the Catch branch because it may end up hiding legitimate errors (for ex, if your mail server is moved or misconfigured and you're catching all errors, you may not notice that no emails go out). You can configure it to ignore some errors and still terminate on unexpected ones. You would also have to apply this solution to every email activity you have.

 

Ali's suggestion of using Task Error Handlers is better as it would apply to all workflows (present and future) and would allow you to customize the wait time per error.

 

WF8.3 and higher comes with an out-of-the-box task error handler for "operation timed out" errors connecting to the mail server. This is the most common issue with emails not being sent out. If you have a suggestion for more exceptions to be added, we can add them as defaults to future versions.

1 0
replied on November 8, 2013

I’m not aware of any way to change the setting back to a warning, but you can bypass the error using the try-catch activity. The activity consists of two branches, a try branch and a catch branch. If there is no error the workflow continues as normal, but if an activity within the try branch fails, the workflow takes the catch branch and continues on. You can choose to put alternate activities within the catch branch, or you can simply leave the branch empty to tell workflow just to skip that step and keep on chugging.

 

If you would like to read more about the try-catch activity, you can check out the entry in our online help files.

0 0
replied on January 30, 2017

We continue to have email issues, upwards to six or seven emails failing the TRY and the attachment (edoc) that was supposed to go to the email recipient goes into a holding folder (CATCH branch). I now have to check this folder every morning and right after lunch - we have so many emails not getting sent out with court documents.   I tried sending myself an email in the CATCH logic, but those emails fail as well.  I really do not think our email server is so busy that it cannot send these emails w/o these errors.

 

Is there a way, in the CATCH branch, to format a WF or LF error that will appear in the workflow "Messages" tab of the Search results, so I can truly identify the problem?  It seems to be getting worse and worse.

 

0 0
replied on January 30, 2017

The full error message can be found in the Workflow Administration Console under Monitoring\Error Logs\activity errors.log

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.