Hi I have updated the nuget packages for Azure Web Jobs SDK to version 2.0 and I am getting the following error.
Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.SparkPostCold_Queue ---> System.InvalidOperationException: Exception binding parameter 'emails' ---> System.InvalidOperationException: Invalid invoke string format for attribute. at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner`1.New(String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.DefaultAttributeInvokerDescriptor`1.FromInvokeString(AttributeCloner`1 cloner, String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner`1.<ResolveFromInvokeStringAsync>d__10.MoveNext()
My function looks like below.
public static void QueueItem(
[Table("emails")] IQueryable<EmailEntity> emails,
[Queue("queue")] ICollector<string> outputQueueMessage,
TextWriter logger)
{
var query = from p in emails select p;
foreach (EmailEntity email in query)
{
outputQueueMessage.Add(email.RowKey);
}
}
Any thoughts will be highly appreciated.
I think this is a regression bug in the SDK. I saw you filed https://github.com/Azure/azure-webjobs-sdk/issues/1337 . I'll take a look at it. Follow that issue for updates.