Batch Update Contact not returning result

kughane
Participant

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
9 Replies 9
dennisedson
Community Manager

Hey @kughane ,

Are you expecting an error here? 

In what sceneario are you getting the empty array?

@RBThomas , any thoughts?

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
kughane
Participant

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
RBThomas
Top Contributor | Diamond Partner

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!

kughane
Participant

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

RBThomas
Top Contributor | Diamond Partner

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.

0 Upvotes
kughane
Participant

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

0 Upvotes
RBThomas
Top Contributor | Diamond Partner

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.

RBThomas
Top Contributor | Diamond Partner

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.

0 Upvotes
kughane
Participant

Hi @RBThomas ,

 

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

0 Upvotes