logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

LogicApp - ServiceBus trigger skipped

Open mschellig opened this issue 3 years ago • 0 comments

Hey there, I got an issue running a logic app with the service bus trigger 'When_a_message_is_received_in_a_queue_(auto-complete)'. I used an empty workflow with only the trigger. By starting the func.exe I don't get any errors, just a debug message gives be a hint, that this workflow does not have a mapped function trigger and will be skipped.

image

This is the workflow I use:

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_message_is_received_in_a_queue_(auto-complete)": {
                "inputs": {
                    "host": {
                        "connection": {
                            "referenceName": "serviceBus"
                        }
                    },
                    "method": "get",
                    "path": "/@{encodeURIComponent(encodeURIComponent('queuename'))}/messages/head",
                    "queries": {
                        "queueType": "Main"
                    }
                },
                "recurrence": {
                    "frequency": "Second",
                    "interval": 15
                },
                "type": "ApiConnection"
            }
        }
    },
    "kind": "Stateful"
}

When I switch the workflow to use a '' trigger, everything works fine. The workflow will be loaded into the functions and will be executed as needed.

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {},
        "triggers": {
            "When_messages_are_available_in_a_queue": {
                "type": "ServiceProvider",
                "inputs": {
                    "parameters": {
                        "queueName": "queuename",
                        "isSessionsEnabled": false
                    },
                    "serviceProviderConfiguration": {
                        "connectionName": "serviceBus",
                        "operationId": "receiveQueueMessages",
                        "serviceProviderId": "/serviceProviders/serviceBus"
                    }
                },
                "splitOn": "@triggerOutputs()?['body']"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {}
    },
    "kind": "Stateful"
}

Is there anything I missed or is this just a unsupported trigger type? Would appriciate any kind of help with this one.

mschellig avatar Oct 11 '22 07:10 mschellig