---
title: NetSuite connector reference
description: Find reference material for the NetSuite ingestion connector in Databricks Lakeflow Connect, including supported data sources, tables, and data type mappings.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/netsuite-reference
---

# NetSuite connector reference

Find reference material for the NetSuite ingestion connector in Databricks Lakeflow Connect.

## <a id="data-source" />Supported data source

The NetSuite connector supports ingestion from the **NetSuite2.com** data source only. The legacy **netsuite.com** data source isn't supported.

To verify that your NetSuite account uses the `NetSuite2.com` data source, check the JDBC URL in your NetSuite account settings. See [Step 5: Find the host, port, and account ID](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/netsuite-source-setup.md#connection-details).

## <a id="tables" />Supported tables

The NetSuite connector supports all tables in the `NetSuite2.com` data source except for the `DeletedRecords` table. The connector can't ingest `DeletedRecords`, but it reads the table to track deleted records.

> [!IMPORTANT]
>
> If the NetSuite role you use for ingestion can't read `DeletedRecords`, incremental ingestion doesn't work for tables with an `id` primary key. Each pipeline update fetches all rows again, and [SCD type 2](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/scd.md) history isn't tracked correctly for those tables. Add the `Deleted Records` permission to the role. See [Step 1: Enable TBA and create a role and a user](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/netsuite-source-setup.md#enable-tba).

To view the available tables in your NetSuite account, either query NetSuite metadata using the SuiteAnalytics Connect feature or refer to your NetSuite schema documentation.

## <a id="transformations" />Automatic data transformations

Databricks transforms NetSuite data types into Delta-compatible data types as follows:

| NetSuite Type             | Delta Type |
| ------------------------- | ---------- |
| BIT                       | Long       |
| BIGINT                    | Long       |
| INT                       | Long       |
| TINYINT                   | Long       |
| SMALLINT                  | Long       |
| ROWID                     | Long       |
| FLOAT                     | Double     |
| DOUBLE                    | Double     |
| REAL                      | Double     |
| NUMERIC                   | Double     |
| DECIMAL                   | Double     |
| VARCHAR                   | String     |
| WVARCHAR                  | String     |
| CHAR                      | String     |
| WCHAR                     | String     |
| NCHAR                     | String     |
| NVARCHAR                  | String     |
| LONGNVARCHAR              | String     |
| WLONGVARCHAR              | String     |
| CLOB                      | String     |
| BOOLEAN                   | Boolean    |
| DATE                      | String     |
| TIME                      | String     |
| TIME\_WITH\_TIMEZONE      | String     |
| TIMESTAMP                 | Timestamp  |
| TIMESTAMP\_WITH\_TIMEZONE | Timestamp  |

## <a id="config" />Pipeline configuration

When creating a NetSuite ingestion pipeline, you must specify the following configuration properties:

* `name`: A unique name for the ingestion pipeline.
* `catalog`: The Unity Catalog catalog where ingested data and event logs will be written.
* `target`: The Unity Catalog schema where ingested data will be written.
* `serverless`: Must be set to `true` for NetSuite pipelines. NetSuite ingestion requires serverless Lakeflow pipelines.
* `ingestion_definition`: An object containing the ingestion configuration.
  * `connection_name`: The name of the Unity Catalog connection to NetSuite.
  * `netsuite_jar_path`: The path to the NetSuite SuiteAnalytics JDBC JAR file in a Unity Catalog volume (for example, `/Volumes/main/default/netsuite_jars/NQjc.jar`).
  * `objects`: An array of table objects to ingest. Each object contains:
    * `table`: An object describing the source and destination table.
      * `source_schema`: The source schema in NetSuite. Use `default`.
      * `source_table`: The name of the NetSuite table to ingest.
      * `destination_catalog`: The Unity Catalog catalog where the ingested table will be written.
      * `destination_schema`: The Unity Catalog schema where the ingested table will be written.
      * `table_configuration`: An object containing table-specific configuration.
        * `scd_type`: The slowly changing dimension (SCD) method to use. Valid values are `SCD_TYPE_1` and `SCD_TYPE_2`. See [Enable history tracking (SCD type 2)](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/scd.md).
        * `primary_keys`: (Optional) A list of columns that overrides the primary key that NetSuite reports for the table. See [Override the primary key for a table](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/netsuite-pipeline.md#override-primary-key).

## <a id="auth-fields" />Authentication fields

To create a NetSuite connection in Catalog Explorer, you must provide the following authentication details:

* **Consumer Key**: The OAuth consumer key from your NetSuite integration.
* **Consumer Secret**: The OAuth consumer secret from your NetSuite integration.
* **Token ID**: The access token ID for your NetSuite user.
* **Token Secret**: The access token secret for your NetSuite user.
* **Role ID**: The internal ID of the `Data Warehouse Integrator` role in NetSuite.
* **Host**: The hostname from your NetSuite JDBC URL (for example, `mycompany.connect.api.netsuite.com`).
* **Port**: The port number from your NetSuite JDBC URL (typically `1708`).
* **Account ID**: The account ID from your NetSuite JDBC URL.

For instructions on obtaining these authentication details, see [Configure NetSuite for ingestion into Databricks](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/netsuite-source-setup.md).
