<?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 Conflict error 409 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998076#M74609</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;I am trying to create contacts using the batch create api. I get the error&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;`{"status":"error","message":"Contact already exists. Existing ID: 20775093475","correlationId":"467b6d05-30d1-4bb5-b097-de74e808dcba","category":"CONFLICT"}`&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;which causes the batch to fail, thus all contacts that are part of this batch are failed to be created. Even though the error says that the Contact already exists, this is not the case, because I've checked my contacts and the ones I'm trying to create dont exist in Hubspot.&lt;BR /&gt;Can you please help?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Jun 2024 07:58:40 GMT</pubDate>
    <dc:creator>Mobydick</dc:creator>
    <dc:date>2024-06-27T07:58:40Z</dc:date>
    <item>
      <title>Conflict error 409</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998076#M74609</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;I am trying to create contacts using the batch create api. I get the error&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;`{"status":"error","message":"Contact already exists. Existing ID: 20775093475","correlationId":"467b6d05-30d1-4bb5-b097-de74e808dcba","category":"CONFLICT"}`&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;which causes the batch to fail, thus all contacts that are part of this batch are failed to be created. Even though the error says that the Contact already exists, this is not the case, because I've checked my contacts and the ones I'm trying to create dont exist in Hubspot.&lt;BR /&gt;Can you please help?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jun 2024 07:58:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998076#M74609</guid>
      <dc:creator>Mobydick</dc:creator>
      <dc:date>2024-06-27T07:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict error 409</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998154#M74613</link>
      <description>&lt;P&gt;How exactly did you check whether the contact exists? You should use the API for that, too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/objects/contacts/20775093475?archived=false' \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also try with archived=true&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 10:27:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998154#M74613</guid>
      <dc:creator>DavidVoigt</dc:creator>
      <dc:date>2024-06-27T10:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict error 409</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998168#M74614</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/262080"&gt;@DavidVoigt&lt;/a&gt;&amp;nbsp;thanks for your reply.&amp;nbsp;&lt;BR /&gt;I tried both archived true/false and the response is:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "status": "error",
    "message": "Object not found.  objectId are usually numeric.",
    "correlationId": "321b6f79-92fc-40fe-9e3a-378a4006500b",
    "context": {
        "id": [
            ":20775093475"
        ]
    },
    "category": "OBJECT_NOT_FOUND"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 11:08:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/998168#M74614</guid>
      <dc:creator>Mobydick</dc:creator>
      <dc:date>2024-06-27T11:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict error 409</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/999156#M74670</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/746903"&gt;@Mobydick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When a contact is permanently deleted vs restorably deleted from your portal HS will store a record of the deletion in the background and prevent you from adding it via the UI or programmatically leading to the errors and inability to look up the contact that you're experiencing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way to get that user back into the portal is for the contact to submit a form the,selves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinC_0-1719720267943.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/120774i037A4B557D99385F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinC_0-1719720267943.png" alt="KevinC_0-1719720267943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, when you tried &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/262080"&gt;@DavidVoigt&lt;/a&gt; 's solution you've accidentally included a colon, thus triggering the error responce ("Object not found. objectId are usually numeric.") you're getting from the request:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinC_1-1719720396789.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/120775i3FB4E9FF31E079FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinC_1-1719720396789.png" alt="KevinC_1-1719720396789.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 04:08:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Conflict-error-409/m-p/999156#M74670</guid>
      <dc:creator>Kevin-C</dc:creator>
      <dc:date>2024-06-30T04:08:12Z</dc:date>
    </item>
  </channel>
</rss>

