A successful sync in the Fivetran dashboard means the connector finished. It does not mean the numbers in your warehouse match the source. This tutorial sets up a lightweight validation layer that catches the quiet failures: missing rows, stale tables, unhandled deletes and type drift.
What a green sync does not tell you
- A table excluded from the schema, or a column blocked, is silently absent.
- Hard deletes in the source may only appear as
_fivetran_deleted = truerows (or not at all, depending on the connector). - A table can sit untouched for days while the connection stays healthy, because the source simply had no changes, or because a sync was paused.
- Re-syncs can briefly change row counts.
Step 1: Define what you check
Keep the list short and tied to business-critical tables:
- Freshness: the newest
_fivetran_syncedvalue is within an agreed window. - Volume: the active row count is close to the source count.
- Uniqueness: primary keys are unique in the destination.
- Deletes: soft-deleted rows are excluded from reporting models.
Step 2: Freshness tests
If you use dbt, declare freshness on the source:
sources:
- name: salesforce
loaded_at_field: _fivetran_synced
freshness:
warn_after: {count: 6, period: hour}
error_after: {count: 24, period: hour}
tables:
- name: opportunity
Run dbt source freshness on a schedule. Set windows from the sync frequency you configured, not from wishful thinking: a connector syncing every 6 hours should not have a 1-hour threshold.
Step 3: Row-count reconciliation
Compare active destination rows with a count taken from the source (or a read replica) at roughly the same time:
select count(*) as active_rows
from raw.public.orders
where _fivetran_deleted is not true;
Store both counts in a small recon_results table with a timestamp, and flag any difference beyond a tolerance. For high-write tables expect small gaps because of replication lag; use a tolerance (for example 0.1%) and compare against a cutoff such as created_at < now() - interval '1 hour' on both sides so in-flight rows do not trigger noise.
Step 4: Key and delete tests
models:
- name: stg_orders
columns:
- name: order_id
tests: [unique, not_null]
Build staging models that filter out soft-deleted rows once, so every downstream model inherits the behaviour.
Step 5: Alerting
Route failures somewhere a human will see them: a Slack channel or an incident tool. Combine this with Fivetran's own sync-failure notifications; they cover different problems. Fivetran tells you a sync failed, your tests tell you the data is wrong.
Step 6: Triage when a check fails
- Check the connection's last sync and any warnings in the dashboard.
- Confirm the table and columns are still selected in the schema.
- Look for source-side deletes and how the connector handles them.
- Consider a table-level re-sync only after estimating its MAR and warehouse cost.
Keep it proportionate
Start with freshness and uniqueness on your ten most important tables, add reconciliation for finance and revenue data, and expand only when a check has caught something real. If you would like help designing a validation layer for an existing Fivetran deployment, get in touch with the SyncSpur team.