web stats
How to only send alert if message fails in last attempt? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2019, 06:00 AM
kramer65 kramer65 is offline
Mirth Newb
 
Join Date: Oct 2016
Posts: 6
kramer65 is on a distinguished road
Arrow How to only send alert if message fails in last attempt?

We've got a Mirth channel which writes a file over FTP. That works fine, but it often fails on the first try. So we have a 3-times retry set to the channel, which always succeeds on the second try. We've got thousands of messages per day though, of which many fail. That means my inbox is exploding every day.

Is there a way to only make the alert be sent if it fails in the last of 3 tries?
Reply With Quote
  #2  
Old 05-03-2019, 06:52 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,221
cory_cole is on a distinguished road
Default

I would suggest that you change from a file writer to javascript. Then you can loop the write (exiting on successful write or after 3 attempts). Then you can throw your own error.
Reply With Quote
Reply

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 10:43 PM.


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