# Preventing Duplicate lead import

**URL:** <https://forum.mautic.org/t/preventing-duplicate-lead-import/1697>\
**Category:** Product Support\
**Created:** [March 26, 2015, 11:55pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697 "2015-03-26T23:55:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![relbud](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@relbud](https://forum.mautic.org/u/relbud)\
**Post date:** [March 26, 2015, 11:55pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/1 "2015-03-26T23:55:24Z")

</div>

Hi,  
  
  
  
On a new install of mautic on Allyde, I successfully imported a lead list. I have a number of lists from different places, and have some duplicates on those lists.  
  
When I imported a second list, I found that there were duplicates with exactly the same details in the list.  
  
  
  
Is there a way to prevent duplicate leads (keyed perhaps on email address) from being imported?  
  
  
  
Thanks,  
  
Ariel

---

<div class="post-metadata">

**Author:** ![relbud](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@relbud](https://forum.mautic.org/u/relbud)\
**Post date:** [March 26, 2015, 11:55pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/2 "2015-03-26T23:55:24Z")

</div>

Hi,

On a new install of mautic on Allyde, I successfully imported a lead list. I have a number of lists from different places, and have some duplicates on those lists.  
When I imported a second list, I found that there were duplicates with exactly the same details in the list.

Is there a way to prevent duplicate leads (keyed perhaps on email address) from being imported?

Thanks,  
Ariel

---

<div class="post-metadata">

**Author:** ![Dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@Dale](https://forum.mautic.org/u/Dale)\
**Post date:** [March 27, 2015, 12:49pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/3 "2015-03-27T12:49:07Z")

</div>

HI Ariel,

I don’t have your answer, but noticed something similar. I was on a Google Hangouts webinar where they indicated that Mautic should merge leads automatically.

I observed this functionality didn’t work. Not sure if it’s a bug or a setting somewhere.

Dale

---

<div class="post-metadata">

**Author:** ![chad.windnagle](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chad.windnagle](https://forum.mautic.org/u/chad.windnagle)\
**Post date:** [March 30, 2015, 1:34pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/4 "2015-03-30T13:34:25Z")

</div>

Hi Relbud and Dale

The importer keys for duplicates off of the ‘email’ field. So if you had two leads with the same email they would have been merged, assuming you mapped the CSVs ‘email’ field to Mautic’s email field. Can you try again and let me know if that doesn’t happen? If it doesn’t work, maybe you can send us (privately) the two CSVs and we can try with a test site and see if they aren’t merging correctly.

---

<div class="post-metadata">

**Author:** ![loanatik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/loanatik/32/1923_2.png) [@loanatik](https://forum.mautic.org/u/loanatik)\
**Post date:** [July 27, 2016, 1:03am UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/5 "2016-07-27T01:03:01Z")

</div>

In addition to not allowing duplicate email addresses, wouldn’t it make sense to create a matchcode and eliminate or merge dupes based on the code?

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 11:00pm UTC](https://forum.mautic.org/t/preventing-duplicate-lead-import/1697/6 "2020-02-02T23:00:34Z")

</div>


