What is wrong with this ICalendar - 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.

Related

.ics File: VALARM for an allday event dosen´t work

I need an ICS-File for a allday event which includes a reminder, one day before the event takes plays.
The ICS-File generates the event without any problem. But the reminder is always set on 18hours, even if the trigger is set on e.g. "-PT15M"....
Can anybody help?
ICS Testfile:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:Karabulut
BEGIN:VEVENT
CATEGORIES:Planing
DTSTART; VALUE=DATE:20200129
SUMMARY: Revenue
METHOD:PUBLISH
CLASS:PUBILC
BEGIN:VCALENDAR
BEGIN:VALARM
TRIGGER:-PT1D
ACTION:DISPLAY
DESCRIPTION:REMINDER
END:VALARM
END:VCALENDAR
END:VEVENT
END:VCALENDAR
This may be the expected behaviour by the receiving application. The 18 hours may be the default set by you or the application.
Many applications do ot let ics files create alarms. I know I would not want the ics file to be creating alarms & notifications for me!
See also
Ical VALARM not registrering and
Sent email with iCal to outlook with valarm reminder and the links in the answers.
The RFC5545 specification See https://www.rfc-editor.org/rfc/rfc5545#page-75 says:
Note: Implementations should carefully consider whether they
accept alarm components from untrusted sources, e.g., when
importing calendar objects from external sources. One
reasonable policy is to always ignore alarm components that the
calendar user has not set herself, or at least ask for
confirmation in such a case.

ics VALARM support across clients

I am wondering about the BEGIN:VALARM value in ics.
I have set an alarm, but Outlook (PC) and Calendar (Mac) seems to ignore the alarm altogether. In eM Client (PC) the alarm is set but cannot be dismissed (pops up again immediately after dismiss)
Is this a known problem with the iCalendar/ics standard?
The format seems to be valid. Are any additional values needed for each client to understand/accept and handle the alert correctly?
I am subscribing to the .ics file via a https:// URL.
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:adamgibbons/ics
METHOD:PUBLISH
X-PUBLISHED-TTL:PT1H
BEGIN:VEVENT
UID:-LovTg9y9HPDCHu8mVnD
SUMMARY:Purjolök
DTSTAMP:20191026T171500Z
DTSTART:20191024T080000Z
DESCRIPTION:En grönsak i lökfamiljen
URL:https://app.myapp.se/r/edit/-LovTg9y9HPDCHu8mVnD
STATUS:CONFIRMED
CATEGORIES:Matlista
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:En grönsak i lökfamiljen
TRIGGER:-PT10M
END:VALARM
DURATION:PT30M
END:VEVENT
END:VCALENDAR
There is most likely nothing wrong with your code and most clients will ignore those alarms by design.
Whether you receive an invitation via email or subscribe to a calendar via http, you don't want the organiser of the meeting/author of the calendar feed to dictate when/if you should be reminded. It is really up to the attendee/subscriber to set their own alarms.
If, on the other hand, you "import" the same ics file, the alarms will be taken into account (the client considers that the stream already belongs to you and that it is a "backup" of your own calendar).

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

Valarm not working in icalendar when it has multiple events

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.

What is wrong with this iCal event?

I'm generating an ics file from calendar information and google calendar can show these. But a few events doesn't show up, for example this one: (one event extracted from the full file)
BEGIN:VCALENDAR
PRODID:-//tt.megy.se//CalendarExporter V0.1//SE
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Tick-Tack
BEGIN:VEVENT
DTSTAMP:20120116T095000Z
LAST-MODIFIED:20120116T095000Z
CREATED:20120116T095000Z
SEQUENCE:1
DTSTART:20120116T095000Z
DTEND:20120116T104000Z
UID:Lesson20120116T095000ZLu111D#tt.megy.se
SUMMARY:Lunch
LOCATION:.
URL:http://tt.megy.se
DESCRIPTION:.
CLASS:PUBLIC
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR
I have checked the above at http://severinghaus.org/projects/icv/ and it validates. Does anyone have any idea why this specific event wouldn't show up in an iCal consumer, for example google calendar.
Any help is appreciated.
I was able to "import" it into a test google calendar with no problem.
In my experience, "subscribing" via google calendar can be slow - ie it may not show up for a while.