Expand my Community achievements bar.

SOLVED

Batch Ingestion API - Large file upload doesn't work

Avatar

Level 2

Hello,

I was trying to initialize a large file (json file) upload using the API as described in the documentation - https://developer.adobe.com/experience-platform-apis/references/batch-ingestion/#tag/Batch-Ingestion...

I am using postman and I get the following output (screenshot attached)

{
    "type""/placeholder/type/uri",
    "status""415",
    "title""Unsupported Media Type",
    "detail""HTTP 415 Unsupported Media Type"
}


Can someone help what's going wrong!


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @sugeshmundayadan  - try to change the content-type as "application/octet-stream" or "multipart/form-data" and see if that works for you. Hopefully, it should work now. 
Refernce: https://experienceleague.adobe.com/docs/experience-platform/ingestion/batch/api-overview.html?lang=e...
Thank you,

Jay.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @sugeshmundayadan - Did you passed in Content-type? Can you send the request here so that it makes it easier to check.

 

Thanks,

Arpan

Avatar

Level 2
Below is the request

curl --request POST 
'https://platform.adobe.io/data/foundation/import/batches/01HCGT9JKQB97GSHFWBF371KMT/datasets/65248f2...Users\t980261\Downloads\test.json?action=INITIALIZE' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XYZ' \
--header 'x-api-key: XYZ' \
--header 'x-gw-ims-org-id: XYZ' \
--header 'x-sandbox-name: XYZ'

Avatar

Correct answer by
Community Advisor

Hi @sugeshmundayadan  - try to change the content-type as "application/octet-stream" or "multipart/form-data" and see if that works for you. Hopefully, it should work now. 
Refernce: https://experienceleague.adobe.com/docs/experience-platform/ingestion/batch/api-overview.html?lang=e...
Thank you,

Jay.

I tried both the option "application/octet-stream" and "multipart/form-data". same issue

Avatar

Employee Advisor

Since you mention you are using postman... did you select the "binary" option in the Body tab, as described here?

https://experienceleague.adobe.com/docs/platform-learn/getting-started-for-data-architects-and-data-...