Distinct contacts with the same email


#1

Hi,

Every day, we save an export of all our Hubspot contacts (using the API method GET /contacts/v1/lists/all/contacts/all). We use these exports to synchronise the contacts between different CRMs.

We thought that, in Hubspot, two contacts cannot have the same email. We built our system with this hypothesis.
However, between 2016-07-03 and 2016-08-11, we had several cases with 2 contacts having the same email.
It was sometimes a bit more weird: the contacts were actually merged, having the same “canonical-vid”, different “vid”, and all were still returned by the API distinctly.

Here are my questions:

  • Do two distinct contacts can have the same email?
  • When contacts are merged, are they all returned (all the “vid” values) by the API or is only one returned (the “canonical-vid” one)?
  • Did you have an issue between 2016-07-03 and 2016-08-11?
  • Did you merged contacts (with the same email) on your side automatically (between 2016-07-03 and 2016-08-11)?

Thanks a lot,
Jeremy


#2

Hi @jereze

Email addresses in HubSpot are unique, so you won’t have two different records with the same email. In the cases where you have two vids with the same email and same canonical-vid, those separate vids just act as pointers to the same record. In those cases, the canonical-vid is the main vid for the record that you’ll get from the API (such as when pulling all contacts or recent contacts), but both vids still point to the record, so getting the record by id with either vid will still get the record.


#3

Thanks @dadams for your answer.

I’m glad that you confirm that email addresses are unique in Hubspot.
I do understand that merged contacts share a common canonical-vid, but still have their original vid.

I have two remaining questions. They are important for us, because, as I said, we have a full synchronisation system based on the results provided by Hubspot API. We had in the last weeks several issues that we try to deeply understand.

  1. In a normal behaviour, does the API method GET /contacts/v1/lists/all/contacts/all return contacts that point to another contact (ie., they have: vid != canonical-vid)?

  2. Also, beginning of July, can you confirm that there was an unusual situation, or a bug? For example, on July 5th, I had the two following contacts with the same email (I cleared most of the json for anonymity, but I can send you by email the full jsons) given by the API method GET /contacts/v1/lists/all/contacts/all:

    {
    “addedAt”: 1461170242046,
    “canonical-vid”: 508751,
    “vid”: 508751
    }
    {
    “addedAt”: 1467518520704,
    “canonical-vid”: 2086004,
    “vid”: 2086004
    }


#4

Should I ask these questions to the support team?


#5

Sorry @jereze, thought I previously replied to this.

The GET /contacts/v1/lists/all/contacts/all endpoint should only return records where the vid is equal to the canonical-vid. I didn’t see any recent reports that indicated that this happened, but are you seeing that with a portal now?

Can you send me your Hub ID so I can take a look at those two vids? I’d need to see the full context of the records.


#6

1/ No, that’s no longer happening, but that was beginning of August.

2/ Our Hubspot ID: 2123903
For this contact, the problem was around July 5th - July 7th.

Thanks @dadams!


#7

Thanks @jereze. We have have an issue on July 3 that resulted in cases where duplicate contacts could be created with the same email address. After that was fixed, we ran a cleanup job to merge those records with duplicate emails, and that cleanup job was completed on July 6, so it would have been possible to see duplicates on July 5.


#8

Hi @dadams,

I currently have a case where that’s not the case.
The API currently returns (for Hubspot ID: 2123903) the following two contacts:

{
  "canonical-vid": 5932301,
  "portal-id": 2123903,
  "vid": 2086072,
  "profile-url": "https://app.hubspot.com/contacts/2123903/lists/public/contact/_AO_T-mOWaPn2iU9eVV6zsvGTiaLZ2N_-GdzKen0gK7De3K2eqM6TW0PcERGbRn7gn-9p5PaLF7Tjhcqcs9HshBV4QXOmyq9VglZBCV5DzSHCKSA8N3OP5QYPQItpmvD7xBjuhlHmYGFZ/",
  "addedAt": 1467518520984,
  ...
}

{
  "canonical-vid": 5932301,
  "portal-id": 2123903,
  "vid": 5932301,
  "profile-url": "https://app.hubspot.com/contacts/2123903/lists/public/contact/_AO_T-mOELCejmUA0THW8mPPnmvW0mR482xqqDeGZF_WQXrHH40hwBNKx1G6cLkxcCB9DdqOqlAsSSV9jSPZIXVSKo0iMDP8sXeAkaQ1rxI5a77CorePrHUjpL1FMN8ONmt4Cez1xgdHk/",
  "addedAt": 1478689810335,
  ...
}

Could you have a look at it please?

Regards,
Jeremy


#9

I’m seeing the same thing in that portal looking at it now. I would not expect to see that same record show up twice like that, so I’m sending this along to our Contacts team to take a look at.


#10

Hi @dadams,
Any answer from your Contacts team?
Thanks.


#11

Hi @dadams,

Bis repetita :slight_smile:


#12

Sorry for the delay @jereze, our contacts team just finished a cleanup job that that removed that duplicate entry, so you shouldn’t see this again.


#13

Thanks @dadams. Do you know if there is any particular/identified reason for that duplicate?


#14

There aren’t actually two different records, just two different pointers to the same record. Normally any duplicate pointers(vids) get removed so you only see the canonical vid when pulling those records, but there was an issue with the job that cleans up those pointers. We’ve fixed the issue with that job and also cleaned up any duplicate pointers it missed.