question

Roshan-4751 avatar image
0 Votes"
Roshan-4751 asked SaurabhSharma-msft commented

Passing file to REST API using azure data factory

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
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @roshan-4751,
Thanks for using Microsoft Q&A !!
Can you please share the API endpoint which you are using for PUT if that is publicly available ?
Also, what kind of file you are trying to send and what's the size of the file ?

Thanks
Saurabh

0 Votes 0 ·

Hi @roshan-4751,

We haven't heard back from you. Just wanted to check if you are you still facing the issue? In case If you already found a solution, would you please share it here with the community? Otherwise, let us know and we will continue to engage with you on the issue.

Thanks
Saurabh

0 Votes 0 ·

0 Answers