Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
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