GAS-ICS-Sync icon indicating copy to clipboard operation
GAS-ICS-Sync copied to clipboard

Events whose titles begin with "(Absent)" not syncing

Open trevorkafka opened this issue 3 years ago • 3 comments

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)."

trevorkafka avatar May 11 '22 23:05 trevorkafka

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)?

jonas0b1011001 avatar May 12 '22 17:05 jonas0b1011001

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

trevorkafka avatar May 17 '22 15:05 trevorkafka

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.

jonas0b1011001 avatar May 17 '22 17:05 jonas0b1011001

@trevorkafka - did you try out @jonas0b1011001 's suggestion?

derekantrican avatar Mar 22 '23 20:03 derekantrican

Closing as there has been no response. Please comment again if this is still an issue

derekantrican avatar Mar 27 '23 16:03 derekantrican