Question

Photo of Greg Leininger

0

Exception thrown when sending attendance reminder emails.

I have four different group types that each have their own job for sending out the attendance reminder for that group type. Now that I have upgraded to version 4.1, one of those four jobs throws the error below every time it runs. Strange, since the other attendance reminder jobs run fine, using the same system email. The one that fails is for group type 'Life Group' (renamed from Small Group). Any ideas? Thanks in advance.

Exception Type

Source Description  
System.NullReferenceException DDay.iCal Object reference not set to an instance of an object.
  • Photo of David Leigh

    0

    Greg,

    I would guess that this error is caused by a problem with the meeting schedule.
    Check through the Groups of type "Life Group" to make sure that each one has valid Group Schedule settings - ie. either the Group Schedule is set to "None" or the schedule settings are correctly set for the Group. You might find the source of the problem there.

     

  • Photo of Greg Leininger

    0

    Thank you David! I got it fixed since you got me on the right track, but that leads to another question. See, all of my groups have a schedule and there was nothing noticeably "wrong" with any of them. But yesterday, I noticed on the Schedules page under Check-in Configuration there are a bunch of schedules with the name 'undefined'. What's that all about? I noticed that is even the case in the screenshot in the documentation. You can see a list of undefined schedules. So, yesterday I had clicked on one of those undefined schedules, recognized what group that schedule was and gave it a name. Well, that is what broke my attendance email job, somehow. Once I set that group to a schedule of None then I could delete that schedule I had named that was previously undefined. Then I went back to that group and reset the schedule. Then manually ran the email job and worked fine. So.... is there really supposed to be this list of undefined schedules (one for every life group it looks like)?

    Capture.PNG

    • David Leigh

      My guess is that this may have been caused by the upgrade. Were the undefined Schedules used for scheduling anything else other than Group Meetings?

    • Greg Leininger

      To answer your question, it looks like the schedules are all used for group meetings. I don't know why our group schedules would show up here as they are not named schedules. This screenshot is from the Rock documentation so clearly I'm not the only one with these undefined schedules showing up. I just wonder if this is a bug or something I need to do something about.

    • David Turner

      There's a block setting on that block to display "unnamed" schedules or not. It should be set to "No".