GAS-ICS-Sync
GAS-ICS-Sync copied to clipboard
Events whose titles begin with "(Absent)" not syncing
It's pretty hard for me to be certain of the cause of this issue, but I can describe what is happening.
I have a few events that have "(Absent)" at the beginning of the event title. These events are not syncing normally.
I set up the script to send me update emails whenever events are added or removed. Each time an email goes out, I get notice that these types of events have been added, but when I look at my Google Calendar they seem to not exist. Thus, every time the script runs, it tries to re-add these sorts of events (so I see them mentioned over and over as added events on the update email), but the never actually appear on the calendar.
I have a hunch that it has something to do with the fact that these events use "(" as the first character, but truly I don't know for sure. This seems to happen ONLY on my events that start with "(Absent)."
The title itself is almost certainly not causing this.
Could you share the definition of one of these events (open the *.ics in a text editor)?
The title itself is almost certainly not causing this.
Could you share the definition of one of these events (open the *.ics in a text editor)?
Here is an example of the event information as shown in the *.ics file. I did modify the summary and description to hide a first name and last name that appeared in those fields (replaced with FName and LName).
BEGIN:VEVENT
URL;VALUE=URI:https://app.tutorbird.com/Teacher/Calendar/EventDetails.aspx?EventID=27492499
UID:27492499
X-COLOR:000000
DTSTART:20220307T200000
DTEND:20220307T210000
SUMMARY:(Absent) LName\, FName
DESCRIPTION:
STATUS:CANCELLED
LOCATION:
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:(Absent) LName\, FName
END:VALARM
END:VEVENT
STATUS:CANCELLED
Google calendar treats status = cancelled as if you deleted the event from your calendar, that's why they are not shown in the calendar. You can actually visit https://calendar.google.com/calendar/u/0/r/trash, select the calendar you are syncing to, and you will find all the events in the trashbin.
If you want to ignore the status property just delete lines 330-334 in helpers.gs. The events should show up after the next sync.
@trevorkafka - did you try out @jonas0b1011001 's suggestion?
Closing as there has been no response. Please comment again if this is still an issue