SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

HubSpot Contact Company Association Fails with 404 Error

Issue

When using the Segment HubSpot Cloud Mode (Actions) destination, your contacts and companies may update successfully, but they fail to associate with each other, resulting in a 404 error. During the association step, you will see an error from HubSpot stating No contact with ID [contact_id] exists. This happens when a contact is deleted and recreated in HubSpot, but the same userId is used in Segment.

 

Product

Twilio Segment

 

Environment

Segment Console

 

Cause

The HubSpot Cloud Mode destination maintains an internal mapping between the Segment userId and the HubSpot contact ID. This mapping persists even if the contact is deleted directly inside HubSpot. When you reuse the original userId in Segment, the destination attempts to perform the association using the old, stale HubSpot contact ID, causing HubSpot to return a 404 error because that ID no longer exists. There is currently no self-service method to manually reset or clear this internal mapping.

 

Resolution

To resolve this error and successfully associate the contact with the company, you must force Segment to generate a fresh mapping by using a new identifier.

  1. Update the userId to a new, unique value for the affected contact within your environment.

  2. Send a new identify or group event from Segment using this updated userId.

 

Have more questions? Submit a request
Powered by Zendesk