web stats
Receiving Transformer Error in Database Reader Channel - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 02-25-2016, 08:15 AM
atibbits atibbits is offline
Mirth Guru
Join Date: May 2012
Location: Salina, KS
Posts: 381
atibbits is on a distinguished road
Thumbs down Receiving Transformer Error in Database Reader Channel

I keep receiving an error on some of my messages that I am transforming to HL7 and I am not sure what it means. I am querying a database and then sending out the data in an outbound HL7 message. This works for most of my data, but for some I am receiving the following error:

Transformer error
ERROR MESSAGE: Error evaluating transformer
CHANNEL:	CMR_OP_referral_orders
CONNECTOR:	OP_referral_orders_to_CMR
39:         }
40:         eval('importPackage(' + Packages.java.lang.Class.forName(className).getPackage().getName() + ')');
41:     }
42: }
43: function doScript() {
44: msg = new XML(connectorMessage.getTransformedData());
45: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
46: tmp = new XML(template);
47: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
DETAILS:	TypeError: Attribute name "is" associated with an element type "Family" must be followed by the ' = ' character.
	at 32167fe7-787f-4c88-b300-29f13c451c85:44 (doScript)
	at 32167fe7-787f-4c88-b300-29f13c451c85:276
	at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:154)
	at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:119)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
At first, I thought there was some sort of illegal character in the data I am trying to transform, but I am unable to find anything right off the bat. Also, I have tried removing illegal characters via the preprocessor, but then I get a different error when I do that. Any ideas on how I can fix this?

Reply With Quote
Old 02-25-2016, 08:34 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

Can you post a deidentified sample raw message?
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

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

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:47 PM.

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