Batch is Empty Response when create profiles using Bulk Profile Update API v2 | Community
Skip to main content
gabrielj8954766
New Participant
December 9, 2021
Solved

Batch is Empty Response when create profiles using Bulk Profile Update API v2

  • December 9, 2021
  • 1 reply
  • 1086 views

Hi 

 

I'm facing an error that seems to be common, we are trying to send batch updates to Target using API v2, but we see always the same response,

 

<response>
    <success>false</success>
    <visitorId></visitorId>
    <message>Batch is empty</message>
</response>
 
I'm using the following cURL to make the calls, 
 
curl --location --request POST 'https://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate' \
--header 'Authorization: Bearer <<TOKEN>>' \
--data-binary '@BATCH.TXT'
 
The contents of the BATCH.txt file are like this:
batch=thirdPartyId,param1,param2
id1,value1,value1
id2,value2,value2
 
I've search here and find some comments regarding this APÌ isn't working on Postman, so we tried via unix and get the same response, any thoughts in whats are we messing?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Umamaheswari_Yakkala

1.In windows machine install Ubuntu 

2.  cmd --> wsl

3. curl -X POST --header 'Authorization:Bearer xxxx' --data-binary @filesName.txt http://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate 

 

Postman is not working try from Ubuntu prompt.

 

Thank you,

Uma

1 reply

Umamaheswari_Yakkala
Umamaheswari_YakkalaAccepted solution
New Participant
December 9, 2021

1.In windows machine install Ubuntu 

2.  cmd --> wsl

3. curl -X POST --header 'Authorization:Bearer xxxx' --data-binary @filesName.txt http://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate 

 

Postman is not working try from Ubuntu prompt.

 

Thank you,

Uma