Valarm not working in icalendar when it has multiple events - icalendar

Am using following Icalendar code to set multiple events in a single ics file... But when i tested it with outlook 2007, the remainder sets to none.
BEGIN:VCALENDAR
PRODID:- //Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20120130T121000Z
DTEND:20120130T131000Z
UID:1620111121T075424707955
DTSTAMP:20111121T075424
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:some descritption for event
TRANSP:OPAQUE
SUMMARY:Summary
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
DESCRIPTION:Some description for alarm
TRIGGER;RELATED=START:-PT30H
ACTION:DISPLAY
END:VALARM
END:VEVENT
BEGIN:VEVENT
DTSTART:20120201T233800Z
DTEND:20120202T003800Z
UID:1620111121T075424707955
DTSTAMP:20111121T075424
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:some descritption for event
TRANSP:OPAQUE
SUMMARY: Summary
PRIORITY:5
CLASS:PUBLIC
BEGIN:VALARM
DESCRIPTION:Some description for alarm
TRIGGER;RELATED=START:-PT30H
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
When I use same format with only one event it is working fine... Help me in resolving this issue.

It seems that reminders in calendar feeds are not supported by Outlook due to its design. Which is unfortunate because the feature is rendered nearly useless without something as basic as reminders.
The only way we were able to get reminders working was taking a calendar item from a feed, and then dragging it into one's personal calendar in Outlook. Not an effective, practical workaround at all.

Related

file .ics to delete appointment not recognized by outlook

I send a icalendar when a user create an appointment on my application and the file ics is regularly recognized by outlook.
If the user delete the appointment on my application i send a icalendar with canceled notation, but the .ics file is not recognized (not supported calendar message.ics)
Icalendar which create the appointment on outlook (regular recognized):
BEGIN:VCALENDAR
PRODID:-//Schedule a Meeting
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20190718T033000Z
DTSTAMP:20190718T113347Z
DTEND:20190718T040000Z
LOCATION:
UID:Tesis10910
DESCRIPTION:
X-ALT-DESC;FMTTYPE=text/html:
SUMMARY:
STATUS:CANCELLED
ORGANIZER:MAILTO:fc#newteamsoftware.com
ATTENDEE;CN="fc#newteamsoftware.com";ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:fc#newteamsoftware.com
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
Icalendar which delete the appointment:
BEGIN:VCALENDAR
PRODID:-//Schedule a Meeting
VERSION:2.0
METHOD:CANCEL
BEGIN:VEVENT
DTSTART:20190718T033000Z
DTSTAMP:20190718T113347Z
DTEND:20190718T040000Z
LOCATION:
UID:Tesis10911
DESCRIPTION:
X-ALT-DESC;FMTTYPE=text/html:
SUMMARY:
STATUS:CANCELLED
ORGANIZER:MAILTO:fc#newteamsoftware.com
ATTENDEE;CN="fc#newteamsoftware.com";ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:fc#newteamsoftware.com
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
Few things:
don't know if it is intended but your first iMIP message already has a METHOD:CANCEL instead of REQUEST.
your second iMIP message has a different UID. If this is really what you are sending, it is normal for the client not to recognise it as the cancel of the first message.
Your second message lacks a SEQUENCE property with an increased value. See https://www.rfc-editor.org/rfc/rfc5546#section-3.2.5
there is no point in adding the VALARM component. Clients will always ignore it.

I can't get my recurring events identified in google calendar

i'm using ICAL.js to crearte a recurring events, when I import the .ics file on my phone, it adds only one event!
this is the .ics file, what's the problem?
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Qu Studioc.//Timetable//EN
VERSION:2.0
BEGIN:VEVENT
FREQ:WEEKLY
BYDAY:SU,TU
SUMMARY:ESP102\n16121-training
UID:ESP1020
DTSTART:20190630T025448
DURATION:PT100M
DTSTAMP:20190704T025448
UNTIL:20200102T000000Z
END:VEVENT
BEGIN:VEVENT
FREQ:WEEKLY
BYDAY:SU,TU
SUMMARY:ESP102\n16121-training
UID:ESP1021
DTSTART:20190630T025448
DURATION:PT100M
DTSTAMP:20190704T025448
UNTIL:20200102T000000Z
END:VEVENT
END:VCALENDAR
thank you.
An RRULE must actually be specified - the FREQ should be part of the RRULE not standalone
The ietf.org site is not responding for me now, try
https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html

Mulit-Day All-Day Event

I am having issues getting the right syntax for an all day event which spans multiple days. Here is my ICAL event:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;TZID="America/Chicago";VALUE=DATE:20150809
DTEND;TZID="America/Chicago";VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR
Shows up great in Mac Calendar:
But in Outlook, it starts at 1AM and isn't marked as all day:
From what I just tested, it seems that Outlook does not allow all-day ICAL events to have a timezone specified. Seems stupid, but changing the file to this made it work:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//http://XXX//Event
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART;VALUE=DATE:20150809
DTEND;VALUE=DATE:20150812
SUMMARY:Event Name
DESCRIPTION:Event Description
LOCATION:Event Location
END:VEVENT
END:VCALENDAR

VALARM in .ics file

This is the .ics file generated from my C# code and this successfully opens in Outlook and shows the reminder too.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20131022T130000Z
DTEND:20131023T140000Z
SUMMARY:22Demo1
DESCRIPTION:first demo
LOCATION:Ald
BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
But when i change the time and supply start time= 09:00 and end time= 10:00 then the .ics file generated is
as below and no reminder in this case is entered when it is opened in Outlook.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20131022T100000Z
DTEND:20131023T110000Z
SUMMARY:22Demo1
DESCRIPTION:first demo
LOCATION:Ald
BEGIN:VALARM
TRIGGER:-PT10M
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR
Finally I observed that if the time is given from 13:00 (1:00PM)to 23:00(10:00PM) it is working fine and reminder is added but if i enter time like 09:00(AM) or 11:00(AM) then reminder is not added.
Pls tell where i am going wrong or what i am missing.
In the second case your appointment starts in the past (the first will also soon be in the past) and Outlook will not set a reminder in the past.

What is wrong with this ICalendar

I've tried this in a couple of validators. It passes. Can someone please advise what is wrong with this. I doesn't load in any of our smart phones nor in Lotus Notes
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Company Name//NONSGML Intranet Outage Cal//EN
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130421T000000
DTEND:20130421T003000
DTSTAMP:20130410T163211
ORGANIZER:MAILTO:nasl2webmaster#company.com
UID:calendar#company.com
LOCATION:EAF #1
TRANSP:OPAQUE
SEQUENCE:0
SUMMARY:Outage Calendar : added\, EAF #1 outage
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
X-FRS-EXT-BUILDNO;X-FRS-SEND=SEND:8.03.80716
X-FRS-EXT-OPLINK;X-FRS-SEND=SEND:205A5936304D412A315F4B3026512E
X-FRS-EXT-RECTYPE;X-FRS-SEND=SEND:A
BEGIN:VALARM
TRIGGER:-PT20H
ACTION:DISPLAY
DESCRIPTION:Reminder:EAF #1 outage
END:VALARM
END:VEVENT
END:VCALENDAR
You are using a METHOD:REQUEST but your invitation has not ATTENDEE PROPERTY. See https://www.rfc-editor.org/rfc/rfc5546#section-3.2.2 which indicates which properties are mandatory.
If you just want to "publish" the event, you should use METHOD:PUBLISH (or no method at all).
There might be other issues of course but I would start by fixing this.
Finally, you are using floating time (no ending Z, nor timezone info in your DTSTART/DTEND). This is not invalid per say but, in general, calendar user agents don't like very much. You probably want to use zulu (utc) time instead. See https://www.rfc-editor.org/rfc/rfc5545#section-3.3.5
What error are you getting? I can load it perfectly in Outlook, google calendar & iPhone.