googleworkspace / googleworkspace/apps-script-samples

apps-script-samples/solutions/automations/vacation-calendar/ throws error on events that are part of an event series

Open
#384 1 comment 0 reactions 1 assignee View on GitHub

@jpoehnelt is already working on this.

Since Feb 13, 2023.

Dominant language
JavaScript
Stars
5.2k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

Summary

I use the script provided here (slightly adapted) to import events from one calendar to another. This works mostly perfectly fine, thank you! But in some cases I get the following error message:

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

My guess is that this happens for events that are part of an event series.

Expected Behavior

The events that are part of the events should be imported. Even if the original event is not in the list.

Actual Behavior

The error mentioned above is thrown.

Steps to Reproduce the Problem

  1. Setup the project as described here
  2. In the personal calender of a group member add an event series containing at least one of the respective keywords
  3. Run the skript

Thanks for your help or for fixing the issue!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.