Passing file to REST API using azure data factory

Roshan 1 Reputation point
2021-10-22T10:28:38.487+00:00

We are trying to send file to rest api using PUT request using web activity in ADF with below settings but not able to send file successfully, Any suggestion are welcome

Error code : 2108
Troubleshooting guide
Failure typeUser configuration issue
Details{"data":null,"messages":[{"message":"Unexpected end of Stream, the content may have already been read by another component. ","type":"Error"}]}
Source
Pipeline

Headers
Authorization :Bearer xxxxxxxxxx
Content-Type :multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
X-TENANT-ID :___________________________

Body
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="Data.File"; filename="test_file.csv"
Content-Type: text/csv

activity('Read_File_Content').output.Response
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="type"

application/vnd.ms-excel
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="Data.TableName"

Company
----WebKitFormBoundary7MA4YWxkTrZu0gW

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,609 questions
{count} votes