APIs & Integrations

CMetaliya
Membro

While Creating Contact It Gives Error That Contact Already Exist

resolver

I'm running through a weird issue. In my nodeJs application I'm trying to create single contact using basicApi.

 

It runs smoother in local environment when I test it using POSTMAN. But in dev environment when I implemented same code it started giving me errors.

Capture.PNG

I'm creating a new contact which doesn't exists in my hubspot GUI. But, when it runs through contact creation logic as you could see in the screenshot below, it gives an error that "contact already exists. Existing ID: 20301" And updates that contact with my given data. Basically, that contact doesn't exists but it still gives me that error and is updating contact that's not same as passed contact object.

 

Moreover, when I create contact in local environment, the contact's source is like this.

1.PNG

But for the dev environment (from where I'm getting an error) , source remains something else like this

2.PNG

 

I don't have any idea why source is different for same task done using same code. Is there any configuration related problems that can be solved? If so, how?

Any help will be highly appreciated.

0 Avaliação positiva
1 Solução aceita
CMetaliya
Solução
Membro

While Creating Contact It Gives Error That Contact Already Exist

resolver

This guy faced a similar issue in past. And his reply worked out well.

 

Here's link to his reply about what he did that solved the issue.

https://community.hubspot.com/t5/APIs-Integrations/Create-contact-is-updating-vid-101/m-p/639633/hig...

Exibir solução no post original

0 Avaliação positiva
3 Respostas 3
CMetaliya
Solução
Membro

While Creating Contact It Gives Error That Contact Already Exist

resolver

This guy faced a similar issue in past. And his reply worked out well.

 

Here's link to his reply about what he did that solved the issue.

https://community.hubspot.com/t5/APIs-Integrations/Create-contact-is-updating-vid-101/m-p/639633/hig...

0 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

While Creating Contact It Gives Error That Contact Already Exist

resolver

@Teun , have you seen anything like this before?

0 Avaliação positiva
Teun
Especialista reconhecido(a) | Parceiro Elite
Especialista reconhecido(a) | Parceiro Elite

While Creating Contact It Gives Error That Contact Already Exist

resolver

Hi @dennisedson ,

 

Nope, this error is completely new to me. I do typically check if a contact exists before trying to create or update the contact to prevent errors.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.