+1 vote
in Rock by TinaStephens (8.6k points)
edited

Jason Burgoyne https://rock.sv.cc/Person/130735 at Sun Valley gets this error when he tries to access group scheduling (or when I impersonate him). He has the proper security and I don't see anything in his history. What do I look for next to solve this?enter image description here

by (13.1k points)
(Originally by Unknown) So far I was able to recreate the issue by using the filters- Group: Online Hosts - All Locations - All Schedules - Week ending on 12/25/2022
by (13.1k points)
(Originally by Unknown) @TinaStephens I was able to get this working temporarily by editing the block code and adding this line code to line 1243: attendanceOccurrencesList = attendanceOccurrencesList.Where( a => a.ScheduledDateTime != null ).ToList();
by (13.1k points)
(Originally by Unknown) @TinaStephens There seems to be an attendance occurrence for that group that doesn't have a valid schedule for the week of Christmas. I haven't located which one if the problem yet but in the mean time I added that code fix as a work around. If there is a task for this, can you assign it to me and I will follow up with a solution.
by TinaStephens (8.6k points)
@MasonKinyon I tagged you on the task. Sun Valley is aware they will go over hours but they are fine with that.

1 Answer

0 votes
by (13.1k points)
edited
 
Best answer

Originally posted by Unknown

This issue is triggered when the group scheduler is trying to load an attendance occurrence that is tied to a schedule that doesn't have a future occurrence date. The short term solution would be either to find the problem attendance occurrence/schedule and fix it or use the my code fix in the comments above.
(You don't need to worry about this Tina since I already fixed the issue for Sun Valley)

I submitted an issue to Spark so that they can get this issue fixed permanently.
https://github.com/SparkDevNetwork/Rock/issues/5241

Welcome! Here you can ask questions and receive answers (hopefully) from other members of our team.
...