web stats
Mirth Not Processing *all* Destinations if Msg Re-queued? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2017, 12:54 PM
pgreenwood pgreenwood is offline
Mirth Newb
 
Join Date: Nov 2013
Posts: 13
pgreenwood is on a distinguished road
Question Mirth Not Processing *all* Destinations if Msg Re-queued?

Hi All,

Rather perplexed here.... can someone lend a hand?

Imagine you have in a Destinations tab of a Mirth channel three destinations:

1) First Destination is a working HTTP Sender with "Queue Messages" set to "On Failure" with "Rotate/10 Retries/ Interval 600000 ms". It also has a Response Transformer with the following:

var ack = response.getMessage();
var IISAckResponse = ack.replaceAll('\r', '\n');
channelMap.put('IISAckResponse', IISAckResponse);

... so we can find our ACK's.

2) Second destination is a File Writer that has "Wait for previous destination" box checked that writes to a directory the ACK you get from the first destination submission. It also has a Filter Rule that says:

if ($('IISAckResponse') != "") {
return true;
}
return false;


3) Third destination is another File Writer that also has "Wait for previous destination" box checked off that then takes the ACK from the first destination and SFTP's it to another system. It too has a Filter Rule:

if ($('IISAckResponse') != "") {
return true;
}
return false;


Everything works great and as planned with this setup: ACK's are being written to files, and SFTP'd out to remote sites. Everything's great... until... the receiving site in the first destination is down/broken/not-there. At this point the messages start getting put into the queue for resubmission.

When this scenario happens, for some reason when the messages *finally* start going through again and the other side is back for receiving stuff, the d2 and d3 destinations don't appear to actually be re-processed after the initial pass through attempt? No ACK messages get written to files nor SFTP'd back even though I can see the ACK's in the Dashboard?

Why would that be?

+++

I did try some searching on the Forum, and found:


http://www.mirthproject.org/communit...d.php?t=216346

.... and a few other threads. I did at try searching, but I'm still sitting here thinking I'm missing something.



Thank you for pondering this and your time replying!
Reply With Quote
  #2  
Old 12-15-2017, 01:41 PM
amble amble is offline
OBX.2 Kenobi
 
Join Date: Nov 2015
Posts: 95
amble is on a distinguished road
Default

I'm going to suggest enabling regenerate templates on the queue settings of the destinations
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 01:34 PM.


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