NetSuite data reaches BigQuery four ways: export saved searches to CSV, build a pipeline that reads NetSuite and loads files through Cloud Storage, use Google Cloud’s NetSuite connector inside Application Integration, or run a managed ELT platform. A CSV export suits a one-off look, a script suits a few tables and a team with NetSuite developers, Google’s connector suits record-level integrations, and a managed pipeline suits finance reports that run every month-end across many tables.
BigQuery is a cloud data warehouse that can join ERP records with other data sources, but recurring copies find changes by polling last-modified dates, and NetSuite’s deletion log skips transaction lines. Unless deletes are handled on purpose, BigQuery totals drift from NetSuite’s own reports. Estuary supports this route with a SuiteAnalytics Connect capture that reads changed NetSuite records on an interval and a BigQuery materialization that stages them in Cloud Storage and merges them into tables on a schedule you set.
Choosing a NetSuite to BigQuery method
The right method follows how often the data must refresh, how many tables are involved, and who maintains the code.
Approach | Best fit | Freshness | Operational burden | Example implementation |
|---|---|---|---|---|
Saved-search CSV export | A one-off analysis of a few reports | As of the export | Manual each run; a search exports about 20,000 rows of 50 columns | Export - CSV in NetSuite, then Create table from an upload in BigQuery |
Build your own export | A few tables and NetSuite developers on hand | Your schedule | High: cursors, deletes, concurrency limits and schema changes are yours | SuiteAnalytics Connect, SuiteQL over a REST API or a scheduled SuiteScript, files to Cloud Storage, then a load job and |
Google Cloud’s NetSuite connector | Record-level integrations inside Application Integration | Per integration run | Medium: integration flows, one record at a time | Application Integration with a Connectors task |
Managed ELT platform | Recurring reporting across many tables | Read interval plus load schedule | Low: configuration | Estuary |
For a wider comparison of tools, see data integration tools compared. The rest of this guide assumes a recurring sync, because a CSV needs no setup beyond the export and upload steps in the table.
How NetSuite records reach BigQuery tables
A recurring sync reads SuiteAnalytics Connect’s metadata (OA_TABLES, OA_COLUMNS, OA_FKEYS) to learn each table’s columns and keys, backfills each table in pages, then keeps polling:
Changed rows by date. Tables with a last-modified column (
lastmodifieddate, orlinelastmodifieddateontransactionLine) are asked for rows changed since the last checkpoint, with a short lag so changes NetSuite hasn’t yet made visible aren’t skipped.Whole-table re-reads. Tables with a key but no usable date column, such as
TransactionAccountingLine, are read in full on a schedule.Deletions. NetSuite’s
DeletedRecordtable lists each deleted base record with its type and internal ID. Transaction lines never appear in it.
Changed rows reach BigQuery as files in a Cloud Storage bucket. A load job appends them, or a query reads them as an external table and runs MERGE on the key, which also applies deletes. BigQuery runs two mutating DML statements (UPDATE, DELETE, MERGE) at once per table and queues 20 more, so a pipeline merges once per table per cycle.

NetSuite requirements
SuiteAnalytics Connect is a read-only service with ODBC, JDBC and ADO.NET drivers. It is an add-on module, unavailable on NetSuite Small Business accounts, and Oracle says to use it with static or slowly changing data. Use the NetSuite2.com data source: NetSuite.com is unsupported from 2025.1 and unavailable from 2026.1.
Features. Enable SuiteAnalytics Connect under Setup > Company > Enable Features, and token-based authentication (TBA).
Integration record and token. TBA starts with an integration record, which yields a consumer key and secret, then an access token for a dedicated user, which yields a token ID and secret. A sandbox refresh deletes tokens, so create them again per environment.
Role. Oracle prefers the Data Integrator role or a custom role for warehouse transfers; the Data Integrator role requires TBA and can’t read credit-card data. NetSuite2.com refuses the Administrator role unless the connection uses OAuth 2.0, and roles that need two-factor authentication when connecting with an email and password. A custom role needs the SuiteAnalytics Connect permission.
Account ID. Copy it from Setup > Company > Company Information; a sandbox ID carries an
_SBsuffix.
Limit | Value | What it affects |
|---|---|---|
Connect sessions | A session runs one query at a time; past 50 open connections, connecting may fail; idle sessions expire after 90 minutes | How many tables load at once |
Connect query width | Queries over 1,000 columns work only if they retrieve 1,000 columns or fewer |
|
SuiteQL over REST | 100,000 results per query; the | Large tables without Connect |
BigQuery requirements
BigQuery needs a project, a dataset and, for any method that stages files, a Cloud Storage bucket in a matching location.
Location. A dataset’s location can’t change after you create it. Put the staging bucket in the same location: otherwise external-table queries incur transfer charges, and a US multi-region dataset pairs with a bucket in
us-central1or a dual-region that includes it.Permissions. Loading needs
bigquery.tables.create,tables.updateData,tables.updateandjobs.create, whichroles/bigquery.dataEditoron the dataset androles/bigquery.jobUseron the project cover. Reading staged files needsstorage.objects.geton the bucket.Amounts.
NUMERICholds 38 digits with a scale of 9, enough for ledger amounts;FLOAT64isn’t (see the type mapping).
Setting up NetSuite to BigQuery replication
List the tables the reports need:
transaction,transactionLine,TransactionAccountingLine,account,accountingPeriod,customer,vendor,item,subsidiary,currency, plus their custom fields.Enable SuiteAnalytics Connect and token-based authentication, then create the integration record, role, user and access token.
Create the dataset and the staging bucket in the same location, and a service account with the roles above.
Connect to NetSuite2.com and run one small query to prove the role sees the tables.
Backfill each table from a start date if history is long, largest tables last.
Run the poll loop: ask each dated table for rows changed since its checkpoint, re-read undated tables on a timer, and fold every
DeletedRecordrow into a delete.Merge into BigQuery on the internal ID, using
(transaction, id)fortransactionLinebecause line IDs repeat across transactions.Validate. Check row counts, then edit one transaction and delete one customer and look for both after a cycle. Finally, reconcile base-currency line totals for a single accounting book, by account and period, with a trial balance run in NetSuite with the same filters.
Stop Hand-Building NetSuite Exports
Estuary discovers your NetSuite tables, reads changed rows from each, turns NetSuite's deletion log into deletes, stages files in Cloud Storage and merges them into BigQuery on the schedule you set.
What happens after the initial load?
Each cycle writes changed rows and applies deletes, but some tables need their own handling.
Edits arrive by each table’s own last-modified column, headers and lines separately.
Record deletions of transactions, customers, items and other base records appear in
DeletedRecord; NetSuite’s deleted-record search shows the deletion time in Pacific Time unless you add Date Deleted in User TZ.Line deletions aren’t logged. Take a line off a sales order, or delete the whole transaction, and its rows in
transactionLineandTransactionAccountingLinestay in BigQuery until a complete re-read and a cleanup remove them.
NetSuite to BigQuery data type mapping
Amounts sit in different currencies on different tables, and record fields such as entity, item and subsidiary arrive as internal IDs to join to lookup tables, not as names.
NetSuite field | BigQuery type | Notes |
|---|---|---|
Record keys and foreign references ( |
| Join keys; lookup tables carry the names |
Transaction-currency amounts ( |
| Don’t sum across currencies |
Posting amounts in the subsidiary’s currency ( |
| Repeated for every accounting book |
Transaction dates and last-modified times |
| Compare a sample with the NetSuite UI before reporting by day |
Names, memos and long text ( |
| Compare long-text lengths with NetSuite after the first load |
Amounts, currencies and a reporting query
transaction.foreignTotal and transactionLine.foreignAmount hold transaction-currency amounts; TransactionAccountingLine holds the subsidiary’s base currency, once per accounting book under Multi-Book Accounting. Oracle’s join path is Transaction to Transaction Line to Transaction Accounting Line, to limit duplicated rows.
FLOAT64 is approximate, and Google warns that a floating-point SUM can differ between two runs of the same query, advising a decimal type instead. A cast to NUMERIC rounds half away from zero at nine decimals, so a stored 1.1499999999999999 reads as 1.15. Cast in a view over each amount table, then point SQL queries and business intelligence tools at the views:
Looker connects to BigQuery through a database connection, Power BI through its Google BigQuery connector, and Tableau through a Google BigQuery connector, so each can read the views directly.
Performance, latency and BigQuery cost
NetSuite is usually the bottleneck. Freshness is the read interval plus the load schedule, and BigQuery adds little cost until jobs are very frequent or the staging bucket is in the wrong place.
What sets freshness
The read interval is how often each table is polled; polling more often than every five minutes gains little, because NetSuite makes changes visible with a short delay.
The load schedule is how often staged files are applied; batching keeps
MERGEcounts low.Connect query cost. Calculated columns are computed for every row and can stall a query until it times out. Select only the columns you use, and page on an indexed integer key.
BigQuery job limits
A pipeline that loads with load jobs is limited to 1,500 load jobs per table per day, failed jobs included. A Data Transfer Service transfer from Cloud Storage runs no more often than every 15 minutes, and its load jobs count toward the same quota. Merges are DML, which BigQuery excludes from its 1,500 table modifications per day but limits to 25 statements every 10 seconds per table. For broader pipeline practice, see BigQuery ETL best practices.
Production considerations
Retries. Oracle says a Connect query may fail at peak load or during NetSuite maintenance; rerun it, keep queries short, and make writes safe to repeat.
Source impact. Keep connections well under 50, and load history off-hours.
Role drift. An admin change can switch on two-factor authentication or IP restrictions for the integration role, which then loses NetSuite2.com. A sandbox refresh also deletes TBA tokens.
Monitoring. Watch each table’s checkpoint age, and after every period close compare BigQuery’s trial balance with NetSuite’s.
Common problems and troubleshooting
Transaction lines that NetSuite deleted are still in BigQuery
After edits that remove lines, BigQuery holds more lines than NetSuite does, since DeletedRecord never lists them. Check one transaction:
Compare the result with NetSuite. To clean up, re-read the line tables on a schedule and delete the rows the re-read didn’t refresh. Stamp each row with the time of its last write and run DELETE FROM netsuite.transactionline WHERE flow_published_at < TIMESTAMP '<re-read start>'.
Totals that don’t match NetSuite reports
Balances drift when amounts mix currencies, several accounting books are counted, subsidiaries combine without consolidated rates, soft-deleted rows are included, or a FLOAT64 sum runs in a different order. Total base-currency amounts from TransactionAccountingLine for one accounting book, skip rows whose _meta_op is d, and sum the NUMERIC view.
Dataset not found in location
A job that names a dataset and a staging bucket in different locations fails with Dataset ... was not found in location .... Locations can’t be changed on an existing dataset, so create a new dataset, or a new bucket, in the matching location and reconfigure the pipeline to use it.
Using Estuary for NetSuite to BigQuery
Here the NetSuite SuiteAnalytics Connect capture feeds Estuary’s BigQuery materialization, which stages files in Cloud Storage and writes tables in your dataset. Against the concepts above:
Authentication: NetSuite2.com with token-based authentication. Username and password defaults to role ID 3, Administrator, which NetSuite2.com refuses, and OAuth 2.0 isn’t offered.
Sync modes: discovery enables about 50 common tables by default. Tables with a date column are polled on each binding’s Interval (hourly unless changed), and a poll never asks for the last two minutes of changes. Keyed tables with no date column are re-read nightly at midnight UTC, or on the binding’s Schedule; tables with no key are snapshots that emit deletes for rows that disappeared.
Deletes: the default table set includes
DeletedRecord, and the capture routes each of its rows as a delete to the collection for that record type: transactions totransaction, item types toitem, custom records to their own collection. Line tables get none. BigQuery keeps a deleted record as a row whose_meta_opisdunless Hard Delete is on, which removes it through theMERGE.Accounting lines: after one initial backfill,
TransactionAccountingLineis refreshed only whentransactionreturns a changed header, which reloads that transaction’s lines; lines removed from a transaction aren’t deleted. An edit to one line that leaves its header’s modified date alone isn’t read until you set a Schedule on that binding.Keys and columns:
transactionLineis keyed on(transaction, id), and BigQuery tables are clustered by up to the first four key columns. New bindings leave out calculated, custom and hidden columns; Additional Columns brings back the ones you name.Amounts: Connect hands every
NUMBERandDOUBLEto the connector as a 64-bit float, so amount columns areFLOAT64in BigQuery and anything past about 15 significant digits is lost before Estuary stores a document. No field setting is needed: cast toNUMERICin a view, as in the type mapping section, which keeps amounts of up to about 15 significant digits intact.Checkboxes and times: checkboxes arrive as the text
TorF, andTIMESTAMPvalues that carry no zone are stamped UTC as they are.Writes: each sync runs one
INSERTorMERGEper table with changes, reading the staged files as an external table. Sync Frequency defaults to 30 minutes, and Estuary recommends 5 minutes or longer for BigQuery.
Implementing NetSuite to BigQuery with Estuary
These steps adapt Estuary’s general data flow guide to this route. Estuary’s video walkthrough shows the NetSuite capture setup in the dashboard.
Complete the prerequisites in NetSuite requirements and BigQuery requirements. Estuary also needs:
The account ID and the four TBA values (setup).
A service account with
roles/bigquery.dataEditoron the dataset,roles/bigquery.jobUseron the project androles/storage.objectAdminon the bucket.roles/bigquery.readSessionUseron the project is optional and speeds up reads (prerequisites).
Create the NetSuite capture. On the Sources page, click New Capture, choose Netsuite SuiteAnalytics, name it, and fill in the endpoint properties:
Account: the account ID.
Suiteanalytics Data Source: keep
NetSuite2.com.Authentication: Token Auth, with Consumer Key, Consumer Secret, Token Id and Token Secret.
Advanced: Start Date limits history; Connection Limit (10) and Task Limit (5) cap the load on NetSuite.

Select tables. Click Next and wait for discovery. Output Collections lists every table the role can see, with about 50 common tables enabled,
DeletedRecordamong them.Enable the tables you need and disable the rest.
Leave each binding’s Incremental Cursor and Backfill Cursor as discovered unless a table times out.
Keep Automatically keep schemas up to date on.
Click Save and publish. Backfills start, and incremental tables poll on their interval.
Create the BigQuery materialization. On the capture’s details page, click Materialize, search for BigQuery, and fill in the endpoint properties:
Project ID, Region, Dataset and Bucket: the dataset and the bucket must both be in the region you enter. Bucket Path is an optional prefix.
Authentication: on the Credentials JSON tab, paste the service account’s JSON key or load it with Use secret from file; or choose GCP IAM.
Hard Delete: on, so deleted NetSuite records leave BigQuery; off keeps them as
_meta_op = 'd'rows.

Choose the sync schedule. Sync Frequency defaults to 30 minutes, which suits hourly NetSuite polls. Timezone, Fast Sync Start Time and Fast Sync Stop Time confine frequent syncs to working hours; outside them, syncs run every 4 hours.

Map collections to tables. Click Next, choose a naming convention, and review each binding under Source Collections:
Table and Alternative Dataset override the table and dataset names.
Delta Update: leave off. Delta updates append without merging, so edits and deletes would pile up as extra rows.
Partition By (advanced): a BigQuery expression such as
DATE(created_at), applied only when the table is created; changing it later means backfilling the binding, which re-creates the table.Amount fields need no setting; create the
NUMERICviews from the type mapping section once the tables exist.
Publish. Click Save and publish. Estuary creates the tables and loads the backfill without waiting for the schedule.
Verify that data is landing.
The capture details page shows PRIMARY in its Shard Information card; a collection from its Collections list shows Data Preview.
The materialization details page charts Data Read.
In BigQuery, run the trial-balance check from Setting up NetSuite to BigQuery replication against the views.

How Estuary handles re-reads, rebuilds and deleted lines
Estuary captures each NetSuite table into a collection, a log of JSON files in your own cloud storage bucket, and writes the BigQuery tables from those collections. Rebuilding a table or adding a destination doesn’t query NetSuite.
What a rebuild costs NetSuite
Situation | Queries NetSuite? | What to do |
|---|---|---|
A BigQuery table is damaged or emptied | No | Backfill the materialization binding from the collection; BigQuery truncates the table and keeps its partitioning |
A table needs a different Partition By | No | Backfill the BigQuery binding; the table is re-created from the collection |
NetSuite lines were deleted | Yes, for the affected tables | Re-read them with a capture backfill, then remove BigQuery rows older than that backfill |
Replay is limited to what the collection holds: roughly 20 days on trial storage, everything in a bucket you own.
Line tables after a re-read
Re-reading a table from NetSuite writes fresh documents into its collection, and the BigQuery rows they update get a new flow_published_at. Rows deleted in NetSuite aren’t rewritten, so DELETE FROM … WHERE flow_published_at < TIMESTAMP '<backfill start>' removes them. BigQuery’s connector can delete such rows by itself after a backfill, but only when the capture sends backfill signals, which the NetSuite capture doesn’t, so this stays a manual step.
When another approach may make more sense
A one-off look at a few saved searches: export CSV with the Internal ID column to keep relationships; the console uploads files up to 100 MB, and larger ones load from Cloud Storage.
A few tables and developers who know NetSuite: read through Connect over ODBC or JDBC, run SuiteQL over a REST API (100,000 results a query), or schedule a SuiteScript that calls
query.runSuiteQL, then land files in Cloud Storage and load them. You own the cursors, deletes and schema changes.Record-level integrations: Google Cloud’s NetSuite connector reads and writes single records such as customers, sales orders and vendor bills through a Connectors task in Application Integration, over SuiteTalk (SOAP) or SuiteSQL (REST) schemas. Google’s page doesn’t describe loading BigQuery.
Syncing transactions between applications: an integration platform such as Celigo or Boomi moves orders and invoices instead of replicating tables.
No Connect add-on: Estuary’s NetSuite SuiteQL connector (Beta) is the REST route, with token-based authentication and full refreshes only; the FAQ has the details.
Related resources
Estuary: NetSuite SuiteAnalytics Connect capture, NetSuite SuiteQL capture, BigQuery materialization, sync schedules, backfilling data, NetSuite data integration, NetSuite connector, BigQuery destination
NetSuite: SuiteAnalytics Connect, NetSuite2.com access, deleted record tracking, Connect sessions, SuiteQL over REST
BigQuery: loading data from local files, quotas and limits, locations, Data Transfer Service sources, NetSuite connector for Application Integration, Looker, Power BI, Tableau
To try the route, see the NetSuite to BigQuery integration or create a NetSuite capture in the Estuary dashboard. Pricing: estuary.dev/pricing.

















