Azure / azure-webjobs-sdk

Azure WebJobs SDK
MIT License
739 stars 358 forks source link

Error After Updating Azure Web Jobs SDK update #1337

Open isaleem opened 7 years ago

isaleem commented 7 years ago

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); } }

MikeStall commented 7 years ago

I think this is a regression from the attribute cloner work. Table probably needs to map the invoke string directly to the table name.