# Importing historical emails

**URL:** <https://community.hubspot.com/t/importing-historical-emails/87073>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** workaround\
**Created:** [August 9, 2023, 3:14am UTC](https://community.hubspot.com/t/importing-historical-emails/87073 "2023-08-09T03:14:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![KMcgill2512](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@KMcgill2512](https://community.hubspot.com/u/KMcgill2512)\
**Post date:** [August 9, 2023, 3:14am UTC](https://community.hubspot.com/t/importing-historical-emails/87073/1 "2023-08-09T03:14:22Z")

</div>

Hello,

I am working on importing a csv of historical emails into sales hub from salesforce.

I keep running into duplication errors because I’m mapping to the Contact Record ID.

Is there a way I can import multiple emails for the same contact?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [August 9, 2023, 3:54am UTC](https://community.hubspot.com/t/importing-historical-emails/87073/2 "2023-08-09T03:54:48Z")

</div>

Hi @KMcgill2512,

Which error exactly are you seeing? Could you please share a screenshot of your import file, blurring confidential information?

Best regards

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [August 9, 2023, 3:58am UTC](https://community.hubspot.com/t/importing-historical-emails/87073/3 "2023-08-09T03:58:35Z")

</div>

Hi @KMcgill2512

What objects are you importing and what are your import file headings?

Also how are you importing the file? It should be one file, multiple objects which would allow you to associate multiple emails with a contact record.

Let me know.

Frank

---

<div class="post-metadata">

**Author:** ![KMcgill2512](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@KMcgill2512](https://community.hubspot.com/u/KMcgill2512)\
**Post date:** [August 9, 2023, 2:53pm UTC](https://community.hubspot.com/t/importing-historical-emails/87073/4 "2023-08-09T14:53:07Z")

</div>

Hi,

I am using one file and adding/updating contacts and only adding new emails.

The fields that I am importing are:

- Email Address

- Record ID (Contacts)

- Salesforce Historical ID

- Company Name

- From Address

- Date

- Subject

- Direction

- Email Body

- Status

- Owner (Contact Owner)

The error I am recieving is duplicate unique property value for email.

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [August 10, 2023, 2:27pm UTC](https://community.hubspot.com/t/importing-historical-emails/87073/5 "2023-08-10T14:27:40Z")

</div>

Hi @KMcgill2512

Which option have you selected in this step of the import process?

You need to select multiple objects as you have contacts and historic emails.

I just tested this in my portal and it worked fine, see screenshots below.

 ![Screenshot 2023-08-10 at 16.21.43.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/c/bcb9718837a455d64388a5e79dd6645b1b4b30cb.png)  
Email Import File Example

The email import file example.

 ![Screenshot 2023-08-10 at 16.25.55.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/8/d8515bcf5780668cf96dbf01c748aa9e59eaa28b.png)  
Emails on the contact record

The emails on the contact record.

Hope that helps.

Frank

---

<div class="post-metadata">

**Author:** ![KMcgill2512](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@KMcgill2512](https://community.hubspot.com/u/KMcgill2512)\
**Post date:** [August 10, 2023, 3:07pm UTC](https://community.hubspot.com/t/importing-historical-emails/87073/6 "2023-08-10T15:07:55Z")

</div>

Thanks for checking, Frank.

One of the issues I think I am running into is that the subject lines are the same because the emails are repeated but sent at different times.

---

<div class="post-metadata">

**Author:** ![franksteiner79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franksteiner79/32/34443_2.png) [@franksteiner79](https://community.hubspot.com/u/franksteiner79)\
**Post date:** [August 10, 2023, 3:13pm UTC](https://community.hubspot.com/t/importing-historical-emails/87073/7 "2023-08-10T15:13:55Z")

</div>

@KMcgill2512

I don’t think so.

The error message you are seeing indicates that you are trying to import just one object, and the object is a contact. Therefore HubSpot will say "hey you just imported contact xzy with email [xzy@abc-company.com.](mailto:abc@xzycompany.com) You can have multiple emails with the same subject, that wouldn’t cause an error.

If you run a multi-object import HubSpot you are telling the import, it’s fine because I am also importing another object that needs to be associated with the contact.

Frank
