web stats
Overwriting message and updating stats - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 04-30-2012, 12:38 PM
cory_cole cory_cole is offline
Mirth Guru
Join Date: Mar 2012
Posts: 1,161
cory_cole is on a distinguished road
Default Overwriting message and updating stats

I am trying to reprocess messages, through javascript, based on certain error messages. I have been able to successfully send the message back through. However, I want to reprocess it as if the "Overwrite existing messages and update statistics" box is checked. I tried doing it my self through database calls. However, it is not saving the updates to statistics. I believe the overwrite is working. I have even gone into the database to correct the count and set it there. I verify that the number is correct, but on Mirth it is still showing the higher number. After a few minutes, the database goes back to the higher number. Is there a parameter or something that is set to reprocess as if the box is checked? Or is there away to update the statistics in the database that actually commits without be overwritten?
Reply With Quote
Old 04-30-2012, 12:42 PM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,005
narupley is on a distinguished road

This should help: http://www.mirthcorp.com/community/f...13&postcount=4
Reply With Quote
Old 01-15-2018, 08:18 PM
casest casest is offline
What's HL7?
Join Date: Apr 2017
Posts: 3
casest is on a distinguished road
Default Overwrite existing messages and update statistics

Nicholas, I'm interested in this also; however, you have only partially answered the question by eluding to how to update the statistics. Is there a way to reprocess the original messageid source just like if you selected a message then selected "Reprocess Message" and placed a check mark in the "Overwrite existing messages and update statistics" box? Both routeMessageByChannelId and routeMessage create a new message with a new MessageId, which leads to inconsistencies in the statistical numbers.

Reply With Quote

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 12:01 PM.

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