# tExtractEDIField

Reads the EDI structured data from an EDIFACT message file, generates an XML according to the EDIFACT family and the EDIFACT type, extracts data by parsing the generated XML using the XPath queries manually defined or coming from the Repository wizard, and finally sends the data to the next component via a Row connection.

## tExtractEDIField Standard properties

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

The Standard tExtractEDIField component belongs to the Processing family.

The component in this framework is available in all subscription-based Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Property type | <ul> <li> <p>Either <span>Built-in</span> or <span>Repository</span>. </p> </li> <li> <p> <span>Built-in</span>: No property data is                                stored centrally.</p> </li> <li> <p> <span>Repository</span>: Select the repository                                file where properties are stored. The fields that follow are                                completed automatically using the fetched data.</p> </li> </ul> |
| Schema and Edit<br>Schema | <ul> <li> <p>A schema is a row description, it defines the number of fields to                                be processed and passed on to the next component. The schema is                                either <span>Built-in</span> or stored remotely                                in the <span>Repository</span>.</p> <p>Click <span>Edit        schema</span> to make changes to the schema. If the current schema is of the <span>Repository</span> type, three options are available:</p> <ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul> </li> <li> <p> <span>Built-in</span>: You create the schema                                and store it locally for this component only. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> <li> <p> <span>Repository</span>: The schema already                                exists and is stored in the Repository, hence can be reused in                                various projects and Job flowcharts. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> </ul> |
| EDI filename | Filepath to the UN/EDIFACT message file to be processed. |
| EDI version | UN/EDIFACT version of the input file. |
| EDI type | UN/EDIFACT standard of the input file. |
| Ignore new line | Select this check box to skip carriage returns in the input<br>file. |
| Loop query | Node of the structure tree on which the loop is based. |
| Mapping | Column: Reflects the schema as<br>defined by the Schema type field.<br><br><br>XPath Query: Enter the fields to be<br>extracted from the structured input. These fields are editable when<br>the property type of the component is Built-In.<br><br><br>Get nodes: Select this check box to<br>recuperate the content of all current nodes specified in the<br>Xpath query list or select the<br>check box next to specific nodes to recuperate only the content of<br>the selected nodes. This operation is available when property type<br>of the component is Built-In. |
| Die on error | Select this check box to stop Job execution when an error is<br>encountered. By default, this check box is cleared, and therefore<br>illegal rows are skipped and the process is completed for the error<br>free rows. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a<br>Job level as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is usually linked to an output component to gather<br>the processing result. |

**Related concepts**

* [Extracting data from an EDIFACT message](https://help.qlik.com/talend/en-US/components/8.0/processing/textractedifield-tfileoutputxml-tlogrow-tlogrow-extracting-data-from-edifact-message-standard-component-enterprise-this)