Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

generate delete ics of single instance from recurring event

Help
syella
2013-08-22
2013-08-28
  • syella
    syella
    2013-08-22

    Hello all,
    I use ical4j to generate and send ics. I've one last issue to solve, but I can't find a way out :
    When I'm trying to delete a single instance of a recurring event, it doesn't work on google agenda, but it works fine in outlook...
    any ideas?
    Here is my recurring event :

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//mysie/mypdt//EN
    METHOD:REQUEST
    BEGIN:VEVENT
    DTSTAMP:20130822T125022Z
    DTSTART:20130827T160000
    DTEND:20130827T170000
    SUMMARY:RDV important
    ORGANIZER:mailto:noreply@mysie.com
    SEQUENCE:1
    UID:4LDHV6
    DESCRIPTION:Bonjour Mademoiselle
    ATTENDEE;ROLE=REQ-PARTICIPANT:mailto:toto@gmail.com
    RRULE:FREQ=WEEKLY;UNTIL=20130901T000000;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA
    STATUS:CONFIRMED
    BEGIN:VALARM
    DESCRIPTION:RDV important
    ACTION:DISPLAY
    TRIGGER;RELATED=START:-PT15M
    END:VALARM
    END:VEVENT
    END:VCALENDAR

    and here is my delete event of a single instance

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//mysie/mypdt//EN
    METHOD:CANCEL
    BEGIN:VEVENT
    DTSTAMP:20130822T125149Z
    DTSTART:20130828T160000
    DTEND:20130828T170000
    SUMMARY:Annulation RDV
    ORGANIZER:mailto:noreply@mysie.com
    SEQUENCE:2
    UID:4LDHV6
    DESCRIPTION:rdv annule
    ATTENDEE;ROLE=REQ-PARTICIPANT:mailto:toto@gmail.com
    RECURRENCE-ID:20130828T160000
    STATUS:CANCELLED
    PRIORITY:1
    END:VEVENT
    END:VCALENDAR

    thanks for your help!

     
    • Erich Bremer
      Erich Bremer
      2013-08-22

      Please send all e-mail for me to erich.bremer@stonybrook.edu

       
  • Ben Fortuna
    Ben Fortuna
    2013-08-28

    Hi syella,

    It is difficult to diagnose without being able to see how Google Calendar works. For example, this may be due to Google Calendar calculating recurrence instances slightly differently and as such not finding a match for the specified DTSTART, etc.

    You may want to experiment with different properties, or capture a cancel request from a system that has been found to work with Google Calendar.

    Also, you may have seen this already, but the latest specification for creating a CANCEL request is available here:

    http://tools.ietf.org/html/rfc5546#section-3.2.5

    regards,
    ben