Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Vacation Calendar sync doesn't work for some users #191

Open
real-gizmo opened this issue Jul 14, 2021 · 9 comments
Open

Vacation Calendar sync doesn't work for some users #191

real-gizmo opened this issue Jul 14, 2021 · 9 comments

Comments

@real-gizmo
Copy link

Hi, in general the script works for syncing the out of office events into the shard calendar. For some reason however, I receive errors for some users and sometimes for certain events of a user:

Error attempting to import event: GoogleJsonResponseException: API call to calendar.events.import failed with error: Invalid iCalUID value.. Skipping.

Do you have any clue what the cause might be?

@janmacura
Copy link

janmacura commented Dec 1, 2021

Hi @real-gizmo, I have the same issue with one user with some of his events. Did you find any solution?

@janmacura
Copy link

janmacura commented Dec 1, 2021

Hi @sqrrrl @erickoledadevrel, this script is very useful, thanks a lot! Do you have any clue how to fix this? Thanks, Jan

{ code: 400,
errors:
[ { reason: 'invalid',
domain: 'global',
message: 'Invalid iCalUID value.' } ],
message: 'Invalid iCalUID value.' }

@simaoafonso-pwt
Copy link

See #209

@janmacura
Copy link

@simaoafonso-pwt didn't help, still getting the same error for some events, mainly recurring events.

@jacek-jablonski
Copy link

Up. Same error for me.

@simaoafonso-pwt
Copy link

@jacek-jablonski See #209 for Vacation Calendar fixes, I'm using it now and still works (for now). The APIs were deprecated years ago and this repo was not updated. Worse, I opened a MR over 1 year ago and it has 0 engagement from Google.

It's like using abandoned software, but they still take your money!


I also got some "Invalid iCalUID value" warnings, usually when trying to create new events. If you just import existing events (like the script does), it works for me. Be sure to use a different vacation calendar, not the one where any user can add their own events.

@jacek-jablonski
Copy link

@simaoafonso-pwt unfortunately, your version fetches all people from org, not only team members. I will do some adjustments for my case.

@antoni-szych-rtbhouse
Copy link

Looks like Invalid iCalUID value is shown for all recurring events that are not created by the user running the script. In my case all my recurring events were imported successfully, however all of recurring events from my teammates got the Invalid iCalUID value error. What I saw, was that mine recurring events had recurrence field, as well as id and iCalUID values were differing only in @google.com:
image

while the ones of my teammates had no recurrence field and the id had additionally the full timestamp of the specific event occurence:
image

Setting id to null before importing yield no results (no error, but events not imported), same with removing timestamp from id. I guess that importing recurring events requires to specify correct recurrence, but at the same time, recurrence is not public for public events from other users, only for "mine".

@simaoafonso-pwt
Copy link

@antoni-szych-rtbhouse Maybe the solution is running the script with some kind of "admin" user that has read access to the calendars of anyone? Not even sure if Google Apps Script even supports these kind of functional users.

Even worse is having to copy paste random code from Github repos to have a proper vacation calendar, instead of being a checkbox on the product.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants