Hi All,
I have a customer using Progress OpenEdge with the UltraDayView control version 13.1.20131.2089, and the controls works fine most of the time. But occasionally the end user reports an error displayed in a dialog (see attached):
Appointment Data Binding Error Appointment could not be updated from the data source because one or more values were invalid. Verify that the fields that contain the values for the 'StartDateTime', 'EndDateTime' and 'Subject' properties do not contain DBNull.
When this happens after the user responds to the message OK button, the application continues as normal. The customer has told me that he doesn't pass Null values to the control, so I'm trying to find ways that this could be debugged. Or perhaps how a stack trace can be generated for the error in order to determine exactly where in the code the problem is being triggered? Does anyone have an explanation for the error? Any suggestions or comments are appreciated.
Thanks,
Paul.
That error is displayed when the 'ShowMessageBox' property of the event args for the AppointmentDataError event is set to true, which it is by default.
You can handle that event and get more information about why the error occurred, for example, the PropertyId property of the event args tells you which property it choked on, and the BoundValue property returns the raw data that was obtained through the property descriptor.
If you still come up short after that post again and we'll try to help figure out why that's happening.
Hi Brian, thanks for the quick response. I'll look into this and get back to you.
Hi Paul,
Just wanted to touch base and see if you had a chance to look into this yet.
Hi Matthew,
Thank you for the feedback. I've passed Brian's feedback on to my customer. Unfortunately only he can reproduce the problem, I can't. I'll update you when I have some news.
Just a suggestion to possibly help you get additional information about the error...if you can, add code to handle the AppointmentDataError event and log the details of the failure. Give the customer the new bits, and when the problem happens again, you will have a bit more information about exactly what caused the problem.
Hi Brian, thanks for the feedback. I have asked my customer for an update. I'll let you know if your suggestion helped.
Please let us know if you need any more help with this, otherwise we'll close the case...thanks.