HubSpot upsert bug?

Describe the problem/error/question

I am using a Hubspot upsert node. But when trying to send a contact to HubSpot that already exists, I get the error message CONTACT_EXISTS from HubSpot and n8n errors out.

Instead it should update that contact.

This looks like a bug to me.

If it is not a bug, does anyone know how to fix this?

Information on your n8n setup

  • n8n version: 1.117.3
  • Database (default: SQLite): default n8n cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: n8n cloud

yeah, the HubSpot upsert node should handle that automatically - sounds like it might be a config issue rather than a bug. couple things to check:

1. make sure you have the right **lookup field** set in the node settings - it needs to know what field to use to find existing contacts (usually email or hs_object_id)

2. verify the contact actually exists in HubSpot with that exact value - sometimes HubSpot’s data gets weird

3. if youre still getting the error, try using a **Search** node first to check if the contact exists, then use conditional logic to either Create or Update - that’ll give you more control

what field are you using to identify the contact? and does it match exactly between your data and HubSpot?