Missing a trigger argument in Azure Function

maria_praded 41 Reputation points

I created a Azure Function Service Bus trigger, here are the run.csx:

using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;

public static class FunctionQwe
         [FunctionName ("FunctionQwe")]
        public static void Run(string myQueueItem, ILogger log)
            log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");

and function.json:

  "direction": "in",
  "bindings": [
      "type": "serviceBusTrigger",
      "connection": "ServiceBusConnectionString",
      "queueName": "DefaultQueue",
      "isSessionsEnabled": false,
      "name": "myQueueItem"

But a script cannot compile with this error: [Error] error AF003: Missing a trigger argument named 'myQueueItem'.

I have already made sure that service bus trigger name is the same in both files above.
Maybe I do not see something?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
556 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,353 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,411 Reputation points

    @maria_praded Thanks for the offline discussion.
    We have created the new servicebus trigger and couldn't observe the same issue in the new function. If someone is facing the similar issue there there might be issue if there are any special character or the entry point is different for your function.

    0 comments No comments

0 additional answers

Sort by: Most helpful