web stats
Email alerts only after retires complete - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2018, 10:27 AM
DragonQueen DragonQueen is offline
OBX.1 Kenobi
 
Join Date: Aug 2016
Posts: 36
DragonQueen is on a distinguished road
Default Email alerts only after retires complete

Is there a way to only send an email alert when the destination is actually in ERROR state and not in the retry phase?
We currently have 3 retires turned on and we receive 4 error alerts for the same error instead of 1 at the end of the retries.
We do not have the advanced alerting. We are on the Mirth 3.4.2
Any feedback or guidance is appreciated.

Thank you!
Reply With Quote
  #2  
Old 05-25-2018, 07:31 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,026
narupley is on a distinguished road
Default

One thing you could do is only check "User Defined Transformer" in your alert errors. Then edit your response transformer, set the data types to Raw (so that it'll execute all the time even when there's no response payload), and manually send an alert:

Code:
if (responseStatus != SENT) {
	alerts.sendAlert($('responseStatusLine') + '\n' + responseErrorMessage);
}
Then you can include the ${error} variable in your alert template.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Tags
alerts, retry

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation