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.AttributeCloner1.New(String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.DefaultAttributeInvokerDescriptor1.FromInvokeString(AttributeCloner1 cloner, String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner1.<ResolveFromInvokeStringAsync>d__10.MoveNext()
My Function looks like this.
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); } }
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.DefaultAttributeInvokerDescriptor1.FromInvokeString(AttributeCloner
1 cloner, String invokeString) at Microsoft.Azure.WebJobs.Host.Bindings.AttributeCloner1.<ResolveFromInvokeStringAsync>d__10.MoveNext()
My Function looks like this.
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); } }