# tNamedPipeClose

Closes a named-pipe at the end of a process.

tNamedPipeClose closes a named-pipe opened with tNamedPipeOpen at the end of a process.

## tNamedPipeClose Standard properties

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

The Standard tNamedPipeClose component belongs to the File family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Pipe | Select an existing named-pipe from the list to close. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job processing metadata at a Job level<br>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 used to close a named-pipe at the end of a<br>Job. |
| Dynamic settings | Click the [+] button to add a row in<br>the table and fill the Code field with a<br>context variable to choose your pipe connection dynamically from multiple<br>connections planned in your Job.<br><br>When a dynamic parameter is<br>defined, the Pipe box in the Basic settings view becomes unusable.<br><br>For examples on using dynamic parameters, see [Reading data from databases through<br>context-based dynamic connections](https://help.qlik.com/talend/r/en-US/8.0/components/defining-context-groups/reading-data-from-databases-through-context-based-dynamic-connections) and [Reading data from different MySQL databases<br>using dynamically loaded connection parameters](https://help.qlik.com/talend/r/en-US/8.0/components/context/reading-data-from-different-mysql-databases-using-dynamically-loaded-connection-parameters). For more information on<br>Dynamic settings and context variables, see<br>[Dynamic schema](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/dynamic-schema) and [Creating a context group and define context<br>variables in it](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/creating-context-group-and-define-context-variables-in-it). |
| Limitation | Due to license incompatibility, one or more JARs required to use this component<br>are not provided. You can install the missing JARs for this particular component by<br>clicking the Install button on the Component tab view. You can also find out and add all missing<br>JARs easily on the Modules tab in the Integration perspective of Talend Studio. For<br>details, see [Installing external modules](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/installing-external-modules).<br><br>This component is not supported on macOS.<br><br>Prerequisite for Windows users:<br><br>To avoid errors when running Jobs that use NamedPipe components on Windows,<br>complete the following steps:<br><br><ol> <li>Download <span>namedpipe_jni_64bit-6.0.0.dll</span> from <a href="https://talend-update.talend.com/nexus/content/repositories/libraries/org/talend/libraries/namedpipe_jni_64bit/6.0.0/" target="_blank">the Talend update                           repository</a>.</li> <li>Rename the file to <span>namedpipe_jni.dll</span>.</li> <li>Copy the renamed file to the root of the                              <span>C:\Windows\System32</span> directory.</li> </ol> |

**Related concepts**

* [Writing and loading data through a named-pipe](https://help.qlik.com/talend/en-US/components/8.0/namedpipe/tnamedpipeopen-tnamedpipeclose-tlogrow-writing-and-loading-data-through-named-pipe-standard-component-the)