Android: Exception when mapping exception dates in appointments

Hi!

I get an exception: System.InvalidOperationException: 'Collection was modified; enumeration operation may not execute.'  when swiping through the appointment series, in day view, and I have mapped exception dates in Xaml

I have one - or more - exception dates stored in the apppointment with the RRule and the following mapping in Xaml:

                                <syncfusion:ScheduleAppointmentMapping

                                            ColorMapping="AppointmentColour"

                                            EndTimeMapping="EndTime"

                                            EndTimeZoneMapping="EndTimeZone"

                                            IsAllDayMapping="IsAllDay"

                                            LocationMapping="Location"

                                            NotesMapping="Note"

                                            RecurrenceExceptionDatesMapping="RecurrenceExceptionDates"

                                            RecurrenceRuleMapping="RecurrenceRule"

                                            ResourceIdsMapping="ResourceIDs"

                                            StartTimeMapping="StartTime"

                                            StartTimeZoneMapping="StartTimeZone"

                                            SubjectMapping="Name" />

                                   </syncfusion:SfSchedule.AppointmentMapping>

 

The views display the exception dates just fine, but when I start to swipe back and forth between the days in the day view I get the above error. When I remove the " RecurrenceExceptionDatesMapping" I get no error - but then I obviously get no exceptions to the rule. 

I load all appointments before showing the sfschedule control so I have no code running when the control is operating.

Please help.

Regards

Flemming Juul


OS: Windows 11 (preview)

VS: Version 16.11.6

SfSchedule version: 19.2.0.57



8 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team November 19, 2021 02:29 PM UTC

Hi Flemming, 
 
Thank you for using Syncfusion products. 
 
#Regarding Exception when mapping exception dates in appointment 
We have checked the reported query from our end. We could not replicate the reported scenario from our end. we have prepared the simple sample as per given code snippet and checked the sample with Android 9 API 28 (Honor 9N) device. Please refer to the sample in the following locations for your reference. 
 
 
 
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details, 
 
·       Device configuration details 
·       Share the steps to replicate the issue 
·       Syncfusion and Xamarin.Forms update version 
 
It will be helpful for us to check on it and provide you the solution at the earliest. 
  
Regards,
SaiGanesh Sakthivel
 



FJ Flemming Juul replied to SaiGanesh Sakthivel November 23, 2021 09:10 PM UTC

Hi SaiGanesh

Thanks for the prompt reply.

I have tried your sample and it does indeed work and I get no exceptions.

I have, however, been digging some more into this and I found that if I set "ShowResourceView" to false (and thus do not show resources), I get no errors when swiping with exception dates.

I know this might be a long shot, but can you verify that you can have view resources and still swipe through appointments with exceptions and not get errors?

Thanks in advance

Regards

Flemming Juul



SS SaiGanesh Sakthivel Syncfusion Team November 24, 2021 01:30 PM UTC

Hi Flemming, 
 
Thank you for the update. 
 
#Regarding Exception when mapping exception dates in appointment 
Currently, we are validating the reported scenario from our end and we will update the further details on or before the November 26,2021We appreciate your patience until then.  
  
Regards,  
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team November 26, 2021 02:02 PM UTC

Hi Flemming, 
 
Thank you for the patience. 
 
#Regarding Exception when mapping exception dates in appointments 
We have found the reported issue and we have a fixed the issue. We will include the issue fix in our upcoming weekly nuget release which is expected to roll out on December 7,2021. We appreciate your patience until then. 
 
Regards,    
SaiGanesh Sakthivel 


Marked as answer

FJ Flemming Juul November 26, 2021 04:27 PM UTC

Hi SaiGanesh,

that is very good news.

Looking forward to the next release.


Regards

Flemming Juul



SS SaiGanesh Sakthivel Syncfusion Team November 29, 2021 11:53 AM UTC

Hi Flemming, 
 
Thank for the update. 
 
We will let you know once the release rolled out. We appreciate your patience until then.  
  
Regards,
SaiGanesh Sakthivel
 



SS SaiGanesh Sakthivel Syncfusion Team December 10, 2021 06:50 AM UTC

Hi Flemming, 
 
Thank you for the update. 
 
#Regarding Exception when mapping exception dates in appointment 
We regret to inform you that due to the testing phase, we does not include the fix in our weekly nuget release. We will include it in our upcoming 2021 Volume 4 release which is expected to roll out in the mid of December, 2021. We will let you once nuget gets published and appreciate your patience until then. 
 
Regards,
SaiGanesh Sakthivel
 



MS Muniappan Subramanian Syncfusion Team December 21, 2021 11:45 AM UTC

Hi Flemming, 
 
We are glad to announce that our Essential Studio 2021 Volume 4 Main Release V19.4.0.38 is rolled out and is available for download under the following link. 
 
 
The mentioned issue with “Exception when mapping exception dates in appointment “issue has been fixed and included in this release. 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Muniappan S

Loader.
Up arrow icon