Status 400: Contact activity *** did not update. There is somethind wrong

Greetings,

We using your API in pair with our website and for some reason we getting an error from API: “Hubspot: Error Unknown: Status 400: Contact activity ****@.com did not update. There is somethind wrong.”

Log file says that we recieved the message from the client and Hubspot finding any matches in database if not he creating a new contact: Hubspot: “201, Success: Contact *********@gmail.com created.” - this step is working fine on our system.

Next stage is where sending information to hubspot with timestamp and owner_id and comment, actually here we have an error:

Hubspot: Error Unknown: Status 400: Contact activity *********@gmail.com did not update. There is somethind wrong.

Respond: {“status”:“error”,“message”:“Property values were not valid: [{\“isValid\”:false,\“message\”:\“128351058 was not a valid owner ID\”,\“error\”:\“INVALID_OWNER_ID\”,\“name\”:\“hubspot_owner_id\”}]”,“correlationId”:“b5f5335f-67fa-4016-b11a-8fd69b5c242b”,“category”:“VALIDATION_ERROR”

production.INFO: Hubspot: Responce Add Note

Array

[status_code] => 400
[response] => {“status”:“error”,“message”:“Property values were not valid: [{\“isValid\”:false,\“message\”:\“128351058 was not a valid owner ID\”,\“error\”:\“INVALID_OWNER_ID\”,\“name\”:\“hubspot_owner_id\”}]”,“correlationId”:“b5f5335f-67fa-4016-b11a-8fd69b5c242b”,“category”:“VALIDATION_ERROR”}
[is_success] =>

Can you help us with this error?

Thanks in advance.

Hi @sigma01 ,

The error is quite clear, the owner ID you are submitting is not valid. If you edit a user in HubSpot, you can see the ID of the user in the URL. Try double checking if 128351058 is the correct value.