The function 'sql_request' expects 2 arguments.

Kovács, Ferenc 61 Reputation points
2022-01-18T10:10:10.707+00:00

I am running the sample 'sql_request' from the docs which passes in a third @Paramjeet Dahiya to this plugin, but I am getting this error of only 2 params supported, both on KustoWebUi and in Kusto.Explorer.

https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/query/sqlrequestplugin?pivots=azuredataexplorer#examples

The 2 argument variant does work fine for me.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
525 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,816 Reputation points Microsoft Employee
    2022-01-19T01:46:16.84+00:00

    Hi @Kovács, Ferenc ,
    Thanks for using Microsoft Q&A !!
    I have tested this with 3 arguments and it works fine from Kusto Explorer.
    166079-image.png
    Can you please share sql_request you are using along with the exact error message.

    Note: For 3rd parameter (SqlParameters) you need to pass a constant value of type dynamic that holds key-value pairs to pass as parameters along with the query.

    Thanks
    Saurabh

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.