APIs & Integrations

mpj567
Member

Error in Contact-Company Association

SOLVE

When using the v3 endpoint, I seem to randomly receive "There was a problem with the request." error messages. 

Below is the body of my request and the response:

Request:

{
  "inputs": [
    {
      "from": {
        "id""192039"
      },
      "to": {
        "id""4363133324"
      },
      "type""contact_to_company"
    }
  ]
}

Response:

{
    "status""error",
    "message""There was a problem with the request.",
    "correlationId""5967294d-d223-43e7-a393-40e21f342f57"
}


 

0 Upvotes
1 Accepted solution
mpj567
Solution
Member

Error in Contact-Company Association

SOLVE

Hi @WendyGoh, I appreciate the response!

I got a hunch of what it was based on some old forum posts about limits to contact-company associations being set at 10000. I also contacted Hubspot support to see if they could confirm for me.

The v3 API Endpoint has a bug in it where it doesn't properly report the error it should in this case, there is in fact a limit of 10,000 associations for Contacts-Companies, previous versions of the endpoint reported this specific text in the error message, but the v3 endpoint doesn't which led to my intial confusion. I got confirmation as well from Hubspot support that this limit exists. 

For reference this is the error text from the v1 endpoint, which should be, but is not, displayed on the v3 endpoint:

{
    "status""error",
    "message""One or more associations are invalid",
    "correlationId""3425b96c-fd8f-4897-ab45-12f739032ad8",
    "errors": [
        "Exceeded association limit of 10000 for portalId xxxxxxx, fromObjectId 4363133324, associationType COMPANY_TO_CONTACT"
    ]
}



View solution in original post

0 Upvotes
2 Replies 2
WendyGoh
HubSpot Employee
HubSpot Employee

Error in Contact-Company Association

SOLVE

Hey @mpj567,

 

What's the exact request url that you're using?

 

On my end, when I send the following:

 

POST https://api.hubspot.com/crm/v3/associations/contact/company/batch/create

 

with this POST body

 

{
  "inputs": [
    {
      "from": {
        "id": "137001"
      },
      "to": {
        "id": "4193241615"
      },
      "type": "contact_to_company"
    }
  ]
}

 

I'm seeing a 201 created complete response. 

0 Upvotes
mpj567
Solution
Member

Error in Contact-Company Association

SOLVE

Hi @WendyGoh, I appreciate the response!

I got a hunch of what it was based on some old forum posts about limits to contact-company associations being set at 10000. I also contacted Hubspot support to see if they could confirm for me.

The v3 API Endpoint has a bug in it where it doesn't properly report the error it should in this case, there is in fact a limit of 10,000 associations for Contacts-Companies, previous versions of the endpoint reported this specific text in the error message, but the v3 endpoint doesn't which led to my intial confusion. I got confirmation as well from Hubspot support that this limit exists. 

For reference this is the error text from the v1 endpoint, which should be, but is not, displayed on the v3 endpoint:

{
    "status""error",
    "message""One or more associations are invalid",
    "correlationId""3425b96c-fd8f-4897-ab45-12f739032ad8",
    "errors": [
        "Exceeded association limit of 10000 for portalId xxxxxxx, fromObjectId 4363133324, associationType COMPANY_TO_CONTACT"
    ]
}



0 Upvotes