sqlops-mssql-instance-insights icon indicating copy to clipboard operation
sqlops-mssql-instance-insights copied to clipboard

Bug: queryService.runQueryAndReturn returns error

Open Matticusau opened this issue 6 years ago • 0 comments

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))

Matticusau avatar Jul 24 '18 13:07 Matticusau