Announcement

Collapse
No announcement yet.

EDI to XML

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

  • EDI to XML

    Hi,

    Am new to EDI n Mirth. Trying to convert EDI file to XML. Given EDI as the input parameter data type for source and destination. Set Output parameter as xml data type in destination.

    Provided FIle Reader n File writer as the source and destination respectively.

    Built transformer with EDI to XML conversion function.

    Attaching the channel here. When i deploy., ending up with a error "ERROR: Error converting message or evaluating filter/transformer".

    Please Help me out on where am going wrong!

    EDItoXML.xml

    Error-EDItoXML.txt

    edi.txt

    Thanks for your patience!

    Vijaya
    Last edited by vijayahl7; 05-20-2014, 11:48 PM. Reason: missing attachment

  • #2
    Hi Vijaya,

    You need to change your EDI properties.
    You can do that on the summary tab choose "Set Data Types" inbound properties: EDI/X12 and then the following.

    Segment delimiter: ' (single quote)
    Element delimiter: +
    subelement delimiter: :

    Then it wil transform into XML.

    kind regards
    Stefan Scholte
    Stefan

    Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

    Comment


    • #3
      Thanks StefanScholte! It works

      Yet the data am getting in Output XML is not a real xml .

      I gave in destination template as ${XMLStr.transformedData}. Please correct me!
      All that i am getting in xml is ${XMLStr.transformedData}. How to get the proper xml data here?

      Attaching the channel and response here.

      EDItoXML.xml

      xml.xml

      Comment


      • #4
        It works., destination template i have given wrong. corrected it to ${message.transformedData}. Thanks!

        Comment


        • #5
          I am new to EDI and also the transformation. I have imported the channel and trying to transform from EDI X12 to Json format but facing some issues.

          My main aim is to transform ED X12 to FHIR format.

          Could anyone help me to built the channel.



          Thanks you in advance

          Comment

          Working...
          X