sqlops-mssql-instance-insights
sqlops-mssql-instance-insights copied to clipboard
Bug: queryService.runQueryAndReturn returns error
In trying to add a dynamic query to get the version number (because the serverInfo class is not available and I will need this for the AG ext), the call to queryService.runQueryAndReturn is returning an error
[Extension Host] [Error - 23:20:43] Request query/simpleexecute failed. (at CustomOutputChannel.appendLine (c:\Program Files\SQL Operations Studio\resources\app\extensions\mssql\out\main.js:152:17))
C:\Program Files\SQL Operations Studio\resources\app\node_modules\zone.js\dist\zone-node.js:2251 [Extension Host] Message: System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at Microsoft.SqlTools.ServiceLayer.QueryExecution.QueryExecutionService.HandleSimpleExecuteRequest(SimpleExecuteParams executeParams, RequestContext`1 requestContext) in D:\a\1\s\src\Microsoft.SqlTools.ServiceLayer\QueryExecution\QueryExecutionService.cs:line 196
Code: 0 (at CustomOutputChannel.appendLine (c:\Program Files\SQL Operations Studio\resources\app\extensions\mssql\out\main.js:152:17))