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

Reoccurring events duplicated in Outlook do not sync with reoccurrence

Open watercrossing opened this issue 3 years ago • 5 comments

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.

Example ICS

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?

watercrossing avatar Jun 27 '21 21:06 watercrossing

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.

derekantrican avatar Jun 27 '21 21:06 derekantrican

Add event.removeProperty('recurrence-id'); after line 439 in Helpers.gs Bildschirmfoto 2021-06-30 um 21 18 27

jonas0b1011001 avatar Jun 30 '21 19:06 jonas0b1011001

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. image

watercrossing avatar Jul 01 '21 09:07 watercrossing

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

jonas0b1011001 avatar Jul 01 '21 14:07 jonas0b1011001

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?

watercrossing avatar Jul 01 '21 15:07 watercrossing