When a record is deleted in your source system, Tugger doesn't remove it from your data. It keeps the row and marks it as deleted. This article explains how to spot deleted and archived records, and how to leave them out of your reports.
The Deleted column
Every table Tugger syncs has a Deleted column, set to true or false.
- false - the record still exists in your source system
- true - the record has been deleted in your source system
When Tugger notices that a record has been deleted, it sets Deleted to true and keeps the row. If the record comes back, for example because someone restored it, Tugger sets Deleted back to false.
For many connectors, related records are marked too. For example, when a Pipedrive deal is deleted, its products are also marked as deleted. If your connector doesn't do this, leave out related records whose parent is marked as deleted, by joining the related table to its parent table and filtering the parent on Deleted.
Why keep deleted records? It lets you see what was removed, and it means nothing disappears from a historical report without you knowing.
Leaving deleted records out of your reports
In Power BI, Excel and Tableau
Your data feeds include deleted records, so filter them out in your report. In Power BI:
- Click Home, then Transform data
- Select the table
- Click the drop-down arrow on the Deleted column
- Untick TRUE and click OK
- Do the same for each table you use, then click Close & Apply
In Excel, click Data, then Get Data, then Launch Power Query Editor, filter the Deleted column the same way, and click Close & Load. In Tableau, add a filter on Deleted and keep only False.
Note: Some connectors also provide ready-made reporting views, whose names start with vw_. These already leave deleted records out.
Tip: If your totals are higher than in your source system, a missing Deleted filter is the most common reason.
In AI Insights
You don't need to do anything. AI Insights leaves deleted records out automatically.
Archived and inactive records
Deleted and archived aren't the same thing. Many systems let you archive a record, or mark it as inactive, without deleting it. An archived customer still exists. It is just hidden from day-to-day lists.
Tugger keeps archived records, with Deleted set to false, so that your history is complete. To tell them apart, use the source system's own column. The name depends on the system, for example:
- Archived (true or false), for example on Simpro employees and contractors
- ContactStatus on Xero contacts (for example ARCHIVED), and Status on Xero invoices (for example VOIDED or DELETED)
- archived on HubSpot records
- Active or Inactive in other systems
To show only current records, filter on that column as well as Deleted. The setup guide for your connector, and AI Insights, can tell you which column a table uses.
When a deletion shows up
Tugger picks up a deletion the next time it syncs that kind of record, usually within your normal sync schedule.
Each sync looks back over your recent history to catch changes. If a record was deleted a long time ago, outside that window, it may still show Deleted as false. A few systems also don't tell Tugger about some deletions at all.
If you know that older records have been deleted, or a total still doesn't match after a sync, a re-tug can help. It clears the connector's data and reads your full history again, so records that were deleted in your source system are no longer included at all. A re-tug can take hours or days, and your reports are incomplete until it finishes, so contact us first if you aren't sure. See How to Re-Tug.