Search code examples
google-calendar-apiicalendarrfc2445rfc5545

google calendar after url import only shows the last event


I'm trying to make an .ics file and by URL import put the events into google calendar. But the problem is that after I import them to google calendar it only show the last event. I don't understand what am I doing wrong I even exported a calendar from GC and tried to generate my calendar to look exactly as the exported one.

Here is the URL to the .ics file: http://bme.hracsi.net/includes/download.php?sub=2,3,4&sem=2


Solution

  • All your events have the same UID RFC5545 §3.8.4.7 specifies "UID" itself MUST be a globally unique identifier.

    to make it work you must change this property value.

    BEGIN:VCALENDAR
    ...
    BEGIN:VEVENT
    ...
    UID:d41d8cd98f00b204e9800998ecf8427e
    END:VEVENT
    BEGIN:VEVENT
    ...
    UID:d41d8cd98f00b204e9800998ecf8427e
    UID:d41d8cd98f00b204e9800998ecf8427e
    ...
    UID:d41d8cd98f00b204e9800998ecf8427e
    UID:d41d8cd98f00b204e9800998ecf8427e
    END:VEVENT
    END:VCALENDAR