derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.5k stars 192 forks source link

ReferenceError: removePastEventsFromCalendar is not defined #405

Closed MoonShadow-NM closed 7 months ago

MoonShadow-NM commented 7 months ago

The problem

When running the script, when there are items that are to be deleted, they are not. In the execution log, the very last line is this image

Yes, the script is configured correctly as I have been running it for several months on version 5.7. I upgraded to 5.8 a few weeks ago and noticed that events that were deleted/removed in Outlook were no longer being removed from GCal. I see this in the log: image

Version of GAS-ICS-Sync

5.8

Additional information & file uploads

No response

MoonShadow-NM commented 7 months ago

Just to note, I reverted back to 5.7 and it works as expected.

jonas0b1011001 commented 7 months ago

Yes, the script is configured correctly

5.8 introduced new settings, seems like you are using the 5.7 settings. https://github.com/derekantrican/GAS-ICS-Sync/blob/17cde1a768ad4c6d5ede0e7401e20606fff0be2a/Code.gs#L39

MoonShadow-NM commented 7 months ago

Ah, I know what happened, then. I didn't want to lose my config settings, so I just copied the bottom portion of the script. I think I need to read the entire script to make sure I don't miss important things like this. Thanks.