GAS-ICS-Sync
GAS-ICS-Sync copied to clipboard
'Invalid start time' error from calendar.events.update
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!).
Did something change in the API? What can I do?
@alexnb98 has funded $10.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
@alexnb98 - is this consistently failing? Can you share your ICS file?
Yes, it's consistenly failing since 2 weeks. Here is the ICS file, I removed all private information: https://pastebin.com/24DNY3yL
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.
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?
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.
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
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.
Hello, I have the same issue synchronizing a couple of outlook calendars into the Gmail one. How can I solve the problem? Thank you.
Hello, I needed to delete all the Outlooks calendar in the Google Calendar and execute the script again and it works. Thanks all.
Same issue here ✋