<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Merging contacts not possible in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Merging-contacts-not-possible/m-p/856111#M67768</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our company has created a third party hubspot app and it is used by our customers to enrich their contact data with data from our system and other data that we collect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We try to match a contact based on information from our system and if we can't find a contact, we create a new one in the hubspot account of our customers and add data from our system to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also collect the hubspotutk cookie from the website visitors of our customer and we try to add data from that cookie to the contact the we have matched or created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do this by finding the contact that is associated with the hubspotutk cookie and then we merge it with the contact that we have created or matched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the following endpoints for the process that is described above:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/contacts/v1/contact/utk/{$utk}/profile&lt;/LI&gt;&lt;LI&gt;/contacts/v1/search/query'&lt;/LI&gt;&lt;LI&gt;/submissions/v3/integration/submit/{$portal_id}/{$form_guid}&lt;/LI&gt;&lt;LI&gt;/contacts/v1/contact/merge-vids/{$id}&lt;/LI&gt;&lt;LI&gt;/contacts/v1/contact (to create a new contact)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For one of our customers it seems that it is not possible to merge contacts. We keep gettiing the error following error: '&lt;SPAN&gt;&lt;SPAN&gt;vid&amp;nbsp;to&amp;nbsp;merge&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;valid&amp;nbsp;contact&amp;nbsp;or&amp;nbsp;is&amp;nbsp;already&amp;nbsp;in&amp;nbsp;the&amp;nbsp;process&amp;nbsp;of&amp;nbsp;being&amp;nbsp;merged'.&lt;BR /&gt;&lt;BR /&gt;Also here is a correlation ID for a request that got the above error response: '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;a6c7ddef-888d-4035-a0a5-7f3530fe896b'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me to find out what the problem is?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 13:30:42 GMT</pubDate>
    <dc:creator>Manno</dc:creator>
    <dc:date>2023-09-27T13:30:42Z</dc:date>
    <item>
      <title>Merging contacts not possible</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Merging-contacts-not-possible/m-p/856111#M67768</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our company has created a third party hubspot app and it is used by our customers to enrich their contact data with data from our system and other data that we collect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We try to match a contact based on information from our system and if we can't find a contact, we create a new one in the hubspot account of our customers and add data from our system to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also collect the hubspotutk cookie from the website visitors of our customer and we try to add data from that cookie to the contact the we have matched or created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do this by finding the contact that is associated with the hubspotutk cookie and then we merge it with the contact that we have created or matched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use the following endpoints for the process that is described above:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;/contacts/v1/contact/utk/{$utk}/profile&lt;/LI&gt;&lt;LI&gt;/contacts/v1/search/query'&lt;/LI&gt;&lt;LI&gt;/submissions/v3/integration/submit/{$portal_id}/{$form_guid}&lt;/LI&gt;&lt;LI&gt;/contacts/v1/contact/merge-vids/{$id}&lt;/LI&gt;&lt;LI&gt;/contacts/v1/contact (to create a new contact)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For one of our customers it seems that it is not possible to merge contacts. We keep gettiing the error following error: '&lt;SPAN&gt;&lt;SPAN&gt;vid&amp;nbsp;to&amp;nbsp;merge&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;valid&amp;nbsp;contact&amp;nbsp;or&amp;nbsp;is&amp;nbsp;already&amp;nbsp;in&amp;nbsp;the&amp;nbsp;process&amp;nbsp;of&amp;nbsp;being&amp;nbsp;merged'.&lt;BR /&gt;&lt;BR /&gt;Also here is a correlation ID for a request that got the above error response: '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;a6c7ddef-888d-4035-a0a5-7f3530fe896b'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me to find out what the problem is?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:30:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Merging-contacts-not-possible/m-p/856111#M67768</guid>
      <dc:creator>Manno</dc:creator>
      <dc:date>2023-09-27T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging contacts not possible</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Merging-contacts-not-possible/m-p/857397#M67848</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/406266"&gt;@Manno&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; This one is definitely challenging to diagnose. The correlation ID will be useful if your customer has access to support.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is this issue happening every time? Or is it intermittent?&lt;/LI&gt;
&lt;LI&gt;Have you tried &lt;A href="https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Troubleshooting-Toolkit-Collecting-a-HAR-file-and-Trace/m-p/20103" target="_blank" rel="noopener"&gt;capturing a HAR file&lt;/A&gt; while triggering the error? Occasionally, HubSpot will dump more details, and we can capture them with a HAR file. &lt;A href="https://toolbox.googleapps.com/apps/har_analyzer/" target="_blank" rel="noopener"&gt;HAR Analyzier&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Other things to check:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are these contacts in use by another system?&lt;/LI&gt;
&lt;LI&gt;Are there already slight delays built in to help avoid any potential race conditions?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this is only happening to one portal and not others, you may need to have them check if users, roles, or access to specific scopes have changes with that portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 16:33:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Merging-contacts-not-possible/m-p/857397#M67848</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-09-29T16:33:10Z</dc:date>
    </item>
  </channel>
</rss>

