@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.
Missing a trigger argument in Azure Function
maria_praded
41
Reputation points
Hello!
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?
Accepted answer
-
MayankBargali-MSFT 70,796 Reputation points
2021-09-14T11:47:33.267+00:00