Options for diagnosing DataStorage Import error

Posted by: james on 11 September 2023, 10:39 am EST

  • Posted 11 September 2023, 10:39 am EST - Updated 11 September 2023, 10:48 am EST

    My application uses the C1Schedule control to import iCal feeds. We have one (maybe more) cases where a customer is receiving a generic “Object reference not set to an instance of an object” error. The relevant code is:

    Dim ctl As New C1.Win.C1Schedule.C1Schedule

            ctl.CalendarInfo.FirstDate = dateRange.Start.DateValue
            ctl.CalendarInfo.LastDate = dateRange.TheEnd.DateValue
    
            ctl.DataStorage.Import(tempFile, C1.C1Schedule.FileFormatEnum.iCal)
    

    I have checked and confirmed that the tempFile path is valid, and pulled a copy of the file. The error is thrown when calling the Import function. What further steps can I take to diagnose why this function is throwing an error for the file in question?

    the date range is from a month in the past (August 11) to a month in the future (October 11)

    the stacktrace for the dll itself is:

    at C1.C1Schedule.o.a(DateTime A_0, CalendarInfo A_1)

    at C1.C1Schedule.o.c(DateTime A_0)

    at C1.C1Schedule.o.b(DateTime A_0)

    at C1.C1Schedule.q.a(String A_0, String A_1, DateTime& A_2)

    at C1.C1Schedule.j.a(StreamReader A_0)

    at C1.C1Schedule.j.b(StreamReader A_0)

    at C1.C1Schedule.j.c(Stream A_0)

    at C1.C1Schedule.i.a(Stream A_0)

    at C1.C1Schedule.i.a(String A_0)

    at C1.C1Schedule.C1ScheduleStorage.Import(String path, FileFormatEnum format)

    Note: the dll’s are the 4.5.2 version

  • Posted 12 September 2023, 8:17 am EST

    Hi James,

    Unfortunately, we could not replicate the issue on our end. We have attached the sample application for reference. (IcalLoad.zip)

    We request you provide us with the “tempFile” and a stripped-down version of your sample application, so that we could replicate the issue on our end and assist you accordingly.

    Thanks & Regards,

    Aastha

  • Posted 12 September 2023, 9:34 am EST

    icalfeed.zip

    Thank you for your reply. I took your sample application and substituted the sample ics file with the one causing issues in our application. I then received the error. A copy of the file is attached.

  • Posted 13 September 2023, 4:56 am EST

    Hi James,

    Thanks for providing the .ics file.

    It seems that the issue has occurred because the zone information has not been specified with the start and end date-time of the events in your file. Therefore, we have updated your file by adding the zone-information of the events and the issue seems to be resolved on our end.

    Kindly refer to the attached sample application for reference. (See ScheduleContactMove_Mod.zip)

    Thanks & Regards,

    Aastha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels