# Import Data

> Import contacts, companies, deals, activities and products from CSV into Advanzo CRM: field mapping, sample files, duplicate matching and the skip file.

[Video](https://www.advanzo.ch/docs/assets/video/import-en.mp4)

Map the columns of your old CRM export and import. Duplicates are merged.

You can import data into Advanzo CRM from a correctly formatted and saved **CSV** file. The import supports several resources, including:

- **Deals**
- **Contacts**
- **Companies**
- **Activities**
- **Products**

During the import, Advanzo CRM maps your columns to its fields and validates every row, so that your data ends up in the right place.

> **Warning:** Before you import, make sure that the CSV file is saved in UTF-8 to avoid any encoding issues.

## Import

For all supported [resources](https://www.advanzo.ch/docs/sections/basics), you find the import feature on the index page, for example the contacts table.

- Go to the resource **list view**.
- Click the **ellipsis** button at the top right.
- Click **Import**.

- Download a sample file to see how your rows **must** be structured.
- When your file is ready, upload it to start the import process.

> **Warning:** IMPORT NOTES
> 
> 1. If you import a large amount of data and **have created Zapier zaps with create triggers, we strongly recommend temporarily disabling the zaps in your Zapier account, so that the created records do not trigger thousands of zaps**. This saves the remaining tasks in your Zapier account. We recommend enabling the zaps again 30 minutes after the import.
> 2. We recommend using the same CSV column headings (first row) as in the sample file you downloaded, so that Advanzo CRM can map them to the appropriate fields during upload.
> 3. Any [workflow triggers](https://www.advanzo.ch/docs/sections/workflows) and notifications, such as assignment emails or dashboard notifications, are disabled during import.
> 4. The import file should **not exceed 4000** rows (heading row excluded). If the file has more than the maximum number of rows, split the import into multiple files.

## Using Column Mapping

With column mapping you match the columns of your CSV file with the CRM fields, so that the data is imported into the right fields.

### Preparing for Import

- **Initial Alignment**: Name your CSV column headings after the Advanzo CRM field names to make mapping easier.
- **Flexibility in Mapping**: After the upload, you can adjust the mappings, skip columns or remap as needed.

### Mapping Interface

- **CSV Columns**:

    - The left-hand side displays the columns of your CSV file, with sample data so that you can identify them.
- **CRM Fields**:

    - On the right-hand side, choose the corresponding CRM field for each CSV column.

### Ensuring Accurate Data Is Provided

- **Precise Mapping**:

    - Map each column carefully to the correct CRM field.
- **User/Owner Fields**:

    - For user/owner fields, provide either the **ID** or the **full name** of the user.

> **Danger:** If a user/owner field is required, it must always contain the ID or the full name of the user.

Careful column mapping is the basis for an import without errors.

## Managing Skip Files During Import

Advanzo CRM validates each row during import to keep your data accurate. Rows that fail validation are collected in a skip file, which you can review and correct.

### Understanding the Skip File

On this screen

The skip file is a spreadsheet where the first column, **--Skip Reason--**, states why each row failed (for example, "The e-mail address must be a valid email address."), followed by the original row data columns (First Name, Last Name, E-Mail Address, Phone, Owner, Source).

- **Validation Check**: Each row is checked for required fields and correct formats.
- **Skip File Generation**: Rows that fail validation are listed in a skip file with the reason why they were skipped.

### Reviewing Skipped Rows

- **Skipped Row Insights**:

    - The skip file gives the specific reason for each skipped row, which helps with troubleshooting.
- **Accessing the File**:

    - After the import, find the number of skipped rows in the "**Skipped**" column.
    - Click the "**Why**" link and select "**Download Skip File**" to review details.

### Correcting and Re-uploading Data

- **File Examination**:

    - Open the skip file to understand why certain rows were skipped.
- **Rectifying Data**:

    - Fix the issues named in the skip reasons and save the corrected file.
    - Use the **Upload fixed skip file** button to upload it again.

### Maintaining Import Info

- **Accuracy in Info**:

  If you re-upload the file with **Upload fixed skip file** in the import that generated the skip file, the import info is updated and stays accurate.
- **Example**:

  If an import of 500 contacts results in 450 imported, 20 duplicates and 30 skipped, fixing and re-uploading the 30 skipped contacts updates the "Skipped" count to 0 and "Imported" to 480, assuming no new errors.

## Handling Duplicate Records

- **Companies**, **Contacts**, or **Products**: If the import file contains [unique custom fields](https://www.advanzo.ch/docs/sections/fields#unique-custom-fields), Advanzo CRM first searches for duplicate records based on the values of these fields. If a duplicate record is found, it is updated.
- **Contacts**: If a contact with the same **email** or **phone number** already exists, the contact is updated with the new values from the import file.
- **Products**: If a product with the same **name** or **SKU number** already exists, the product is updated with the new values from the import file.
- **Companies**: If a company with the same address (street, city, state, zip/postal code, country) or email already exists, the company is updated with the new values from the import file.
- If a duplicate record is found and this record is in the [trash](https://www.advanzo.ch/docs/sections/basics#trashed-records), the record is restored from the trash.

## Reverting an Import

With the "revert import" feature you can quickly undo a recent import.

### How to Revert an Import

- **Revert Availability**: You can revert an import within 24 hours of its completion.
- **Applies To**: Reverting only applies to new records added from a CSV file; updates or duplicates are not affected.
- **Identify Revertible Imports**:

    - Look for a red **Revert** action link next to the import's record count.

### Reverting Process

1. **Select the Import**: Find the import you wish to undo.
2. **Initiate Revert**: Click the **Revert** link next to the relevant import.
3. **Confirm Action**: Confirm the revert when prompted.

> **Warning:** NOTE
> 
> Reverting an import permanently removes the newly added records. They are not moved to the trash but deleted permanently.

## Common Issues and Solutions in Data Import

This section helps you solve common problems with the data import in Advanzo CRM.

### Records Are Not Importing

If records are not imported:

- **Alternative CSV Generation**:

    - Use [Google Drive](https://drive.google.com/) to export your data as a CSV file.
    - This issue is often caused by conflicts with other software.

### All Rows Imported Into One Field

This formatting issue is caused by an incorrect CSV file structure:

1. **File Editing**:

    - Open your CSV file in a reliable text editor.
2. **Correct Formatting**:

    - Save the file with a comma as the separator.
3. **Reference Sample File**:

    - Advanzo CRM provides a sample CSV file as a format reference.
    - Following this format helps to avoid such issues.

These steps resolve the most common import problems.
