question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Functions v3: Can't bind Table to type System.Linq.IQueryable

See original GitHub issue

Hitting this issue while trying to follow Azure Table storage bindings for Azure Functions - IQueryable.

Repro steps

Provide the steps required to reproduce the problem

  1. Unzip attached FunctionApp3.zip
  2. Open in Visual Studio and debug.

See binding errors:

[30/06/2020 15:52:37] Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. Microsoft.Azure.WebJobs.Extensions.Storage: Can't bind Table to type 'System.Linq.IQueryable`1[FunctionApp3.MyPoco]'.
[30/06/2020 15:52:37] Error indexing method 'Function1'
[30/06/2020 15:52:37] Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. Microsoft.Azure.WebJobs.Extensions.Storage: Can't bind Table to type 'System.Linq.IQueryable`1[FunctionApp3.MyPoco]'.
[30/06/2020 15:52:37] The 'Function1' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Function1'. Microsoft.Azure.WebJobs.Extensions.Storage: Can't bind Table to type 'System.Linq.IQueryable`1[FunctionApp3.MyPoco]'.

Expected behavior

I would expect it to start debugging and be able to access the table rows from the function binding.

Actual behavior

As described above, the debug console shows binding errors.

Known workarounds

I currently do not know of any. Suggestions welcome.

Related information

I have seen a few issues related to this. But they are V2 and the function project I have attached has <AzureFunctionsVersion>v3</AzureFunctionsVersion>. So I believe this is a new/different issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pragnagopacommented, Aug 13, 2020

@realrubberduckdev - Thank you for reporting the issue. This is same as https://github.com/Azure/azure-webjobs-sdk/issues/1566 - binding IQueryable is only supported in the Functions V1.

Opened: https://github.com/MicrosoftDocs/azure-docs/issues/60812 to track documentation update.

1reaction
Rafaelkicommented, Aug 12, 2020

@ThejaChoudary I didn’t have any build errors either. The error is in the console when you started debugging:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table Attribute binding not working when using IQueryable ...
I am new to azure functions and table storage. But can not get the samples to work properly. the functions are created in...
Read more >
User-defined function mapping - EF Core
When translating the LINQ query to SQL, the user-defined function is called instead of the CLR function it has been mapped to.
Read more >
Azure Tables input bindings for Azure Functions
Use the Azure Tables input binding to read a table in Azure Cosmos DB for Table or Azure Table Storage. For information on...
Read more >
Dixin's Blog - EntityFramework.Functions: Code First ...
Functions library implements Entity Framework code first support for: Stored procedures, with: single result type multiple result types …
Read more >
HnD | Custom Linq to LLBLGen functions, Page 1
I would like to sum of a property in a sub table without fetching that subtable. ... As is from last post, with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found