Schedule Module Error in OD Beta v. 23.3.11.0

This forum is for programmers who have questions about the source code.
Post Reply
rinse-dental
Posts: 76
Joined: Wed Apr 06, 2022 12:04 pm

Schedule Module Error in OD Beta v. 23.3.11.0

Post by rinse-dental » Thu Nov 30, 2023 5:04 pm

This issue was an issue in Beta v. 23.3.7 as well, reporting as I'd hoped it resolved with the newest release. Please advise if this is not the correct place to report issues.

MODULE: Schedule
TEST CASE:
1. Copy Day with existing provider scheduled
2. Paste on future date

RESULT: Please Wait progress bar appears. After a few seconds a StackTrace error is presented with the following error. After that error is dismissed, another stack trace is presented (also below). Internet connection is stable and we don't have any other issues in Open Dental.

#### 1ST ERROR

Error Encountered - 11/30/2023 5:00:55 PM
Unhandled exception : There was an error generating the XML document.
System.InvalidOperationException
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at OpenDentBusiness.DataTransferObject.Serialize() in C:\Development\Versioned\OpenDental\OpenDentBusiness\Remoting\DataTransferObject.cs:line 33
at OpenDentBusiness.RemotingClient.SendAndReceive(DataTransferObject dto, Boolean hasConnectionLost) in C:\Development\Versioned\OpenDental\OpenDentBusiness\Remoting\RemotingClient.cs:line 339
at OpenDentBusiness.RemotingClient.ProcessGetVoid(DtoGetVoid dto, Boolean hasConnectionLost) in C:\Development\Versioned\OpenDental\OpenDentBusiness\Remoting\RemotingClient.cs:line 261
at OpenDentBusiness.Meth.GetVoid(MethodBase methodBase, Object[] parameters) in C:\Development\Versioned\OpenDental\OpenDentBusiness\Remoting\Meth.cs:line 315
at OpenDentBusiness.Schedules.Insert(Boolean validate, Boolean hasSignal, List`1 listSchedules) in C:\Development\Versioned\OpenDental\OpenDentBusiness\Data Interface\Schedules.cs:line 683
at OpenDental.FormSchedule.butRepeat_Click(Object sender, EventArgs e) in C:\Development\Versioned\OpenDental\OpenDental\Forms\FormSchedule.cs:line 961
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at OpenDental.UI.Button.OnClick(EventArgs ea) in C:\Development\Versioned\OpenDental\OpenDental\UI\Button.cs:line 177
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)
-------------------------------------------
Inner exception: There was an error generating the XML document.
System.InvalidOperationException
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at OpenDentBusiness.DtoObject.WriteXml(XmlWriter writer) in C:\Development\Versioned\OpenDental\OpenDentBusiness\Remoting\DtoObject.cs:line 85
at System.Xml.Serialization.XmlSerializationWriter.WriteSerializable(IXmlSerializable serializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterDtoGetVoid.Write4_DtoGetVoid(String n, String ns, DtoGetVoid o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterDtoGetVoid.Write5_DtoGetVoid(Object o)
-------------------------------------------
Inner exception: Unable to cast object of type 'OpenDentBusiness.Schedule[]' to type 'System.Collections.Generic.List`1[OpenDentBusiness.Schedule]'.
System.InvalidCastException
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterList1.Write6_ArrayOfSchedule(Object o)

#### 2ND ERROR

Error Encountered - 11/30/2023 5:04:20 PM
Unhandled exception : Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
System.InvalidOperationException
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at System.Windows.Forms.Control.Invoke(Delegate method)
at OpenDental.FormOpenDental.CloseOpenForms(Boolean isForceClose, Int32 forceCloseTimeoutMS, Boolean isSnip) in C:\Development\Versioned\OpenDental\OpenDental\Main Modules\FormOpenDental.cs:line 7843
at OpenDental.FormOpenDental.ProcessKillCommand() in C:\Development\Versioned\OpenDental\OpenDental\Main Modules\FormOpenDental.cs:line 8017
at OpenDental.ProgramEntry.<>c__DisplayClass0_0.<Main>b__0(Exception e, String threadName) in C:\Development\Versioned\OpenDental\OpenDental\Main Modules\ProgramEntry.cs:line 127
at OpenDental.ProgramEntry.<>c__DisplayClass0_0.<Main>b__1(Object s, ThreadExceptionEventArgs e) in C:\Development\Versioned\OpenDental\OpenDental\Main Modules\ProgramEntry.cs:line 133
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at OpenDental.ControlManage.butViewSched_Click(Object sender, EventArgs e) in C:\Development\Versioned\OpenDental\OpenDental\Main Modules\ControlManage.cs:line 430
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at OpenDental.UI.Button.OnClick(EventArgs ea) in C:\Development\Versioned\OpenDental\OpenDental\UI\Button.cs:line 177
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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)




Diagnostics:

-------------
Connection settings
Server Name:
Database Name:
MySQL User:
DictPrefValues:
AtoZfolderUsed 1
ClaimSnapshotEnabled 1
ClaimSnapshotRunTime 1881-01-01 23:30:00
ClaimSnapshotTriggerType ClaimCreate
CorruptedDatabase 0
DataBaseVersion 23.3.6.0
EasyNoClinics 1
LanguageAndRegion en-US
MySqlVersion 10.5
PayPlansVersion 2
ProcessSigsIntervalInSecs 6
ProgramVersion 23.3.11.0
RandomPrimaryKeys 0
RegistrationKeyIsDisabled 0
ReplicationFailureAtServer_id
ReportingServerCompName
ReportingServerDbName
ReportingServerMySqlUser
ReportingServerMySqlPassHash
ReportingServerURI
SecurityLogOffAfterMinutes 0
ReadOnlyServerCompName
ReadOnlyServerDbName
ReadOnlyServerMySqlUser
ReadOnlyServerMySqlPassHash
ReadOnlyServerURI
-------------
CountClinics: 0 (0 hidden)
UserNumCur: 6
PatientNumCur: 0
IsOfficeOnReplication: false
IsOfficeUsingMiddleTier: true
WindowsVersion: Microsoft Windows 11 Business 64-bit Build 10.0.22621
PreviousUpdateVersion: 23.3.7.0
PreviousUpdateTime: 11/30/2023 3:28:22 PM
CurrentUpdateTime: 01/01/0001 12:00:00 AM
StorageEngine: MyISAM
OpenDentBusinessVersion: 23.3.11.0
OpenDentBusinessMiddleTierVersion: 23.3.11.0
EnvSessionName: Console
RegKeyNum: 0
MWUserIdentifier: 0
TimeSignalsLastReceived: 01/01/0001 12:00:00 AM
ClinicNumCur: 0

User avatar
jsalmon
Posts: 1555
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Schedule Module Error in OD Beta v. 23.3.11.0

Post by jsalmon » Fri Dec 01, 2023 9:15 am

This is a fine place to report such issues. I was able to confirm the bug with all of the information you provided, thank you for being so thorough. I will add this to our bug tracker as "Middle Tier, Schedule window, clicking Paste or Repeat crashes the program" and will report back once it has been fixed.
https://opendentalsoft.com:1943/ODBugTr ... sions.aspx
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

rinse-dental
Posts: 76
Joined: Wed Apr 06, 2022 12:04 pm

Re: Schedule Module Error in OD Beta v. 23.3.11.0

Post by rinse-dental » Fri Dec 01, 2023 9:22 am

Thank you. If it matters for you or your team (or anyone else facing this issue), I was able to copy/paste a schedule on the cloud VM server, where the DB is local.

User avatar
jsalmon
Posts: 1555
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: Schedule Module Error in OD Beta v. 23.3.11.0

Post by jsalmon » Fri Dec 01, 2023 10:11 am

The bug "Middle Tier, Schedule window, clicking Paste or Repeat was crashing the program" has been fixed and will be released with v23.3.13
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply