# If Imported Document already exists

**YouTube:** [How to Globally Configure Overwrite Rules for Imported Stock Transfer Document?](https://www.youtube.com/watch?v=z8Ur3Hm19_4)

## How to Globally Configure Overwrite Rules for Imported Stock Transfer Document?

In this tutorial, we will explore an important **global option in Logic ERP** that helps prevent **duplicate entries** when importing stock documents.

***

### Configure Duplicate Entry Handling

* Open **Logic Admin**.
* Navigate to **Global Settings** and then select **Import/Export Settings**.
* Locate the option labeled as:

> **“If Imported Document already exists”**.

* This option provides three modes of operation:
  * **Prompt (Default)**
  * **Override without Prompting**
  * **Skip without Prompting**

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

* Save the settings and **restart the software** for changes to take effect.

***

### Understanding Each Option

#### **Prompt (Default Mode)**

* Behavior: If a document already exists, the system **displays a confirmation prompt** when attempting to re-import it.
* Example:
  * Go to **Utilities → Import Stock Transfer Document**.
  * Try importing a stock transfer that was already imported.
  * The system immediately triggers a **message**:\
    \&#xNAN;*“This voucher from the respective branch has already been transferred.”*

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

***

#### **Override without Prompting**

* Behavior: The system **automatically replaces existing data** without any confirmation.
* Example:
  * In the **Head Office**, create a stock transfer with a **quantity of 4**, then export it.
  * Import it into the **Maduka branch**.
  * Back in Head Office, update the same document to **quantity 10** and re-export.
  * Import again in Maduka.
  * Result → The system directly **overrides the old data**, updating the quantity to **10** without showing any prompt.

***

#### **Skip without Prompting**

* Behavior: The system **ignores duplicate entries** silently and does not update the existing data.
* Example:
  * In Head Office, update the same stock transfer to **quantity 20** and re-export.
  * Import it into the Maduka branch.
  * Result → The import runs silently, but the quantity remains at **10**, confirming that the system **skipped the duplicate entry**.

***

### Key Benefits

* Ensures **data accuracy** by controlling duplicate imports.
* Provides **flexibility** with three handling modes (Prompt, Override, Skip).
* Helps avoid **manual errors** and **duplicate stock mismatches** across branches.


---

# 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://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/import-export/general/if-imported-document-already-exists.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.
