# Duplicate Detection

## Overview

In **DocBits**, you can filter for duplicate documents by specifying which fields must match and by defining a time interval during which duplicates should be detected.

This page provides a detailed guide on how to enable and use the **Duplicate Detection** feature effectively.

## Enabling Duplicate Detection

To enable duplicate document detection in **DocBits**, follow these steps:

1. Navigate to **Settings** → **Global Settings** → **Document Types**.

   <figure><img src="/files/Timrq1z8q9VXvKkNdHOm" alt=""><figcaption></figcaption></figure>
2. Select the desired **Document Type** and click on **More Settings**.

   <figure><img src="/files/mZd5FtUsKNquO4e0zpEv" alt=""><figcaption></figcaption></figure>
3. Go to the **Duplicate Detection** section.

   <figure><img src="/files/GOhkXFiwmC9FpTTIsnuQ" alt=""><figcaption></figcaption></figure>

DocBits provides two options for identifying duplicate documents:

1. **Duplicate Document Detection**:\
   This feature checks for duplicate documents uploaded to **DocBits** based on the selected criteria. If any document matches the selected criteria across other documents, it will be flagged as a duplicate.
2. **Duplicate Invoice Detection** (Only available for the **Invoice** document type):\
   This feature requires syncing Supplier Invoices from Infor to DocBits. It compares the invoice numbers in the DocBits dashboard with those in Infor. If the same invoice number appears more than once, it will be flagged as a duplicate.

   <mark style="color:red;">**Note**</mark>: Using the **Duplicate Invoice Detection** feature will result in an additional credit charge.

## Filter which documents should be detected as duplicate

Once **Duplicate Detection** is enabled, two dropdown menus will be available for configuration:

* **Duplicate Detection Fields**\
  Select the fields that should be used to identify duplicates (e.g., Supplier ID, Date, Invoice Number, etc.). Documents matching these fields will be flagged as duplicates.

  <figure><img src="/files/g18MUCt0kfZoppQuIJtH" alt=""><figcaption></figcaption></figure>
* **Duplicate Detection Interval**

  Use this setting to define the time range within which duplicates are detected. Documents uploaded within the selected interval will be compared against each other based on the selected fields.

  **Available options:**

  * 1 Month
  * 3 Months (Recommended)
  * 6 Months
  * 1 Year

  <mark style="color:red;">**Note**</mark>: A 3-month interval is recommended to ensure optimal performance. Selecting a longer interval may lead to slower dashboard loading times.

  <figure><img src="/files/FHtAB3yC4WiXGXbJkjyT" alt=""><figcaption></figcaption></figure>

## Viewing Duplicate Documents on the Dashboard

Once **Duplicate Detection** is enabled, any documents identified as duplicates will display a duplicate indicator icon on the dashboard.

* Click this icon to open the matching records in a side-by-side split-screen view for easy comparison.\ <mark style="color:red;">**Note**</mark>: The icon will only appear if at least one duplicate has been detected for the document.

  <figure><img src="/files/MmFPd3RVmOixbiGNEPkr" alt=""><figcaption></figcaption></figure>
* When viewing a flagged document, a warning bar will appear at the top, indicating that the document is a duplicate.

  <figure><img src="/files/mjQjqk94jdsqEQnKUGTE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
