The error you are encountering indicates a conflict with the Content-Type
header when using the REST connector in Azure Data Factory. The REST connector automatically sets the Content-Type
header to application/json
and ignores any Accept
header specified in additionalHeaders
. Unfortunately, this means that you cannot customize the Content-Type
header for requests made through the REST connector.
If you need to use a different Content-Type
, you might consider alternative methods such as using a web activity or an Azure function, as you mentioned. However, these alternatives may not support the same data size limitations as the copy activity.
References: