Error code 3608: 'Invoking Azure function failed with HttpStatusCode - InternalServerError.'

Rajkumar Govindaraj 20 Reputation points
2023-03-30T13:29:29.4633333+00:00

Dear Team,

Pipelines are getting failure because of this Error associated with Azure Function.

Please assist me with your solution.

User's image

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,261 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,535 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,422 Reputation points Microsoft Employee
    2023-03-31T15:16:15.5666667+00:00

    Hi @Rajkumar Govindaraj

    Thanks for using Microsoft Q&A forum and posting your query.

    Could you please confirm if this is the first time you are running this function from ADF activity? or was it running fine all these days and suddenly started failing?

    Irrespective I would suggest testing the Functions App call from POST MAN for the same request and parameters just to make sure that there is nothing wrong from Azure Function end so that we can focus troubleshooting on ADF side.

    If the Azure Function app test fails from POST MAN, then it confirms that you need to focus troubleshooting Azure Functions App by checking the Azure Function logs to see if there are any errors or exceptions being thrown.

    In other case, if the issue resides in ADF, then we need to focus on error code/HTTP Status code 499`` - which indicate an issue that is initiated from the client (ADF). These issues can range from the client initiating requests to an unmatched hostname, request timeout, unauthenticated request, network connectivity issues, client-side timeouts, or server-side issues.

    From ADF side you can check below:

    1. Function App URL is correct in ADF Linked service configuration
    2. Verify Function Key and authentication method used is valid and working.
    3. Check the ADF Function App timeout settings to ensure that they are not too low. Also try to implement Retry mechanism with minimum 30 sec interval and see if that helps to resolve the issue.
      User's image
    4. Since it is a POST method ensure that the request body is well formed as expected by function app.
    5. If none of the above troubleshooting helps, then try to check the Azure function App logs to see if you could find anything relevant to this specific issue. Please refer to this to find the logs - How can I access my Azure Functions' logs?

    Hope this info helps. Let us know how it goes.

    0 comments No comments