# Contact merge is not working according to defined unique identifier field

**URL:** https://forum.mautic.org/t/contact-merge-is-not-working-according-to-defined-unique-identifier-field/28776
**Category:** Product Support
**Tags:** mautic-3
**Created:** [July 31, 2023, 11:06am UTC](https://forum.mautic.org/t/contact-merge-is-not-working-according-to-defined-unique-identifier-field/28776 "2023-07-31T11:06:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jaydeep121](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@jaydeep121](https://forum.mautic.org/u/jaydeep121)
#### Post date: [July 31, 2023, 11:06am UTC](https://forum.mautic.org/t/contact-merge-is-not-working-according-to-defined-unique-identifier-field/28776/1 "2023-07-31T11:06:01Z")

</div>

**System Information**  
Mautic version: 3.2.0  
PHP version: 7.2

**Problem**  
Mautic provides contact merging feature [Contact duplicates](https://docs.mautic.org/en/contacts/manage-contacts#contact-duplicates)

According to documentation I have set one custom field (c\_hashkey) as unique identifier. I am creating/updating contacts via API and they do have unique c\_hashkey. Still they are merged and keep updated with reference of same contact.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7c17554844767ae9fa91063129d9476b243c4cb4.png)  
As shown in above screenshot, c\_haskey is unique everytime but the same contact is getting updated everytime.

Also there is not any other field which is same to the old data, Still it it getting merged repeatedly.

Can anyone explain on what basis the contacts are merged and why it is still happening even after providing unique data for unique identifier(c\_hashkey)?
