> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/more-settings/duplicate-document-handling.md).

# Duplicate Detection

## Detect duplicates and make an informed decision

<figure><picture><source srcset="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-53510f71b03426f3d46ec7238b2a747242ae6e11%2Fintro-process-02-dubletten-en-dark-20261029.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-9ddde7e1b36eb81c6f396190acd7971e04cca101%2Fintro-process-02-dubletten-en-light-20261029.png?alt=media" alt="Detect duplicates and make an informed decision"></picture><figcaption><p>Detect duplicates and make an informed decision</p></figcaption></figure>

DocBits compares the configured fields within the selected time window. When a match is found, open the duplicate warning and compare the documents before continuing or archiving. Blocking duplicate exports is a separate setting; a match does not automatically archive a document.

Use **Duplicate Detection** to flag documents that match another document on selected fields within a chosen time period. The options belong to each document type.

## Open the settings

1. Open **Settings → Document Types**.
2. On the document type you want to configure, select **Settings**.
3. In **More Settings**, open **Duplicate Detection**.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-6d588b045ebf78a6ef314382716b490a3a512239%2Fdbdc156-duplicate-settings-off-en.png?alt=media" alt="Invoice More Settings with the Duplicate Detection section open and the detection options switched off"><figcaption><p>The Invoice settings show four separate switches. The field and interval selectors appear when detection is enabled.</p></figcaption></figure>

## Choose what counts as a duplicate

1. Turn on **Duplicate Document Detection**. The **Duplicate Detection Fields** and **Duplicate Detection Interval** selectors appear.
2. Select the fields that must match. For an invoice, you might choose **Supplier ID** and **Invoice number**. Choose fields that distinguish documents in your own process.
3. Choose an interval: **1 Month**, **3 Months (Recommended)**, **6 Months**, or **1 Year**. A longer interval checks a wider date range and may take longer to load.

Each change is saved when you make it; there is no separate Save button in this section. If you switch detection off, the field and interval selectors are hidden.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-3003c6e6efcfc46d20a49443bc1f779d62638586%2Fs150-duplicatedocument_3.png?alt=media" alt="English duplicate-document detection settings."><figcaption><p>English duplicate-document detection settings.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-ddac72e1f4ca68a5fd077cbf74805f640ae64980%2Fs150-duplicatedocument_4.png?alt=media" alt="Fields available for duplicate-document detection."><figcaption><p>Fields available for duplicate-document detection.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-d2bd4f397b36ad2c86644a53fe84f13973996168%2Fdbdc156-duplicate-interval-options-en.png?alt=media" alt="Duplicate Detection Interval menu with one month, three months, six months, and one year"><figcaption><p>Three months is marked as the recommended interval in the menu.</p></figcaption></figure>

For **Invoice**, this section also offers **Duplicate Invoice Detection**, **Block Duplicate Document Export**, and **Ignore Tax Free Line**. These are separate switches; enable only the behavior your invoice process needs. The extra switches are not shown for other document types.

## Review a flagged document

When DocBits finds a match, the document's row on the **Dashboard** shows a duplicate icon. Select the icon to compare the matching records in the side panel. The icon appears only when a match exists.

When you open a flagged document, the duplicate warning offers **View Duplicate**, **Proceed Anyway**, and, if the document has not already been archived, **Archive**. Review the matching records before choosing an action. See [the Dashboard guide](https://docs.docbits.com/administration-and-setup/settings/global-settings/dashboard.md) for the document list.

When reviewing suspected duplicates, compare invoice number, supplier, date and amount. Use the duplicate warning and matching document details to decide what requires correction.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/more-settings/duplicate-document-handling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
