Expand my Community achievements bar.

Join Cristinel Anastasoaie, Timothy Furlow, and Brent Kostak, WEDNESDAY, 2/28/24 @8am PT for the next Adobe Target Community Q&A Coffee Break on topics from the recent High Performance Recommendations Webinar PT 2 of the ongoing Target Personalization Maturity Webinar Series
SOLVED

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

Avatar

Level 1

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?
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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