web stats
Channels not reconizing code template changes - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2018, 01:39 PM
jboggs jboggs is offline
What's HL7?
 
Join Date: Dec 2017
Posts: 5
jboggs is on a distinguished road
Unhappy Channels not reconizing code template changes

We have some of our code templates log out its version number to make sure every client is running correctly. lately the channels have not been noticing the code template changes we have been making. Our code template, Hosted_select, makes database calls and is set to version 3.3. After making a change and setting the version to 3.4. I redeployed one of our clients to make sure the change was working correctly, However the client is still logging version 3.3. There are about 100 clients running currently all accessing this code template. Is there any way that the update is being blocked by channels that are currently running on the older version and have not been redeployed?

I have verified that the code template is saved and I am certain it is being called. But no changes I make seem to be reflected, no matter how many times I redeploy the channel. We only have one copy of the template so I know it is not calling a different function. The revision column for the client I redeployed is no longer highlighted as the rest are. Has anyone ever experienced something like this? Does anyone know of a way to flush the memory to force the channels to use the new version?
Reply With Quote
  #2  
Old 02-28-2018, 02:17 PM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 577
kirbykn2 is on a distinguished road
Default

Has this setup worked in the past? Did you change versions from 3.2 to 3.3 and it worked as expected?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 03-01-2018, 06:15 AM
jboggs jboggs is offline
What's HL7?
 
Join Date: Dec 2017
Posts: 5
jboggs is on a distinguished road
Default

Quote:
Originally Posted by kirbykn2 View Post
Has this setup worked in the past? Did you change versions from 3.2 to 3.3 and it worked as expected?
It works intermittently. We have been unable to see a pattern in when it does or does not work.
Reply With Quote
  #4  
Old 03-01-2018, 08:00 AM
JohnHD JohnHD is offline
Mirth Newb
 
Join Date: Sep 2013
Location: Costa Mesa, CA
Posts: 21
JohnHD is on a distinguished road
Lightbulb

I have always followed the practice that when I make a code template change, I redeploy all the dependent channels to have the change "take".

This may just be a holdover on my part from older MC, or even just a superstition, but that would explain why you're seeing inconsistent logging- some channels are using the old version because they haven't been redeployed and others are using the new.

Is it possible to try this?

Also, tell me this- this variable, you don't happen to be keeping it in the *global*ChannelMap do you?

If so I'm thinking there's a possible interaction with the "clear global channel map on deploy" on some of these channels' source connector.

JHD
__________________
Ask The Experts! Free 15 minute live Q&A sessions with one of Zen's Expert Integrators @ https://consultzen.com/integration-service-desk-solutions

www.consultzen.com

Last edited by JohnHD; 03-01-2018 at 08:07 AM.
Reply With Quote
Reply

Tags
code template, javascript changes, reconizing, redeploy, template

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


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