What is causing Error code 11402 The value of the property '' is invalid: 'Value does not fall within the expected range.'. Value does not fall within the expected range.?

Rafael Hernandez 15 Reputation points
2023-02-24T14:34:16.4733333+00:00

I am trying to connect to an API that I have validated works via Postman from the virtual machine. Whenever I create the linked service in Azure Data Factory, it returns the error below;

Error code11402

DetailsThe value of the property '' is invalid: 'Value does not fall within the expected range.'. Value does not fall within the expected range.

However, the message does not specify which property is causing the error nor indicate what needs to be corrected. Below is the JSON code for the connection.

Any help diagnosing and correcting this would be greatly appreciated.

{
    "name": "<Removed for security purposes>",
    "type": "Microsoft.DataFactory/factories/linkedservices",
    "properties": {
        "type": "RestService",
        "typeProperties": {
            "url": "<Removed for security purposes>",
            "enableServerCertificateValidation": true,
            "authenticationType": "Basic",
            "userName": <Removed for security purposes>,
            "encryptedCredential": <Removed for security purposes>,
            "requestBody": "{\n \"matnr_low\": \"000000000050000000\",\n \"matnr_high\": \"000000000050000009\"}"
        },
        "annotations": []
    }
}

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

3 answers

Sort by: Most helpful
  1. Nag 0 Reputation points
    2023-06-24T17:40:15.6+00:00

    I have received same issue . Any suggestions and troubleshooting steps


  2. George, Thomas 0 Reputation points
    2024-08-02T18:25:47.46+00:00

    I also have the same issue for my data factory which use service principal authentication to managed instance. Please advise if you have any suggestion

    0 comments No comments

  3. George, Thomas 0 Reputation points
    2024-08-02T18:55:39.9233333+00:00

    I have resolved the issue. In my data factory i was using autoresolve IR which has been replaced with selfhosted IR and that resolved the issue. Below link helped me to resolve the issue

    https://stackoverflow.com/questions/76311217/azure-data-factory-unable-to-connect-to-sql-server-in-vm-error-11402

    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.