Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't execute async LINQ queries #665

Closed
adrianknight89 opened this issue Aug 10, 2019 · 2 comments
Closed

Can't execute async LINQ queries #665

adrianknight89 opened this issue Aug 10, 2019 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists LINQ needs-investigation

Comments

@adrianknight89
Copy link

I get an IOrderedQueryable<T> from GetItemLinqQueryable<T>() and follow up with a Where() and OrderBy clause and finally convert the whole thing to a FeedIterator<T>. Since the default value for allowSynchronousQueryExecution is false, everything should be async. However, I get the following exception:

System.NotSupportedException: To execute LINQ query please set allowSynchronousQueryExecution true or use GetItemsQueryIterator to execute asynchronously

Can you please tell me what I'm doing wrong? Is async LINQ not supported right now? If so, what's the purpose of allowSynchronousQueryExecution? I'm using SDK 3.1.0.

@j82w
Copy link
Contributor

j82w commented Aug 12, 2019

Hi @adrianknight89,

Can you provide a code example with a repo?

@j82w j82w added LINQ needs-investigation bug Something isn't working duplicate This issue or pull request already exists labels Aug 12, 2019
@j82w
Copy link
Contributor

j82w commented Aug 12, 2019

I'm closing this as a duplicate of #589

@j82w j82w closed this as completed Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists LINQ needs-investigation
Projects
None yet
Development

No branches or pull requests

2 participants