google calendar after url import only shows the last event - google-calendar-api

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

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

Related

Ical format import to the Google calendar

I have *.ics file. Where I have one event with one attendee but the event was imported but the attendee was not. What did I do wrong?
BEGIN:VCALENDAR
PRODID:-//github.com/rianjs/ical.net//NONSGML ical.net 4.0//EN
VERSION:4.0
BEGIN:VEVENT
ATTENDEE;CN=Martin Gabrle;RSVP=TRUE:mailto:martin.gabrle#daktela.com
DTSTART:20230202T060000Z
DTEND:20230202T070000Z
DTSTAMP:20230130T120027Z
SEQUENCE:0
UID:5489af48-6ccb-4ad6-aa33-39db4d549c49
END:VEVENT
END:VCALENDAR
I tried to export the event from google calendar. I changed the uid and imported it back, but the attendees weren't there either.

Property name with value in ICS file to set Out of Office event type in Google calendar

Can you please give me an advice, what is the correct property name with value (if there any is) for .ics file to display Out of Office status/event type in Google calendar ?
Based on Google calendar API here, there is just attribute "eventType" with values and it does not work.
This is .ics file example with "eventType" attribute in:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Client Events//NONSGML Client Events//EN
URL: https://portal.com/
REFRESH-INTERVAL;VALUE=DURATION:PT12H
X-PUBLISHED-TTL:PT12H
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
CLASS:PUBLIC
SEQUENCE:1
ORGANIZER:info#email.com
CREATED:20220504T070932Z
DTSTAMP:20220504T070932Z
DTSTART:20220520T130000Z
DTEND:20220520T143000Z
SUMMARY:Vacation
LOCATION:TULIP
DESCRIPTION:I am on vacation. \n\n\n
UID:AttendanceRequestIfddf97981654254D33260#https://portal.com/
EVENTTYPE:OUTOFOFFICE
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR
Thank you.

Google doesn't sync my subscribed ICS feed

I have a ICS feed for a calendar, that I subscribe from Google calendar.
As soon as I add the feed, it shows all the events perfectly. But when I edit events, it doesn't update. So it seems like it can read the feed, but doesn't sync it.
If I remove the feed and add it again, its still not synced. But if I add a parameter to the url (ex. &x=1), it will import the updates, but still not sync. So it seems like Google is caching the feed pr. url, but doesn't sync after the url has been added.
Anyone else had this issue, or know a solution?
SOLUTION UPDATE: 12/03 - 2020
I missed the fields "SEQUENCE" and "LAST-MODIFIED". Credits to #anmari for spotting the error.
The calendar now syncs perfectly with Google.
Example from the ICS file:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ZContent.net//Zap Calendar 1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
SUMMARY:Gudstjeneste - prædiken ved Enok Sørensen
UID:1177
DTSTART:20190915T073000Z
DTEND:20190915T103000Z
DTSTAMP:20190907T164050Z
LAST-MODIFIED:20200311T195313Z
SEQUENCE:2
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/gudstjeneste-15-09/
END:VEVENT
BEGIN:VEVENT
SUMMARY:Fredagsfællesskab
UID:1248
DTSTART:20190920T153000Z
DTEND:20190920T180000Z
DTSTAMP:20190909T201436Z
LAST-MODIFIED:20200312T062507Z
SEQUENCE:1
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/fredagsfaellesskab-20-09/
END:VEVENT
BEGIN:VEVENT
SUMMARY:Gudstjeneste - prædiken ved Leif Bach Kofoed
UID:1214
DTSTART:20190929T083000Z
DTEND:20190929T103000Z
DTSTAMP:20190909T185328Z
LAST-MODIFIED:20200311T210357Z
SEQUENCE:1
LOCATION:Nørregade 13, 6900 Skjern
URL:https://www.lm-kirken.dk/kalender/gudstjeneste-29-9/
END:VEVENT
END:VCALENDAR
Bjorn
to tell any calendar application that an event has been updated (so that it will sync it) one needs fields to be updated for the event that is being modified, and add:
LAST-MODIFIED:19960817T133000Z
SEQUENCE:1 (of update)
See also
ics event update failed in web calendar
and
Icalendar ICS update not working in google calendar
and the specification
https://www.rfc-editor.org/rfc/rfc5545#section-3.8.7.4

Google ics calendar feed fullday events

I have a full day event which I want to export to my Google calendar via an ics file. The format of the ics file is as follows
BEGIN:VCALENDAR
VERSION:2.0
TYPE:VCALENDAR
UID:xxx
PRODID:-//ABC//EN
X-PUBLISHED-TTL:1
CALSCALE:GREGORIAN
X-WR-CALNAME:ABC TEST - Calendar
BEGIN:VEVENT
TYPE:VEVENT
UID:xxx
STATUS:CONFIRMED
SEQUENCE:0
SUMMARY:Full day event
DESCRIPTION:
TRANSP:TRANSPARENT
DTSTART:20130910T000000Z
DTSTAMP:20130909T235959Z
DTEND:20130910T000000Z
I am facing 2 problems
In Google this event does not show up as a full day event i.e. It shows up as a normal event
How do I remove the time from the event i.e. Its a full day event but showing up as starting at 5:30 am . I am in the Indian Timezone UTC +5:30
You need to use the DATE format of RFC5545
In your case, that would be
DTSTART;VALUE=DATE:20130910
On the other hand, you do not need a DTEND.
You should also remove those TYPE properties ("TYPE:VCALENDAR" and "TYPE:VEVENT") which are not valid.
Finally, the first UID property (the one directly under TYPE:VCALENDAR) is not valid there. Only the second one is valid and required.

Recurrent events in iCalendar not working

I'm trying to add recurring events to my personal calendar via .ics, The client imports and adds the first event to the calendar but doesn't create other repeating events.
I'm actually creating a recurring event which happens daily, below is the sample of my .ics file.
BEGIN:VCALENDAR
PRODID;X-RICAL-TZSOURCE=TZINFO:-//com.denhaven2/NONSGML ri_cal gem//EN
CALSCALE:GREGORIAN
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
CREATED;VALUE=DATE-TIME:20111103T182116Z
DTEND;VALUE=DATE-TIME:20111104T130000Z
STATUS:CONFIRMED
DTSTART;VALUE=DATE-TIME:20111104T103000Z
TRANSP:OPAQUE
DTSTAMP;VALUE=DATE-TIME:20111103T182116Z
LAST-MODIFIED;VALUE=DATE-TIME:20111103T182116Z
UID:availability_slot42#chronus.com
DESCRIPTION:Availability slot from mentoring program
SUMMARY:Mentoring Slot
ORGANIZER:iitm_mentor3#chronus.com
RRULE:FREQ=DAILY;WKST=MO;
EXRULE:FREQ=WEEKLY;BYDAY=SA,SU
LOCATION:Daily withoiut until
SEQUENCE:0
END:VEVENT
END:VCALENDAR
looks like the problem is with the client s/w, not your ics file.
Your code above validates at http://severinghaus.org/projects/icv/
and loads and recurs fine in google calendar.
see https://www.google.com/calendar/embed?src=jpkdu09olie8uveopl72oguj2s%40group.calendar.google.com&ctz=Australia/Sydney
Cross test on some more other calendar clients to verify.

Resources