trying to open graphical reports
Unhandled exception: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
System.ArgumentOutOfRangeException
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at OpenDentalGraph.BrokenApptGraphOptionsCtrl.FillComboBrokenProc() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 169
at OpenDentalGraph.BrokenApptGraphOptionsCtrl..ctor() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 121
at OpenDentalGraph.GraphQuantityOverTimeFilter..ctor(DashboardCellType cellType, String jsonSettings, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Concrete\GraphQuantityOverTimeFilter.cs:line 19
at OpenDentalGraph.DashboardPanelCtrl.SetCellLayout(Int32 rows, Int32 columns, List`1 cells, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardPanelCtrl.cs:line 227
at OpenDentalGraph.DashboardTabCtrl.<>c__DisplayClass14_0.<SetDashboardLayout>b__1(DashboardLayout x) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 162
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at OpenDentalGraph.DashboardTabCtrl.SetDashboardLayout(List`1 layouts, Boolean invalidateFirst, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 160
at OpenDentalGraph.FormDashboardEditTab.RefreshData(Boolean invalidateFirst) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 83
at OpenDentalGraph.FormDashboardEditTab..ctor(Int64 provNum, Boolean useProvFilter, EventHandler onSetDb) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 72
at OpenDental.FormOpenDental.menuItemReportsGraphic_Click(Object sender, EventArgs e) in C:\SVN\beta\OpenDental\Main Modules\FormOpenDental.cs:line 7438
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
v19.2.18 Graphic Report Error
Re: v19.2.18 Graphic Report Error
Check what the BrokenApptProcedure preference is set to by running this query.
If it is any value other than 0 through 3, or non-existent, then that may be the problem.
https://www.opendental.com/manual192/mo ... appts.html
Go to Setup->Appointments->Appts Preferences
In the box at the top of the Behavior tab titled "Broken Appointment Automation", are you able to click the dropdown next to "Broken Appointment Procedure Types"?
If you're not able to click it, then it indicates that you don't have procedures set up for Missed and Cancelled appointments. Which should be fine, and it would default you to a value of 0 in the preference we queried above.
That leaves the following question. Do you have procedures set up for Cancelled and Missed appointments?
I'll keep looking and see if there's any changes that would be affecting that preference as well.
Code: Select all
SELECT ValueString FROM preference WHERE prefname LIKE '%BrokenApptProcedure%'
https://www.opendental.com/manual192/mo ... appts.html
Go to Setup->Appointments->Appts Preferences
In the box at the top of the Behavior tab titled "Broken Appointment Automation", are you able to click the dropdown next to "Broken Appointment Procedure Types"?
If you're not able to click it, then it indicates that you don't have procedures set up for Missed and Cancelled appointments. Which should be fine, and it would default you to a value of 0 in the preference we queried above.
That leaves the following question. Do you have procedures set up for Cancelled and Missed appointments?
I'll keep looking and see if there's any changes that would be affecting that preference as well.
Re: v19.2.18 Graphic Report Error
It has a value of 0....and yes I did have it setup for broken app procedure types...no that is an adjustment type and that is still setup.
Re: v19.2.18 Graphic Report Error
I added those two procedure codes, then the combo box let me choose missed, cancelled, or both. I chose both.
I ran the above query and got the expected value of 3 now that it is changed,
I then tried the graphical reports and got the same error:
Error Encountered - 09/09/2019 4:24:07 PM
Unhandled exception: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
System.ArgumentOutOfRangeException
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at OpenDentalGraph.BrokenApptGraphOptionsCtrl.FillComboBrokenProc() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 169
at OpenDentalGraph.BrokenApptGraphOptionsCtrl..ctor() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 121
at OpenDentalGraph.GraphQuantityOverTimeFilter..ctor(DashboardCellType cellType, String jsonSettings, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Concrete\GraphQuantityOverTimeFilter.cs:line 19
at OpenDentalGraph.DashboardPanelCtrl.SetCellLayout(Int32 rows, Int32 columns, List`1 cells, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardPanelCtrl.cs:line 227
at OpenDentalGraph.DashboardTabCtrl.<>c__DisplayClass14_0.<SetDashboardLayout>b__1(DashboardLayout x) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 162
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at OpenDentalGraph.DashboardTabCtrl.SetDashboardLayout(List`1 layouts, Boolean invalidateFirst, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 160
at OpenDentalGraph.FormDashboardEditTab.RefreshData(Boolean invalidateFirst) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 83
at OpenDentalGraph.FormDashboardEditTab..ctor(Int64 provNum, Boolean useProvFilter, EventHandler onSetDb) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 72
at OpenDental.FormOpenDental.menuItemReportsGraphic_Click(Object sender, EventArgs e) in C:\SVN\beta\OpenDental\Main Modules\FormOpenDental.cs:line 7438
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I ran the above query and got the expected value of 3 now that it is changed,
I then tried the graphical reports and got the same error:
Error Encountered - 09/09/2019 4:24:07 PM
Unhandled exception: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
System.ArgumentOutOfRangeException
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at OpenDentalGraph.BrokenApptGraphOptionsCtrl.FillComboBrokenProc() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 169
at OpenDentalGraph.BrokenApptGraphOptionsCtrl..ctor() in C:\SVN\beta\OpenDentalGraph\Concrete\BrokenApptGraphOptionsCtrl.cs:line 121
at OpenDentalGraph.GraphQuantityOverTimeFilter..ctor(DashboardCellType cellType, String jsonSettings, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Concrete\GraphQuantityOverTimeFilter.cs:line 19
at OpenDentalGraph.DashboardPanelCtrl.SetCellLayout(Int32 rows, Int32 columns, List`1 cells, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardPanelCtrl.cs:line 227
at OpenDentalGraph.DashboardTabCtrl.<>c__DisplayClass14_0.<SetDashboardLayout>b__1(DashboardLayout x) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 162
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at OpenDentalGraph.DashboardTabCtrl.SetDashboardLayout(List`1 layouts, Boolean invalidateFirst, OnGetColorFromSeriesGraphTypeArgs onGetSeriesColor, GetGraphPointsForHQArgs onGetODGraphPointsArgs) in C:\SVN\beta\OpenDentalGraph\Dashboard\DashboardTabCtrl.cs:line 160
at OpenDentalGraph.FormDashboardEditTab.RefreshData(Boolean invalidateFirst) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 83
at OpenDentalGraph.FormDashboardEditTab..ctor(Int64 provNum, Boolean useProvFilter, EventHandler onSetDb) in C:\SVN\beta\OpenDentalGraph\Dashboard\FormDashboardEditTab.cs:line 72
at OpenDental.FormOpenDental.menuItemReportsGraphic_Click(Object sender, EventArgs e) in C:\SVN\beta\OpenDental\Main Modules\FormOpenDental.cs:line 7438
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Re: v19.2.18 Graphic Report Error
If the issue isn't caused by anything Patrick mentioned, I would suspect compiler shenanigans. The code where you're getting the error is in a different dll, OpenDentalGraph.dll, so if that didn't get recompiled when OpenDentBusiness got recompiled, then the PrefName enum could be pointing to a different value for PrefName.BrokenApptProcedure.
Re: v19.2.18 Graphic Report Error
I will try to recompile everything and try again. Thanks!
Re: v19.2.18 Graphic Report Error
Rebuilt all and it works again. Thanks for pointing me in the right direction.