ICS Import does not work - ics has wrong entry

I don’t need support, but have a How To article

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.2

Summary of the issue you are facing:

I had a problem while importing my ics calendars. The Problem was an invalid ics file

So how did I found the problem?
I opened the DevTools of the Browser and saw an error in the console

SettingsImportSection.vue:194 h: Missing parameter value in 'LOCATION;VALUE=myadress'

Then I saw - the ics file is invalid

Steps to replicate it (hint: details matter!):

  1. try to import my ics file
BEGIN:VCALENDAR
PRODID:-//Proton AG//WebCalendar 5.0.226.1.a//EN
VERSION:2.0
METHOD:PUBLISH
CALSCALE:GREGORIAN
X-WR-TIMEZONE:Europe/Zurich
X-WR-CALNAME:TEST
BEGIN:VTIMEZONE
TZID:Europe/Zurich
LAST-MODIFIED:20250218T131521Z
X-LIC-LOCATION:Europe/Zurich
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VTIMEZONE
TZID:Europe/Berlin
LAST-MODIFIED:20250218T131521Z
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
SEQUENCE:0
DTSTAMP:20250223T154627Z
DTSTART;TZID=Europe/Zurich:20230503T151500
DTEND;TZID=Europe/Zurich:20230503T161500
SUMMARY:summery
LOCATION;VALUE=myadress
:myadress
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR

It doesn’t work.
The only error you get is

Keine gültige Dateien gefunden, Import wird abgebrochen.
my.ics konnte nicht analysiert werden

So I found the wrong line.

LOCATION;VALUE=myadress
:myadress

I changed it to

LOCATION:myadress

then it worked

This should be a help for others

1 Like