How Scanning Works on HubSpot#
Dedupify finds duplicates by scanning. A scan reads every record of an object type and evaluates each one against your match rule. Turning a rule on starts one. After that, Dedupify checks each record as it is created or updated.
The first scan#
Turning on a match rule starts a scan of every record of that object type in your portal. Dedupify evaluates each record against the rule and adds the pairs it finds to your review queue.
Only one scan runs at a time for your portal. If you turn on several rules in a row, the scans queue and run one after another.
A scan moves through these states:
- Starting. The scan is waiting to be picked up.
- Scanning. Dedupify is working through your records.
- Complete. The scan has finished, and the pairs it found are in your review queue.
- Failed. The scan stopped on an error, and it shows the reason.
- Cancelled. The scan was stopped before it finished, for example because you turned its rule off.
On the Rules tab, a rule shows its scan state in place of On until the scan settles. The rule editor lists the scan’s steps: Starting up, Fetch & Index, Process Records, Score Potential Matches, and Save Results. When Dedupify already holds current copies of your records, it skips the fetch step and marks it as up to date. A failed scan shows Retry scan.
To follow a scan from the Rules tab to the scan history, step through it:
- Open the Rules tabOpen Dedupify's settings (Settings, Integrations, Connected apps, Dedupify) and choose Rules. A rule's status reads Scanning, Starting or On, and its Last Scan column shows how the last scan went.
- Open ScansActivity, then Scans, lists each scan, newest first, with its step and percentage while it runs and the duplicates it found when it completes.
If the rule editor is open when a scan finishes, a Scan complete message says how many records Dedupify scanned and how many possible duplicates it found. The Scans sub-tab of Activity keeps the history. See Activity, Scans & Audit.
How Dedupify sees changes#
After the first scan, Dedupify needs to learn about records that are created, edited, deleted, or merged.
Dedupify checks each record as it is created or updated. It watches contacts, companies, deals, tickets, and custom objects for creates, updates, deletes, and merges, on the properties your enabled rules use. When a change touches one of them, Dedupify evaluates the record again and adds any new pair to your review queue, usually within seconds. You do not need to run a scan each time a record changes.
Getting a fresh full scan#
Turning a rule on queues a full scan, so the way to a fresh pass is to turn the rule off and on again.
You rarely need this, because changes reach Dedupify on their own. Use it after a large import you want evaluated at once, or when you think Dedupify missed duplicates.
Dedupify first checks whether the copies of your records it holds are current. It reads the records from HubSpot again only when they are behind, so a fresh scan can finish in a few steps.
Turning a rule off stops its scans and dismisses its pending pairs from the review queue. The new scan finds them again, and a pair you rejected stays rejected.
You don’t need to turn a rule off to change it. Saving a change to its fields while it is on re-checks its pairs in the background and leaves its pairs in your queue until the re-check replaces them. See Change a rule that is on.
What does not start a scan#
There is no nightly or scheduled full scan. A full scan starts when a rule is turned on, including turning it back on after turning it off, when you retry a failed scan, and when you save a change to the fields of a rule that is on. Between full scans, Dedupify evaluates only the records that changed. It does not rescan unchanged records on a schedule.
Related#
- Match rules: the rules that drive each scan.
- Review thresholds and auto-merge: which pairs reach your review queue and which merge on their own.