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?
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?