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