# tNeo4jBatchSchema

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.

Defines the schema of a local Neo4j database.

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).

## tNeo4jBatchSchema 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 tNeo4jBatchSchema running in the Standard Job framework.

The Standard tNeo4jBatchSchema 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<br>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.<br><br>This component supports Neo4j version V3.2.X only and does not support the remote mode. Therefore, do not reuse the connection to versions other than V3.2.X defined in a tNeo4jConnection component and do not select the Remote server check box in tNeo4jConnection.<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. |
| Database path | Specify the directory to hold your data files. If the specified<br>directory does not exist, it will be created.<br><br>This field<br>appears only if you do not select the Use an<br>existing connection check box. |
| 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. |
| Schema definition | Add indexes and unique property constraints to define the schema:<br><br><ul> <li> <p> <span>Schema type</span>: select whether it is an index (<span>Index on node property</span>) or a constraint (<span>Node property is unique</span>) to be defined.</p> </li> <li> <p> <span>For node with label</span>: enter, within double quotation marks, the label of a node.</p> </li> <li> <p> <span>On property</span>: enter, within double quotation marks, the property of a node.</p> </li> </ul> |

## Advanced settings

| Properties | Description |
| --- | --- |
| Neo4j configuration | Add parameters to the table to configure the database to be created.<br><br>For further information, see Neo4j documentation: [Configuration settings](http://neo4j.com/docs/stable/configuration-settings.html).<br><br>When entering values, use the syntax demonstrated by the examples given alongside the column names of this Nodes files table. |
| tStatCatcher Statistics | Select this checkbox to gather the Job processing metadata at the Job level<br>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 is used standalone in a subJob to write a Neo4j graph<br>schema. |