Reporting & Data Engineering · System Integration

NetSuite Incremental Sync Misses Deletes: How to Prove It

NetSuite incremental sync misses deleted records and lines. Sort a warehouse variance into four causes, test each, and name who owns the fix.

The short answer

A NetSuite incremental sync copies only what changed, so a deletion leaves your warehouse higher than NetSuite and nothing in the run flags it.

This week, count rows per table and tie one closed period's P&L to NetSuite. A pass means the counts match or every difference is explained, and the P&L ties to the cent. The controller owns that pass or fail, and the data or IT owner owns the repair.

An incremental sync asks NetSuite for the rows modified since the last run. A deleted row no longer exists, so there is nothing to ask for. Your warehouse is the reporting copy of NetSuite data, in Snowflake, BigQuery or similar. Three more cases hide the same way: a line removed from a transaction that still exists, a transaction that stops posting to the ledger, and a line edit that never moves the header's modified date.

If a check fails, the table below sorts the gap into four causes, each with a test and a repair. For how to build the sync itself, see our guide to the NetSuite to Snowflake sync.

Two checks before you blame the sync

Run both on a period you have fully loaded and that NetSuite has closed, and ask the data owner to run the NetSuite side.

  1. Count rows, table by table. The data owner runs a saved search or a record count report per record type in NetSuite, and the matching count in the warehouse after the nightly run. A warehouse count above NetSuite's is the signature of a missed deletion. A lower count may point somewhere else, such as a read that stopped early at the 5,000-row limit on NetSuite's SQL-style queries.
  2. Tie one closed period's P&L to NetSuite. Run the warehouse P&L and the NetSuite Income Statement for the same period, with the same accounting book and subsidiary, posted transactions only. The month-end checklist covers how to make that tie-out a close step.

Compare only periods you have loaded. A full-year NetSuite report set against a partial load shows every unloaded period as a variance, and you spend the day chasing a gap that is not real.

The pattern of the gap narrows the cause. Totals that are too high in a period nobody touched suggest deleted records. A gap that appears only after back-dated edits suggests line changes.

Which of four causes is it?

Match the pattern of the gap to a cause, run the test, then hand the repair to the data owner.

CauseWhat you seeTestRepair
A record was deletedWarehouse row count above NetSuite. Totals too high in untouched periodsExport the ids from both sides and list the ones the warehouse has and NetSuite does not. Confirm each against the live recordRemove only the ids confirmed as deleted
A line was deleted from a transaction that still existsHeader matches, line total does notCompare the line count and line total per transaction, warehouse against NetSuite, for transactions changed this weekData owner corrects the affected lines
A transaction stopped postingTransaction still in NetSuite, absent from the ledger, still in the warehouseList warehouse transactions that have no ledger lines in NetSuiteRebuild the affected period and remove rows it no longer holds
A line edit did not move the header dateGap appears after a back-dated editCompare line-level totals per transaction for transactions whose header date is older than the last runCatch line-level changes, with a periodic full reload (rebuild the table from scratch) as the backstop

A flow chart shows that when the warehouse total is above NetSuite, you count rows per table and tie one closed period's P&L, and if either fails you test four causes (a deleted record, a deleted line, a transaction that stopped posting, a line edit that did not move the header date) before the controller signs pass or fail and the data owner repairs.

A sampled test can confirm a cause but never rule one out, so run each test across the whole changed set when you can. The third cause comes from VCG field experience: VCG's consultants have seen transactions leave the ledger without being deleted.

In one week at one account VCG reviewed, roughly 1,300 transaction-line rows and 1,200 accounting-line rows changed on transactions whose header modified date had not moved. A sync that watches the header date, and a deletion sweep that does the same, miss every one of those. The mechanism is in the Snowflake guide.

What NetSuite records, and what to check

NetSuite records some deletions within limits, and Oracle's pages leave questions you can answer only in your own account.

  • Three places to look, covered by record type. Oracle documents a Deleted Record search, a deleted-record table you can query for the new analytics data source, which needs the NetSuite Data Intelligence feature switched on (Oracle: Searching for Deleted Records That Use the New Analytics Data Source), and getDeleted, NetSuite's older programming interface for listing deletions. Only record types that support deletion tracking are covered (Oracle: Searching for Deleted Records). On the analytics table, a query for a type that is not supported returns no results, which looks exactly like "nothing was deleted".
  • Access can hide deletions. By default only account administrators and users with the Full Access role can use getDeleted, and other roles need the Deleted Records permission plus the Web Services permission (Oracle: getDeleted). Oracle does not say what a role without it sees, so test the role the sync runs as.
  • Lines are an open question. Oracle's line-level audit trail tracks updates to existing line items, not their creation or deletion (Oracle: Line-Level Audit Trail for Transactions). Oracle's deleted-record pages do not say whether a deleted line appears.
  • Retention is stated for one source. Oracle says data about deleted records "remains available indefinitely" for getDeleted. The pages for the other sources give no retention period.
  • The old data source is gone. Oracle says the NetSuite.com data source is no longer available once an account is upgraded to NetSuite 2026.1 (Oracle: The Outdated NetSuite.com Data Source is No Longer Available). A deletion job written years ago against it needs checking now.

Two actions follow. Check every record type you sync against Oracle's supported list, and check the role the sync runs as. Then, in a sandbox, delete one line from a test transaction and see whether any source lists it.

A deletion that falls outside the sweep's lookback, the number of days it re-reads, also stays in the warehouse for good. VCG's consultants have seen sweeps with a fixed window, and a delete from before that window is never removed.

Decide whether to keep the last copy

Decide before the next deletion whether the warehouse keeps the last copy of every row it stops receiving.

Oracle says voiding a transaction sets its total and all its line items to 0 but does not remove it, and that a preference for voiding with a reversing journal entry limits which transaction types can be voided (Oracle: Voiding, Deleting, or Closing Transactions). A voided transaction stays findable, though you should confirm in your account that a void moves the modified date your sync reads.

A delete is different. The same page says "NetSuite does not retain the details of a deleted transaction", and the audit trail includes a record that the transaction was deleted. If the warehouse never kept the last copy, the question "what did this invoice look like before it was deleted" has no answer anywhere.

So decide two things. First, keep the last copy of any row that stops arriving. Second, choose how removed rows leave reports: hide them with a filter, which can be undone, or physically delete them, which cannot. An upsert (insert the row, or update it if it exists) corrects what it receives but never sees what was removed. In a related sync VCG has worked on, moving a payment from one invoice to another left the first invoice's row overstated, with nothing in the run's counts to show it.

Six questions for your data owner

Each question exposes one way a deletion slips through, so ask all six.

  1. Which deletion source does the job read, and does it handle deleted lines? If the answer is "the deleted-record table", ask what happens to a line deleted from a transaction that still exists.
  2. What role does the sync run as, and has anyone tested that it can see deletions? A narrower role may not see them at all.
  3. How far back does the sweep reach? A fixed window means older deletions never arrive.
  4. Does anyone review a new kind of deletion before rows are removed? A record type that does not belong in the list could remove good rows.
  5. When did a full reload last run, and is a failed run noticed and rerun? A periodic full reload is the backstop for everything the incremental run misses.
  6. Who is told, and how fast, when the row counts differ? A good answer names a person and a time, for example the data owner the same morning.

Ask also how large the deletion log is. Deletion logs vary from small enough to reload whole to hundreds of thousands of rows, and in VCG's experience single months can run to tens of thousands of deletions. A job tested on a normal month can fail on one of those, so ask how it behaves.

Who signs and who is alerted

Name two people before the next close: one who signs the tie-out and one who receives the alert.

  • The tie-out signer. Usually the controller, with a pass or fail on the close checklist for each period.
  • The alert recipient. The data or IT owner, who owns the repair and the alert when counts differ.

This split is our suggestion. The person who notices the gap is usually a finance reader, and the person who can fix it is not. Put both names on the close checklist so the check has an owner.

FAQ

An empty deletion lookup and an unmoved header date are the two results readers question first.

Why would a deletion lookup come back empty?

The record type may not support deletion tracking, which Oracle documents for the analytics table. For getDeleted, the role needs the Deleted Records and Web Services permissions. Check both before concluding that nothing was deleted.

Can I rely on the header's last modified date?

No, not for line changes. Compare line totals per transaction for transactions older than the last run, as the table's last row shows.

The takeaway

Start with the row count and the P&L tie-out, then sort any gap into the four causes before anyone rebuilds the sync.

If the numbers still do not tie, or nobody can say how deletions reach the warehouse, VCG's reporting and data engineering consultants can review it. Book an Assessment.

Sources

  1. Oracle: Searching for Deleted Records That Use the New Analytics Data Sourcedocs.oracle.com
  2. Oracle: Searching for Deleted Recordsdocs.oracle.com
  3. Oracle: getDeleteddocs.oracle.com
  4. Oracle: Line-Level Audit Trail for Transactionsdocs.oracle.com
  5. Oracle: The Outdated NetSuite.com Data Source is No Longer Availabledocs.oracle.com
  6. Oracle: Voiding, Deleting, or Closing Transactionsdocs.oracle.com

Related guides

All guides →
Let’s Talk

Still working around NetSuite? That’s what we fix.

Free 30-minute call. We’ll look at your setup and tell you what we’d fix first. If we’re not the right team for it, we’ll say so.

Book an Assessment →Meet the Team