Getting error when trying to create profiles using Bulk Profile Update API v2 in Sandbox environment | Community
Skip to main content
New Participant
July 10, 2020
Solved

Getting error when trying to create profiles using Bulk Profile Update API v2 in Sandbox environment

  • July 10, 2020
  • 3 replies
  • 2921 views

Hi guys,

 

We are trying to create some test profiles in our sandbox environment, and in order to do that we are executing the following command for calling the Batch Update profile API v2 (according to Adobe Target docs, that should be possible with v2 of the API):

 

curl  --request POST --header 'Authorization: Bearer <ACCESS_TOKEN>' \
      --data-binary '@BATCH.txt' \
      'http://OUR_CLIENT_ID.tt.omtrdc.net/m2/OUR_CLIENT_ID/v2/profile/batchUpdate'

 

The contents of the BATCH.txt file are like this:

 

batch=thirdPartyId,param1,param2,param3

1,TestValue11,TestValue12,TestValue13

2,TestValue21,TestValue22,TestValue23

3,TestValue31,TestValue32,TestValue33

 

And we are getting this error:

 

<response>
    <success>false</success>
    <visitorId></visitorId>
    <message>Batch is empty</message>
</response>

 

We’ve also tried with a file like this (using pcId instead of thirdPartyId)

 

batch=pcId,param1,param2,param3

1,TestValue11,TestValue12,TestValue13

2,TestValue21,TestValue22,TestValue23

3,TestValue31,TestValue32,TestValue33

 

And we get the same error as above. So, we want to understand what this error means, maybe we are missing something, so does any of you guys have an idea of why this is happening?

 

Thanks!

 

 

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

Problem resolved.

 

3 replies

Umamaheswari_Yakkala
Umamaheswari_YakkalaAccepted solution
New Participant
March 5, 2021

Problem resolved.

 

ambikaTewari_ATCI
New Participant
March 6, 2021

Hi @umamaheswari_yakkala can you advise how were you able to solve this ? I am also getting the same error

Umamaheswari_Yakkala
New Participant
March 4, 2021

I am also facing the same problem. 

 

Could you please let me know the solution if the problem is resolved.

 

Thank You

 

gabrielj8954766
New Participant
December 9, 2021

Hi @umamaheswari_yakkala how you fixed it?

 

I'm facing exactly the same issue here, and Postman or Unix cURL commands are firing the "Batch is empty" response.

jossh89604542
New Participant
October 16, 2020

Hi @annieactioniq

We are seeing the same thing when using postman to achieve a bulk upload, seems like it doesn't matter whether the file is attached or not, I get the same result even when attaching an image to the request.

Unfortunately we have not come up with a solution but I will be up voting this one considering there is no explanation or direction in regards to what to do once receiving this error. 

Hopefully we get a response.

Thanks,

joss