# How Scanning Works on Pipedrive

> When Dedupify scans your Pipedrive records, how it learns about changes between scans, and how to run a fresh scan.

Dedupify finds duplicates by scanning. A scan reads every person or organization of the rule's object, evaluates each against your match rule, and adds the pairs it finds to your review queue. Turning a rule on starts one. After that, Dedupify checks each person or organization as it is created or updated and usually finds a new duplicate within seconds.

## Scan a rule

One scan runs at a time for your company; others queue.

Turn on a rule and watch the scan

**Turn on a rule and watch the scan**

1. **Turn the rule on** Go to Tools and apps, Installed apps, Dedupify, Settings, and on Match rules select Turn on for the rule. It stays review only. It queues a scan of your people, which can take a moment to show up on Scan status.
2. **Open Scan status** Scan status lists each rule's scans, newest first.
3. **Watch the scan** It reads Starting for up to 2 minutes while the scan waits for a worker, then Scanning with a running count. Scanning takes a few minutes to tens of minutes, depending on how many records you have, and runs in the background. When it reads Complete, its pairs are in the review queue.

Other states:

| State | Meaning | What to do |
|---|---|---|
| **Failed** | Stopped on an error; the reason is shown | Admins: **Retry scan** |
| **Cancelled** | Stopped early, for example because you turned the rule off | Admins: **Start a new scan**, if the rule is on |
| **Paused** | Reached the daily API limit for Dedupify | Nothing: it resumes on its own after the limit resets |
| **Too large for the API limit** | Needs more than a day of the limit | Raise the limit ([API limits](../api-limits/)), or use fewer fields in the rule |

## How changes arrive

* **Notifications:** Pipedrive tells Dedupify when a person or organization is created, changed, deleted or merged, and Dedupify evaluates the change against your rules.
* **Missing notifications:** once a day Dedupify checks that its notification subscriptions are still in place and replaces any that are gone. If it replaced one, it rescans your rules to catch changes made meanwhile. See [API limits](../api-limits/#how-dedupify-catches-changes).
* **Deleted records:** once a day, Dedupify rereads the records in your pending pairs. A pair with a record that was deleted or merged away leaves the queue.

## Run a fresh scan

Rarely needed, because changes arrive on their own. Use it after a large import, or when you think Dedupify missed duplicates.

1. On **Match rules**, select **Turn off** on the rule.
2. Select **Turn on**.

Turning a rule off dismisses its pending pairs. The new scan finds them again, and a pair you rejected stays rejected. It rereads every record and spends your daily API limit as the first scan did.

A full scan starts only when a rule is turned on, when you retry a failed scan, and with **Start a new scan** on a cancelled one. There is no scheduled full scan, and saving new thresholds on a rule that is on starts none. Saving a change to the fields of a rule that is on re-checks its pairs without turning it off: see [Change a rule that is on](../rules/#change-a-rule-that-is-on).

## Automatic merges

Pairs a rule merged on its own are listed under **Automatic merges** on **Match rules**, newest first.

Check automatic merges and scan history

**Check automatic merges and scan history**

1. **Open Match rules** Go to Tools and apps, Installed apps, Dedupify, Settings and select Match rules.
2. **Read the automatic merges** Automatic merges lists every pair a rule merged without review, newest first: the record that was kept, the rule that matched, its score and when. Show older merges loads the earlier ones.
3. **Check past scans** Scan status shows each rule's latest scan, whether it completed, and how many possible duplicates it found.

## Related

* [Match rules](../rules/): the rules that drive each scan.
* [Review thresholds and auto-merge](../auto-merge/): which pairs reach your review queue and which merge on their own.

Source page: https://artifactapps.com/docs/dedupify/pipedrive/scanning/
