July 30, 2023

tEDIFACTtoXML – Docs for ESB 7.x


Transforms an EDIFACT message file into the XML format for better readability to
users and compatibility with processing tools.

This component reads a United Nations/Electronic Data Interchange
For Administration, Commerce and Transport (UN/EDIFACT) message and
transforms it into the XML format according to the EDIFACT version
and the EDIFACT family.

tEDIFACTtoXML Standard properties

These properties are used to configure tEDIFACTtoXML running in the Standard Job framework.

The Standard
tEDIFACTtoXML component belongs to the XML family.

The component in this framework is available in all Talend

Basic settings

Schema and Edit

A schema is a row description, it defines the number of fields to
be processed and passed on to the next component.

The schema of this component is fixed and read-only, with only
one column: document.

EDI filename

Filepath to the EDIFACT message file to be transformed.

EDI version

Select the EDIFACT version of the input file.

Ignore new line

Select this check box to skip carriage returns in the input

Die on error

Select this check box to stop Job execution when an error is
encountered. By default, this check box is cleared, and therefore
illegal rows are skipped and the process is completed for the error
free rows.

Advanced settings

tStatCatcher Statistics

Select this check box to gather the Job processing metadata at a
Job level as well as at each component level.

Global Variables

Global Variables

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
to access the variable list and choose the variable to use from it.

For further information about variables, see
Talend Studio

User Guide.


Usage rule

This component is usually linked to an output component to gather
the transformation result.

Reading an EDIFACT message file and saving it to XML

This scenario describes a simple Job that reads a UN/EDIFACT Customs Cargo (CUSCAR) message
file and saves it as an XML file.

Adding and linking the components

  1. Drop the tEDIFACTtoXML
    component and the tFileOutputXML component
    from the Palette to the design
  2. Connect the tEDIFACTtoXML
    component and the tFileOutputXML component
    using a Row > Main connection.

Configuring the components

  1. Double-click the tEDIFACTtoXML component to show its Basic


  2. Fill the EDI filename
    field with the full path to the input EDIFACT message file.

    In this use case, the input file is 99a_cuscar.edi.

  3. From EDI version list,
    select the EDIFACT version of the input file, D99A in this
    use case.
  4. Select the Ignore new
    check box to skip the carriage return characters in the input
    file during the transformation.
  5. Leave the other parameters as they are.
  6. Double-click the tFileOutputXML component to show its Basic settings view.


  7. Fill the File Name field
    with the full path to the output XML file you want to generate.

    In this use case, the output XML is 99a_cuscar.xml.

  8. Leave the other parameters as they are.

Saving and executing the Job

  1. Press Ctrl+S to save the
  2. Press F6 to run the

The input EDIFACT CUSCAR message file is transformed into the XML format and the
output XML file is generated as defined.


Document get from Talend https://help.talend.com
Thank you for watching.
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x