ADF - Error at sink side - Rest API- Key Content-Type conflicts in AuthHeaders/AdditionalHeaders

Anurag Yadav 1 Reputation point
2022-09-26T11:59:52.21+00:00

Hello,

I am getting error as below when I am trying to use the copy activity which as source as Json file from container and sink as Rest API.

I have defined auth token in linked service . Content Type header is defined in additional headers in Sink tab of copy activity. Where we need to define this actually ? In Linked service I can understand I can define API key for auth but Content Type has to reside in Sink tab.

Error :
244832-content-type-error.png

Sink :
244833-sink-settings.png

Sink Dataset :
244796-restapi-dataset.png

Linked Service:
244700-linked-service.png

@AnnuKumari-MSFT or anyone else , please help.

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

4 answers

Sort by: Most helpful
  1. Nadimpalli, R V Satya Avinash Varma 0 Reputation points
    2023-09-22T14:54:25.3266667+00:00

    Hi All, I have same issue and did anyone managed to solve this issue ? If yes could you please share with us the mitigation steps performed to resolve the same. Thanks in advance.

    0 comments No comments

  2. Michael Wong 0 Reputation points
    2023-09-24T22:23:08.7066667+00:00

    I manage to resolve my issues, instead of using Copy, I used Web activity instead.

    I used lookup activity to read data followed by ForEach activity to get around the 1000 line limit.

    0 comments No comments

  3. Arundhati Sen 151 Reputation points
    2023-11-24T08:37:21.0133333+00:00

    Hi I am having the same issue. Has someone solved this using copy activity and not web activity?

    0 comments No comments

  4. Kodanda Ramudu 0 Reputation points
    2024-10-10T22:40:23.3333333+00:00

    Did the issue resolve ?. we are also facing same issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.