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

'Invalid start time' error from calendar.events.update

Open alexnb98 opened this issue 2 years ago • 11 comments
trafficstars

About last week ago the script stopped syncing my events from my outlook calendar to google calendar. Before that it worked perfectly for 1 and half years (thanks for that!).

image

Did something change in the API? What can I do?

alexnb98 avatar Feb 20 '23 15:02 alexnb98

@alexnb98 has funded $10.00 to this issue.


IssueHuntBot avatar Feb 20 '23 15:02 IssueHuntBot

@alexnb98 - is this consistently failing? Can you share your ICS file?

derekantrican avatar Feb 21 '23 05:02 derekantrican

Yes, it's consistenly failing since 2 weeks. Here is the ICS file, I removed all private information: https://pastebin.com/24DNY3yL

alexnb98 avatar Feb 23 '23 07:02 alexnb98

This is a duplicate of #303, I was not able to reproduce the error message yet. Could you share the version of the event that is currently in your google calendar (export gcal to ics, open in notepad, ctrl+F the failing event id from the log above) and the updated version of the same event from the ics source?

You are running an old version, i recommend you update to 5.7 so that we are talking about the same code.

jonas0b1011001 avatar Feb 23 '23 09:02 jonas0b1011001

Hello, how can I find the event id? When I copy the id in the log and paste it into the google calender ics. I find no results?

image

alexnb98 avatar Feb 27 '23 07:02 alexnb98

My bad, make the following change in helpers gs Line229 Logger.log("Updating existing event " + calendarEvents[index].id);

Run the script again and you should get a different id in the log.

jonas0b1011001 avatar Feb 27 '23 09:02 jonas0b1011001

Perfect, this is the event that fails. It's an event that repeats and has no end date:

UID:[email protected]
CLASS:PUBLIC
CREATED:20220429T083454Z
DESCRIPTION:\n
LAST-MODIFIED:20230211T101810Z
LOCATION:
SEQUENCE:205
STATUS:CONFIRMED
SUMMARY:Lunch
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=Europe/Budapest:20230213T093000
DTEND;TZID=Europe/Budapest:20230213T110000
RRULE:FREQ=WEEKLY;WKST=MO;UNTIL=20240129T083000Z;INTERVAL=2;BYDAY=MO
DTSTAMP:20230301T072904Z

alexnb98 avatar Mar 01 '23 15:03 alexnb98

After deleting this event the script works again and the sync also. I also upgraded to the latest version. Thanks for your help and the work that you put into this project.

alexnb98 avatar Mar 01 '23 15:03 alexnb98

Hello, I have the same issue synchronizing a couple of outlook calendars into the Gmail one. How can I solve the problem? Thank you.

guillermovaldivi avatar Mar 01 '23 16:03 guillermovaldivi

Hello, I needed to delete all the Outlooks calendar in the Google Calendar and execute the script again and it works. Thanks all.

guillermovaldivi avatar Mar 01 '23 17:03 guillermovaldivi

Same issue here ✋

Gnzlt avatar May 30 '23 03:05 Gnzlt