Importing multiple events to Outlook 2003 in one .ics file - calendar

I have a web app that contains many specific events for users in a MySQL database. I want to generate one .ics file that users can download that contains all of these events.
I'm not able to get Microsoft Outlook 2003 to acknowledge anything past the first event in my ICS file. Are there any known workarounds for this issue? Or am I doing anything wrong?
Here's my ICS file contents:
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20120222T120000
DTEND:20120222T123000
SUMMARY:Event Name 1
LOCATION:
DESCRIPTION:This is the description of event 1.
PRIORITY:3
END:VEVENT
END:VCALENDAR
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20120223T120000
DTEND:20120223T123000
SUMMARY:Event Name 2
LOCATION:
DESCRIPTION:This is the description of event 2.
PRIORITY:3
END:VEVENT
END:VCALENDAR
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20120224T120000
DTEND:20120224T123000
SUMMARY:Event Name 3
LOCATION:
DESCRIPTION:This is the description of event 3.
PRIORITY:3
END:VEVENT
END:VCALENDAR
Thanks.

You can try with only one calendar with multiple events:
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20120222T120000
DTEND:20120222T123000
SUMMARY:Event Name 1
LOCATION:
DESCRIPTION:This is the description of event 1.
PRIORITY:3
END:VEVENT
BEGIN:VEVENT
DTSTART:20120223T120000
DTEND:20120223T123000
SUMMARY:Event Name 2
LOCATION:
DESCRIPTION:This is the description of event 2.
PRIORITY:3
END:VEVENT
END:VCALENDAR

Related

ICS file doesn't load in the calendar

I am creating this ICS file and validating it here: Validator
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTART:20221221T202256Z
DTEND:20221221T205256Z
DESCRIPTION:test
LOCATION:v gyzy
DTSTAMP:20221221T202256Z
UID:63a36b20cc912
END:VEVENT
END:VCALENDAR
But when I double-click on it, it doesn't load as event in the calendar:

ICS file in gmail - EXDATE (excluding dates) does not work in gmail

I have ics file with EXDATE and this not work for gmail.
It works in outlook but gmail add calendar event also for dates that are excluded.
This is known issue or I have some bugs in ics?
BEGIN:VCALENDAR
VERSION:2.0
PRODID: something
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
X-WR-TIMEZONE:Europe/Oslo
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Oslo
TZURL:http://tzurl.org/zoneinfo-outlook/Europe/Oslo
X-LIC-LOCATION:Europe/Oslo
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Some:mailto:some#some.com
ATTENDEE;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED;RSVP=TRUE;CN=some#some.com:mailto:some#some.com
DESCRIPTION;LANGUAGE=en-US:
SUMMARY:Test
DTSTAMP:20210331T112255
DTSTART;VALUE=DATE-TIME:20210305T060000
DTEND;VALUE=DATE-TIME:20210305T133000
RRULE:FREQ=DAILY;UNTIL=20210308T060000;INTERVAL=1
EXDATE;VALUE=DATE-TIME:20210306T123000
EXDATE;VALUE=DATE-TIME:20210307T123000
TRANSP:OPAQUE
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR
another EXDATE also not works for gmail but works in outlook
EXDATE;VALUE=DATE-TIME:20210306T123000,20210307T123000
Thanks for any advice!

In gmail, Add to calendar button not working properly in ics file header

I sent invitation mail with attachment of .ics file. but when mail is sent to the user, User have a .ics file header with message body and a attachment link
In ics file heade, when user click on add calendar button to add event in the calendar. it does not add event in the calendar and just loading after some time shows the message
'Calendar could not load the data. Please try reloading later.'
Here is my .ics file
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20190514
DTEND;VALUE=DATE:20190515
RRULE:FREQ=DAILY;COUNT=2
DESCRIPTION:
LOCATION:Vrandawan Dham Colony\, Ujjain\, Madhya Pradesh 456010\,
India
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:AllDRepeatDaily_times
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR`
I removed UID from Ics file but it does not work for me
I am thankful, If anyone help me regarding this issue
Below code works for me
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20190514
DTEND:20190515
RRULE:FREQ=DAILY;COUNT=2
DESCRIPTION:
LOCATION:
India
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:AllDRepeatDaily_times
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR

Reading a iCal file only gets most recent event?

I have an ics file which is generated by a project I am doing, and it validates in http://severinghaus.org/projects/icv/. When I try to import it into KOrganizer or Maya it only loads the most recent event however. For example, the ics file is:
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN
VERSION:2.0
BEGIN:VEVENT
DTSTAMP:20130504T094939Z
CREATED:20130503T230000Z
LAST-MODIFIED:20130504T094939Z
SUMMARY:Cat
DTSTART:20130504T000000
DTEND:20130504T010000
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20130504T094939Z
CREATED:20130503T230000Z
LAST-MODIFIED:20130504T094939Z
SUMMARY:Foo
DTSTART:20130504T000000
DTEND:20130504T010000
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20130504T094939Z
CREATED:20130503T230000Z
LAST-MODIFIED:20130504T094939Z
SUMMARY:Dog
DTSTART:20130504T000000
DTEND:20130504T010000
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
It will read it in, but only display the first event. It also changes the ics file to
BEGIN:VCALENDAR
PRODID:-//K Desktop Environment//NONSGML libkcal 4.3//EN
VERSION:2.0
X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0
BEGIN:VEVENT
DTSTAMP:20130504T094939Z
CREATED:20130504T094939Z
LAST-MODIFIED:20130504T094939Z
SUMMARY:Cat
DTSTART:20130504T000000
DTEND:20130504T010000
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
Does anyone know if it is my ics file which is at fault, or Kontact?
Well, for one thing, every event must have a unique UID property..

update calendar failed when rrule has BYDAY && (COUNT or UNTIL)

I use ical and darwin in my web site.
when i create a event with rrule, it failed when the event has byday and count.
Forexample:
success 1(weekly and no count):
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ZHAOXI//iCalendar 1.0.0//
BEGIN:VEVENT
UID:20130410T020715CST-05076UU95w#ZHAOXI
DTSTAMP:20130409T180715Z
CLASS:PUBLIC
DTSTART:20130411T110000
DTEND:20130411T150000
ORGANIZER;SCHEDULE-AGENT=NONE;SCHEDULE-STATUS=5.3:MAILTO:user_3#zhaoxi.me
RRULE:FREQ=WEEKLY;BYDAY=TH,SA
SEQUENCE:0
SUMMARY:ssssss
X-ZX-RESPONSE:Y
END:VEVENT
BEGIN:VEVENT
UID:20130410T020715CST-05076UU95w#ZHAOXI
DTSTAMP:20130409T180718Z
CLASS:PUBLIC
DTSTART:20130413T130000
DTEND:20130413T170000
ORGANIZER:MAILTO:user_3#zhaoxi.me
RECURRENCE-ID:20130413T110000
SEQUENCE:1
SUMMARY:ssssss
X-ZX-RESPONSE:Y
END:VEVENT
END:VCALENDAR
success 2 (daily with count):
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ZHAOXI//iCalendar 1.0.0//
BEGIN:VEVENT
UID:20130410T021754CST-68882mJ5aU#ZHAOXI
DTSTAMP:20130409T181754Z
CLASS:PUBLIC
DTSTART:20130416T173000
DTEND:20130416T200000
ORGANIZER;SCHEDULE-AGENT=NONE;SCHEDULE-STATUS=5.3:MAILTO:user_3#zhaoxi.me
RRULE:FREQ=DAILY;COUNT=10
SEQUENCE:0
SUMMARY:sdf
X-ZX-RESPONSE:Y
END:VEVENT
BEGIN:VEVENT
UID:20130410T021754CST-68882mJ5aU#ZHAOXI
DTSTAMP:20130409T181805Z
CLASS:PUBLIC
DTSTART:20130417T190000
DTEND:20130417T213000
ORGANIZER:MAILTO:user_3#zhaoxi.me
RECURRENCE-ID:20130417T173000
SEQUENCE:1
SUMMARY:sdf
X-ZX-RESPONSE:Y
END:VEVENT
BEGIN:VEVENT
UID:20130410T021754CST-68882mJ5aU#ZHAOXI
DTSTAMP:20130409T181850Z
CLASS:PUBLIC
DTSTART:20130419T183000
DTEND:20130419T210000
ORGANIZER:MAILTO:user_3#zhaoxi.me
RECURRENCE-ID:20130419T173000
SEQUENCE:1
SUMMARY:sdf
X-ZX-RESPONSE:Y
END:VEVENT
END:VCALENDAR
failed 1:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ZHAOXI//iCalendar 1.0.0//
BEGIN:VEVENT
UID:20130410T015311CST-3605lc7xEv#ZHAOXI
DTSTAMP:20130409T175311Z
CLASS:PUBLIC
DTSTART:20130411T050000
DTEND:20130411T083000
ORGANIZER;SCHEDULE-AGENT=NONE;SCHEDULE-STATUS=5.3:MAILTO:user_3#zhaoxi.me
RRULE:FREQ=WEEKLY;UNTIL=20130420T050000Z;BYDAY=TH,SA
SEQUENCE:0
SUMMARY:dddddddd
X-ZX-RESPONSE:Y
END:VEVENT
BEGIN:VEVENT
UID:20130410T015311CST-3605lc7xEv#ZHAOXI
DTSTAMP:20130409T180755Z
CLASS:PUBLIC
DTSTART:20130413T070000
DTEND:20130413T103000
ORGANIZER:MAILTO:user_3#zhaoxi.me
RECURRENCE-ID:20130413T053000
SEQUENCE:1
SUMMARY:dddddddd
X-ZX-RESPONSE:Y
END:VEVENT
END:VCALENDAR
I think the difference is the rrule, but i could not find the reason~
Your master component has
DTSTART:20130411T050000
but your exception has
RECURRENCE-ID:20130413T053000
The recurrence id should always match one of (expanded) instances of the event. The date part is correct (20130413 is the saturday following the first instance) but the time part is 053000 when the first instance shows a time part of 050000.
In other words, your recurrence-id should be:
RECURRENCE-ID:20130413T050000
there is nothing wrong in your rrule, but however RFC5545 ยง3.8.4.7 specifies
"UID" itself MUST be a globally unique identifier and in all 3 of your icalendar files you are using the same UID. Have you tried with each event having a different UID to see how the server handles it?

Resources