DataFactory RESTAPI 406 not Acceptable

2021-04-20T09:31:55.02+00:00

Hello,

I have a problem with the Source in DataFactory with REST API.

I get the following error:

Failure happened on 'Source' side. ErrorCode=RestSourceCallFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The HttpStatusCode 406 indicates failure. Request URL: https://xxxxx Response payload:{"type":"/doc/v1/errors#AC001","title":"The requested format cannot be returned","status":406,"identifier":"949bdf27-aa49-48b2-95f2-62914efb3bce","code":"AC001","extraInfo":{"message":"HTTP 406 Not Acceptable"}},Source=Microsoft.DataTransfer.ClientLibrary,'

When i open it with Postman or Curl i don't have any issue.

Also when i choose in DataFactory Source is HTTP then i get values from the GET request.. but my prefer get out to REST API for pagerules.

Can anybody help me?

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

1 answer

Sort by: Most helpful
  1. Mishra, Swastik 0 Reputation points
    2025-04-15T15:21:41.2133333+00:00

    I am also facing exactly the same issue.

    My API works from Web activity but doesn't work from the Rest Datasource of Copy Activity.

    It was working initially and after a week when I tried it suddenly it fails with error 406. If I add Http Json data source adding additional headers Content type, Ocp-Apim-Subscription-Key and Authorization with Bearer token is so difficult to format it doesn't work too.

    Json data from web activity added separately is also difficult to format and pass to azure sql table.

    Failure happened on 'Source' side. ErrorCode=RestCallFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with client error, status code 406 NotAcceptable, please check your activity settings.

    Request URL: 8***/.

    Response: ,Source=Microsoft.DataTransfer.ClientLibrary,'

    0 comments No comments

Your answer

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