Extracting data from an EDIFACT message - Cloud - 8.0

Processing (Integration)

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Processing components (Integration)
Data Quality and Preparation > Third-party systems > Processing components (Integration)
Design and Development > Third-party systems > Processing components (Integration)
Last publication date
2024-03-05

This scenario applies only to subscription-based Talend products.

For more technologies supported by Talend, see Talend components.

This scenario describes a simple Job that reads the EDIFACT structure of an input UN/EDIFACT Customs Cargo (CUSCAR) message file, and extracts data according to the schema definition. The extract data is displayed on the Run console and sent to an XML file.

  • Drop the following components from the Palette onto the design workspace: tExtractEDIField, tLogRow, and tFileOutputXML.

  • Connect the components using Row > Main connections.

  • Double-click tExtractEDIField to display its Basic settings view and define its properties.

Note:

In this use case, the input schema is stored in the Metadata node of the Repository tree view for easy retrieval. For further information concerning metadata, see Managing metadata in Talend Studio.

  • Select Repository from the Property Type list, and then click the [...] button next to the field that appears to open the Repository Content dialog box.

  • In the Repository Content dialog box, select the desired metadata item, cuscar in this use case, and click OK.

  • In the EDI parameters area, 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.

  • Select the Ignore new line check box to skip the carriage return characters in the input file during data processing.

  • As all the other parameters are automatically retrieved, simply leave them as they are.

  • Double-click the tFileOutputXML component to show its the Basic settings view.

  • 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_extract.xml.

  • Leave the other parameters as they are.

  • Save your Job and press F6 to run it.

    The defined data in the input EDIFACT CUSCAR message file is retrieved, displayed on the console, and written into the output XML file.