GAS-ICS-Sync
GAS-ICS-Sync copied to clipboard
Reoccurring events duplicated in Outlook do not sync with reoccurrence
I have got multiple reoccuring events in Outlook that do not sync to google correctly. Neither using GAS-ICS-Sync, or Google Calendar sync natively.
These events were created by duplicating an existing reoccuring event in Outlook (right click + drag the event, then select copy). I did this so that the meetings retain their Teams link (i.e. the following meeting will have the same chat as the old meeting).
Steps to reproduce in Outlook
- Create event, say 30min, make it reoccuring (for example weekly, end after 2 occurrences)
- right click + drag the event to perhaps 30min later, then select copy
- Make this newly created event also reoccuring
- Both GAS-ICS-Sync and Google calendar sync will fail to sync the reoccurence of the second event.
Something seems to be wrong with the ICS. The second reoccuring event has a RECURRENCE-ID that links it to the first one, even though they should just be separate events. Is this something that can be fixed / worked-around in GAS-ICS-Sync?
Thanks for reporting. I would imagine that is a bug with Outlook. I'll report it to them and let you know if there are any updates.
Add event.removeProperty('recurrence-id');
after line 439 in Helpers.gs
Add
event.removeProperty('recurrence-id');
after line 439 in Helpers.gs
This creates a toggle scenario, where on first sync the 11:30 event on the 8th appears, but on second sync the event gets deleted again.
True, sorry for that. We have to remove the property at an earlier stage.
Undo the change from above and add
if (event.hasProperty('recurrence-id') && (event.hasProperty('rrule') || event.hasProperty('rdate'))){
event.removeProperty('recurrence-id');
}
after line 171 in Helpers.gs
Thank you @jonas0b1011001 , that seems to have done the trick. My Google calendar just got much busier! While clearly a bug with Exchange/Outlook/Microsoft, I wonder if merging this into GAS-ICS-Sync is possible?