azure-functionsazure-logic-apps

Workflow Validation Failed Error: The function cannot be called from a logic app. It must not have a custom route


I'm getting the following error when saving my Logic App workflow which calls a function app

Workflow validation failed for the workflow ''. {"error":{"code":"InvalidFunctionRoute","message":"The function '/subscriptions/{subid}/resourceGroups/{myresourcegroup}/providers/Microsoft.Web/sites/{nameoffunction}/functions/myfunctionapp' cannot be called from a logic app. It must not have a custom route."}}

Both my function app and logic app are in the same resource group.

The function app is a python .py file with code:

print("Hello World!")

How do i debug this error?

enter image description here


Solution

  • You cannot call a function with custom route with that connector. You can use a HTTP Action as below:

    enter image description here

    To get function URL:

    Open Function :

    enter image description here

    You can select anyone of below:

    enter image description here

    This way you can call function app with custom routes.

    Output:

    enter image description here