MarkMpn / Sql4Cds

SQL 4 CDS core engine and XrmToolbox tool
MIT License
74 stars 22 forks source link

Error opening XTB tool without a connection #399

Closed MarkMpn closed 11 months ago

MarkMpn commented 11 months ago
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: At least one data source must be supplied
   at MarkMpn.Sql4Cds.Engine.Sql4CdsConnection..ctor(IDictionary`2 dataSources)
   at MarkMpn.Sql4Cds.XTB.SqlQueryControl..ctor(ConnectionDetail con, IDictionary`2 dataSources, TelemetryClient ai, Action`1 showFetchXml, Action`1 log, PropertiesWindow properties)
   at MarkMpn.Sql4Cds.XTB.PluginControl.CreateQuery(ConnectionDetail con, String sql)
   at MarkMpn.Sql4Cds.XTB.PluginControl.<>c__DisplayClass10_0.<PluginControl_Load>b__0(String name)
   at WeifenLuo.WinFormsUI.Docking.DockPanel.Persistor.LoadFromXml(DockPanel dockPanel, Stream stream, DeserializeDockContent deserializeContent, Boolean closeStream)
   at MarkMpn.Sql4Cds.XTB.PluginControl.PluginControl_Load(Object sender, EventArgs e)
   at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)