Query parameter not resolved in SqlQuery statement
See original GitHub issueUsers want to get a query parameter to resolve in a CosmosDB input binding expression:
"SELECT * FROM c.users WHERE c.CustomerId like {Query.customerId}
But it doesn’t work per this: https://github.com/Azure/azure-functions-host/issues/2554#issuecomment-392084583
Would be good to support for consistency with other bindings
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:14 (2 by maintainers)
Top Results From Across the Web
How to ignore "cannot resolve query parameter" error in ...
Navigate over the part of the code where the error is highlighted, hit ALT + ENTER and select Inspection 'Unresolved queries and query...
Read more >SQL: "cannot resolve query parameter" error for valid code
Relates to 1 issue (0 unresolved) First we do a SELECT with one parameter and then we do an INSERT with two parameters....
Read more >How to pass a dynamic parameter as SQL query in for SQL ...
I am trying to run dynamic queries with a parameter in Azure Data Flow but I continue to get the "Column operands are...
Read more >[Execute SQL Task] Error: Executing the query " : "An error ...
Hi all, I use the following code in execute sql task. I set the result set to single row. Input parameter data type...
Read more >Filter SQL query using parameters - Microsoft Fabric Community
Solved : Hi guys, I want to take values from a table in my SQL server but i want to filter the query...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jeffhollan It’s been a while since first raised via https://github.com/Azure/azure-functions-host/issues/2554 but customers running into it from time to time still… Workarounds:
None are as nice as Query Params if Query Params is your project’s default though
Neither
SqlQuery = "SELECT * FROM c WHERE c.User = {Query.user}"
norSqlQuery = "SELECT * FROM c WHERE c.User = {user}"
worked with an url ofhttp://yourapi/a?user=myid
. I’m using the latest SDK, Microsoft.Azure.WebJobs.Extensions.CosmosDB 3.0.10. Route path is still the way to go.