Calendar: Import of a series of events
-
Re: Calendar: Import of a series of events
Could someone please move the linked post to this forum section? Thanks!
-
@Nighty42 Importing multiple items to calendars should work as well as single events.
Probably there is some issue with the particular file you are trying to import. It may be a bug in Vivaldi handling the file or it may be some problem in the file itself. You can check if the file is valid iCalendar by using a validator, f.ex. https://icalendar.org/validator.html
If the file is valid then it would be good to try and get more information so we can fix the problem.
-
Hi @eggert, thanks for your answer.
I tested a little bit and 2 issues occured in the validator:
- Invalid TZID: Outlook/Exchange seems to set invalid TZIDs - I changed them to "Europe/Berlin" and the issue disappeared.
Source: https://itecnote.com/tecnote/windows-converting-olson-tzid-to-windows-time-zone/ - If I change the title of one individual appointment within a series Outlook generates a new VEVENT block within the ICS file to be exported for this single changed appointment but uses the same UID value for each appointment-specific VEVENT as for the appointment series VEVENT. The validator shows the error "UID value is not unique, duplicate found near line # 21. Reference: RFC 5545 3.8.4.7. Unique Identifier". If I import this file into the Vivaldi calendar the import is in fact being executed but not shown within Vivaldi calendar: Outlook synchronizes my calendar and shows the series without the individually changed title (after the import it's the one for the whole series for all single appointments).
Test content:
BEGIN:VCALENDAR PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN VERSION:2.0 METHOD:PUBLISH X-MS-OLK-FORCEINSPECTOROPEN:TRUE BEGIN:VTIMEZONE TZID:Europe/Berlin BEGIN:STANDARD DTSTART:16011028T030000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 TZOFFSETFROM:+0200 TZOFFSETTO:+0100 END:STANDARD BEGIN:DAYLIGHT DTSTART:16010325T020000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3 TZOFFSETFROM:+0100 TZOFFSETTO:+0200 END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT CLASS:PUBLIC CREATED:20221202T123708Z DESCRIPTION: DTEND;TZID=Europe/Berlin:20221202T143000 DTSTAMP:20221202T123708Z DTSTART;TZID=Europe/Berlin:20221202T140000 LAST-MODIFIED:20221202T123708Z RRULE:FREQ=MONTHLY;BYDAY=FR;BYSETPOS=1 SEQUENCE:0 SUMMARY:TEST TRANSP:OPAQUE UID:838956d9-189b-4985-9938-fe21ffab8f81 X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//E N">\n<HTML>\n<HEAD>\n<META NAME="Generator" CONTENT="MS Exchange Server ve rsion 16.0.15726.20118">\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n<!-- Converted from text/plain format -->\n\n<P><FONT SIZE=2> \;</FONT>\n</P>\n\n</B ODY>\n</HTML> X-MICROSOFT-CDO-BUSYSTATUS:BUSY BEGIN:VALARM TRIGGER:PT0M ACTION:DISPLAY DESCRIPTION:Reminder END:VALARM END:VEVENT BEGIN:VEVENT CLASS:PUBLIC CREATED:20221202T123708Z DESCRIPTION: DTEND:20230203T133000Z DTSTAMP:20221202T123708Z DTSTART:20230203T130000Z LAST-MODIFIED:20221202T123708Z PRIORITY:5 RECURRENCE-ID:20230203T130000Z SEQUENCE:0 SUMMARY:TEST with person 2 TRANSP:OPAQUE UID:838956d9-189b-4985-9938-fe21ffab8f81 X-ALT-DESC;FMTTYPE=text/html:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//E N">\n<HTML>\n<HEAD>\n<META NAME="Generator" CONTENT="MS Exchange Server ve rsion 16.0.15726.20118">\n<TITLE></TITLE>\n</HEAD>\n<BODY>\n<!-- Converted from text/plain format -->\n\n<P><FONT SIZE=2> \;</FONT>\n</P>\n\n</B ODY>\n</HTML> X-MICROSOFT-CDO-BUSYSTATUS:BUSY X-MICROSOFT-CDO-IMPORTANCE:1 BEGIN:VALARM TRIGGER:PT0M ACTION:DISPLAY DESCRIPTION:Reminder END:VALARM END:VEVENT END:VCALENDAR
Copy this into notepad++ and you're able to reproduce the described issue by removing/adding lines 46-72. Removing the lines would lead to a successful import, adding them would lead to a successful synchronizing, but wouldn't be shown in the Vivaldi calendar.
- Invalid TZID: Outlook/Exchange seems to set invalid TZIDs - I changed them to "Europe/Berlin" and the issue disappeared.
-
@Nighty42 Thanks for detailed report. I will check this out once finished with current task.
-
Hi @eggert, what's the status of this? Were you or one of your colleagues able to reproduce it?
-
@Nighty42 Sorry for late reply, things have been moving slow with vacations during summer.
I can not reproduce the issue, the events from your example data import properly for me without issue.
There have been some changes in import, can you still reproduce?
-
Hi @eggert, yes, issue is still reproducable:
Test cases (appointment starts at 02.12.2022):
- Copy ics content from above and remove lines 46-72, try to import - nothing will happen
- Copy ics content from above and try to import - import will be successful
Version: 6.1.3035.302 (Stable channel) (64-Bit)
-
@Nighty42 Thanks for replying.
Could you please share some info on the calendar you are importing to? Is it a local calendar (new or existing) or a remote one (CalDAV / Google / Vivaldi ...)?
There are different code paths depending on which type of calendar and it can affect how the import goes.
Does the import for sure not work, or is it possible that the import succeeds and the events get correctly created but the progress is incorrectly reported? (Am currently working on a bug where that happens)
-
Hi @eggert, I try to import the ics file to a caldav calendar of my email account (provider: mailbox.org). The import doesn't work - I don't see any new entry if I import the ics file with the content mentioned above. Also no log message appears.