# tNeo4jInput

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

Information noteImportant: The Neo4j components are deprecated from the 8.0.1-R2022-11 Talend monthly patch and removed from 8.0.1-R2024-12 onwards. Use Neo4jv4 components instead.

Reads data from Neo4j and sends data in the output Talend flow.

tNeo4jInput reads data from Neo4j based on Cypher query allowing any further transformation or processing of the data in the rest of the Job.

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

## tNeo4jInput Standard properties

Information noteImportant: The Neo4j components are deprecated from the 8.0.1-R2022-11 Talend monthly patch and removed from 8.0.1-R2024-12 onwards. Use Neo4jv4 components instead.

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

The Standard tNeo4jInput component belongs to the Big Data and the Databases NoSQL families.

The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.

## Basic settings

| Properties | Description |
| --- | --- |
| Use an existing connection | Select this check box and in the Component<br>List drop-down list, select the desired connection component to<br>reuse the connection details you already defined. |
| DB version | Select the Neo4j version you are using.<br><br>When you are using Neo4j version 3.2.X, this component works<br>in the remote mode only. Therefore, if you want to reuse a connection to<br>Neo4j V3.2.X from tNeo4jConnection, ensure that you<br>have selected the Remote server check box and<br>properly configured the connection.<br><br>Do<br>not use a 2.X.X version and a 3.X.X version in the same Job. Otherwise,<br>class conflict issues occur.<br><br>Neo4j version 2.X.X is compatible only with Java 7 or higher but it offers<br>support of advanced features such as node labels.<br><br>This list is not shown if the Use an<br>existing connection check box is selected.<br><br>Upon selecting a database version, you will be prompted to<br>install the corresponding database driver JAR files if not yet installed. For details, see [Installing external modules](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/installing-external-modules). |
| Shutdown after<br>job | Select this check box to shutdown the Neo4j database connection when no more<br>operations on Neo4j are going to be performed after the current<br>component.<br><br>Alternatively, you can use tNeo4jClose to shutdown the<br>database.<br><br>This avoids errors such as "Id file not properly shutdown" at next execution<br>of Jobs involving Neo4j.<br><br>This check box is available only if the Use an existing<br>connection check box is not selected. |
| Remote server | Select this check box if you use a Neo4j remote server, and specify the root URL in the Server URL field.<br><br><ul> <li> <p> <span>Set username</span>: this check box                            is available when you have selected the <span>Use a remote server</span> check box and the Neo4j version                            you are using is earlier than 2.2. If the remote Neo4j server                            you want to connect to does not require user credentials, leave                            it clear.</p> </li> <li> <p> <span>Username</span> and <span>Password</span>: enter the authentication                            information to connect to the remote Neo4j server to be used.                            Since Neo4j 2.2, user credentials are always required.</p> </li> </ul><br><br>This check box appears only if you do not select the Use an existing connection check box and you are not using Neo4j V3.2.X. With V3.2.X, this component supports the remote mode only. |
| Database path | If you use Neo4j in embedded mode, specify the path of<br>data file.<br><br>This field appears only if you do not select the<br>Use an existing connection<br>check box or the Remote server<br>check box. |
| Schema and Edit Schema | A schema is a row description. It defines the number of fields<br>(columns) to be processed and passed on to the next component. When you create a Spark<br>Job, avoid the reserved word line when naming the<br>fields.<br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><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> |
| Query | Enter your Cypher query in double quotes, with return<br>parameters matching the mapping table. |
| Mapping | Complete this table to specify the column or columns to<br>be extracted and the corresponding column family or families. The<br>Column fields of this table<br>are automatically filled once you have defined the schema; fill the<br>Return parameter fields with<br>return parameters to map the node properties in the Cypher query with<br>the schema columns.<br><br>Be sure to enclose your return parameters in double<br>quotes. |

## Advanced settings

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

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br><br>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 always needs an output<br>link. |
| Limitation | n/a |