Replies: 1 comment
-
@bksams , while this isn't the forums site, the forum etiquette mostly applies, see https://forums.mirthproject.io/articles/177082-forum-etiquette. In particular, post the full code, not just the error (bullet 8 from that link). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm very new to developing on Mirth. My previous experience has just been monitoring. I'm trying to connect to an Azure queue and I'm having some problems. I would greatly appreciate any help. Here's the error when I tried to send a message.
Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransformerException:
CHANNEL: IB_ATHENA_ADT_SIU
CONNECTOR: Azure ADT Queue
SCRIPT SOURCE: TRANSFORMER
SOURCE CODE:
103:
104:
105: importPackage(org.apache.commons.codec.binary);
106:
107:
108: var payload = JSON.stringify({
109: Id: String(messageObject.getId()),
110: Content: String($('CONTENT'))
111: });
112: tmp['MessageText'] = Base64.encodeBase64String(java.lang.String(payload).getBytes("UTF-8"));
LINE NUMBER: 108
DETAILS: ReferenceError: "messageObject" is not defined.
at a572419b-8356-4352-a41f-bafb5b253e2f:108 (doTransform)
at a572419b-8356-4352-a41f-bafb5b253e2f:175 (doScript)
at a572419b-8356-4352-a41f-bafb5b253e2f:177
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:154)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:119)
at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:113)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Beta Was this translation helpful? Give feedback.
All reactions