> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/sharepoint-security-sync/features/override-files.md).

# Override Files

Suppose a file already exists in a SharePoint folder and the user attempts to migrate the same file using the Attach2Dynamics UI, real-time or through bulk migration. In that case, the outcome will depend on the **"Override file"** configuration. If this setting is checked, the existing file will be overwritten. If unchecked, a new file version will be added with a version number.

## Configuration

### Unchecked

By default, the "**Override file**" setting is unchecked, as indicated in the screenshot.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FbYkKcrZYK3dwApeOh9nJ%2F1.png?alt=media&amp;token=5450de77-17bf-43ca-8348-5d27aa7d890a" alt=""><figcaption></figcaption></figure>

In this scenario, if a file already exists in a SharePoint folder and a user attempts to migrate a file with the same name (or the same file, or two files with the same name simultaneously) using either real-time or the Attach2Dynamics UI:

* **Real-time**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FVzyHYW1UtIuzVBXXyWwE%2F2.png?alt=media&amp;token=ebcb0cfd-3328-46ff-b480-9fe1b88dea3e" alt=""><figcaption></figcaption></figure>

* **Attach2Dynamics UI**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FIaDgBugee8goCpBouNNu%2F3.png?alt=media&amp;token=e2402fb2-ef94-42b3-9409-2d6c586a5501" alt=""><figcaption></figcaption></figure>

On SharePoint, a new file with a version number gets appended.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fy6aDlD6g13erDlHDZzVi%2F4.png?alt=media&amp;token=c2e4036a-f56e-403f-a245-31a83099ac71" alt=""><figcaption></figcaption></figure>

### Checked

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FZMYlh2O2WkGkkYSCuh0Q%2F5.png?alt=media&amp;token=491921b0-bfc7-41cf-9006-874fd230f09e" alt=""><figcaption></figcaption></figure>

If the user enables the "Override files" setting for migration when encountering files with the same name in a SharePoint folder, the following occurs:

* **Real-time**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F0XPDfurbeo3W2Vjthk7Z%2F6.png?alt=media&amp;token=cd26d60b-1253-4702-b46f-980932f76294" alt=""><figcaption></figcaption></figure>

* **Attach2Dynamics UI**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FsK3oxjKSZ3TTjhDVpCKG%2F7.png?alt=media&amp;token=fa8ae11d-1186-4fdf-9081-7b4df424031b" alt=""><figcaption></figcaption></figure>

This setting ensures that the latest version of the file is always migrated and replaces any existing file with the same name in SharePoint.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FyitnE4xLRneDlEj3VtgI%2F8.png?alt=media&amp;token=54a8d19f-2f3a-4506-bfae-e5c87a4cef21" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** This is across both the Attach2Dynamics UI, bulk migrations, and real-time migrations.
{% endhint %}
