Announcement

Collapse

Mirth Connect 4.1.0 Released!

Mirth Connect 4.1.0 is now available as an appliance update and on our GitHub page. Mirth Connect 4.1.0 includes new features such as new event log messages, additional fields to the Welcome to Mirth Connect screen, new information included in alerts as well as many smaller changes, updates, and improvements. This release also contains several improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Transformer Error when 'use Java script' = Yes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transformer Error when 'use Java script' = Yes

    Hi All,

    I am new to Mirth (v1.6) and I have been trying to setup a channel to insert message into the SQL 2000 database. I am having problems creating transformers. Here are the details:
    - On Channel -> Destinations page;
    1. use JavaScript 'Yes'
    2. I have created a transformer step (MsgType) and mapped it to MSH 9.1
    Variable: msg_type
    Add to: Channel Map
    Mapping: msg['MSH']['MSH.9']['CM_MSG.1']


    When a message (HL7 v2.1) is sent to this channel it receives it successfully howoever while sending the message to the database it gives following error:
    ================
    FAILURE: Error evaluating transformer
    MirthJavascriptTransformerException

    CHANNEL:
    LLP Listener Customized
    CONNECTOR:
    Database Writer with Sp Details
    SCRIPT SOURCE:
    Transformer
    LINE NUMBER:
    1
    DETAILS:
    ReferenceError: "MsgType" is not defined.
    ================


    Could you please suggest what could be wrong or how to over come this issue. I have been sittig on this for whole of yesterday.:unsure:

    Any help would be greatly appreciated.

    Thanks in Advance
    Mac

    PS: When I hav the 'use Java Script' set to 'No' I am able to use the Transformer.

    Post edited by: mac_3785, at: 09/10/2007 06:50

  • #2
    Re:Transformer Error when 'use Java script' = Yes

    Can you post your javascript?
    Chris Lang

    Comment


    • #3
      Re:Transformer Error when 'use Java script' = Yes

      Is the variable that you defined MsgType or msg_type? Your post is unclear.
      Brendan Haverlock | Mirth Software Engineer | Mirth Corporation

      Comment

      Working...
      X