APIs & Integrations

kughane
Participant

Batch Update Contact not returning result

We are using batch API to update contacts in bulk. In some cases, the response for the bulk update returns empty "results" array but the status is "Complete". 

 

Attached such response received in Postman

kughane_0-1620748282343.png

Tried with multiple scenarios by providing the wrong contact id, and received an error message which seems to be working fine. Only facing issues with the above-mentioned case.

0 Upvotes
10 Replies 10
vrushaliwaykole
Member

Batch Update Contact not returning result

Did anyone find the solution for this issue? We are also facing the same issue for our hubspot integration.

0 Upvotes
tominal
Guide | Partner
Guide | Partner

Batch Update Contact not returning result

I may be experiencing this on my side as well. I need those IDs from the response results for an integration. We're looking into it, too.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
0 Upvotes
kughane
Participant

Batch Update Contact not returning result

Hi @tominal ,

 

Yes.. I'm also blocked on this, which is needed for my integration too

0 Upvotes
tominal
Guide | Partner
Guide | Partner

Batch Update Contact not returning result

Are your records actually updating all of those properties? I've encountered this before and the results array was empty. The results array should contain the records you're passing in if:

 

  • All records exist
  • All properties exist & are editable

 

 

Hope that helps!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
kughane
Participant

Batch Update Contact not returning result

Hi @tominal , You are right, but the updating individual object using /update/{contactId} API should fail right?

tominal
Guide | Partner
Guide | Partner

Batch Update Contact not returning result

That would be my next check. If it fails in the individual object API then it will probably give you that empty results array in the batch update.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
0 Upvotes
kughane
Participant

Batch Update Contact not returning result

Yes.. So in my case, it is working fine with individual object API

0 Upvotes
tominal
Guide | Partner
Guide | Partner

Batch Update Contact not returning result

In that case, I'm not sure what would cause it off the top of my head.

We should definitely post this on the idea submissions forum if it isn't there already. It is frustrating not receiving results in a batch update with no error.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
dennisedson
HubSpot Product Team
HubSpot Product Team

Batch Update Contact not returning result

Hey @kughane ,

Are you expecting an error here? 

In what sceneario are you getting the empty array?

@tominal , any thoughts?

0 Upvotes
kughane
Participant

Batch Update Contact not returning result

Hi @dennisedson,

 

Are you expecting an error here? 

No, The data given in the request is of no error. I verified it by using the PATCH /crm/v3/objects/contacts/{contactId} API with the same data and it worked fine.

It is expected that the "results" array will have the updated object in it as given below image.

Screenshot 2021-05-12 at 9.00.18 PM.png

 

 

 

 

 

 

 

 

 

In what scenario are you getting the empty array?

Not sure. We need your help in finding the scenario. 

0 Upvotes