Hi,

It looks like you're missing the DTSTART component at the beginning of the
$recurString value.

The easiest way to get a valid recurrence string is to create a recurring
event via the UI and then retrieve the feed via GData and examine the
recurrence string.

Note: The VTIMEZONE component is not necessary, so you will only need the
first couple lines of your $recurString.

Here's an example that should work for you:

DTSTART;TZID=America/Los_Angeles:20070403T060000
DURATION:PT1H
RRULE:FREQ=DAILY;UNTIL=20120403T220000Z

Cheers,

-Ryan


On 3/8/07, angel123 <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Even I am getting the same error 'Post to Google failed. Reason:
> Failed to process recurrence rule'
>
> Following is the recurrence rule I created....
> Any help will be appreciated...
>
> Thanks
>
> $crlf = "\r\n";
>
> $recurString = "America/Los_Angeles:20070403T060000" . $crlf .
> "DURATION:PT1H" . $crlf .
> "RRULE:FREQ=DAILY;UNTIL=20120403T220000Z" . $crlf .
> "BEGIN:VTIMEZONE" . $crlf .
> "TZID:America/Los_Angeles" . $crlf .
> "X-LIC-LOCATION:America/Los_Angeles" . $crlf .
> "BEGIN:STANDARD" . $crlf .
> "TZOFFSETFROM:-0700" . $crlf .
> "TZOFFSETTO:-0800" . $crlf .
> "TZNAME:PDT" . $crlf .
> "DTSTART:19701025T020000" . $crlf .
> "RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU" . $crlf .
> "END:STANDARD" . $crlf .
> "BEGIN:DAYLIGHT" . $crlf .
> "TZOFFSETFROM:-0700" . $crlf .
> "TZOFFSETTO:-0480" . $crlf .
> "TZNAME:PDT" . $crlf .
> "DTSTART:19700405T020000" . $crlf .
> "RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU" . $crlf .
> "END:DAYLIGHT" . $crlf .
> "END:VTIMEZONE";
>
>
> On Feb 13, 12:58 pm, "Ryan Boyd (Google)" <[EMAIL PROTECTED]>
> wrote:
> > Hi Kulvinder,
> >
> > Thanks for the additional information.  This helped us find the
> > problem more quickly.
> >
> > Please try the other calendar again and let me know if you have some
> > success.  If you're continuing to get a 100% failure rate, please send
> > me (privately if you wish) the gmail account and calendar which you
> > are using.
> >
> > Sorry, the text of therecurrenceruleis no longer available in the
> > error message.  I'm hoping that it will be available again in the
> > future, but can't make any promises to that.
> >
> > Cheers,
> >
> > -Ryan
> >
> > On Feb 13, 11:00 am, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I have seen an absurd behviour of this Error.
> >
> > >   I created a new calendar in the same gmail account and the same
> Recurring events happily inserted in the new Google Calendar.
> >
> > >   Can anybody tell me if there is a specific reason for this behaviour
> ?
> >
> > >   Also, i have noticed that the i used to get theRecurrenceRulewhich
> is being failed at the Google server in the Error i am getting from Google.
> Yesterday onwards, Google seems to Hide theRecurrenceRule.
> >
> > >   Why ?
> >
> > > Kulvinder Singh <[EMAIL PROTECTED]> wrote:
> >
> > >     Hi,
> >
> > >   I have tried many times what you have written below but each time i
> am getting the same error. Can you please tell me what should i do to
> minimize the error i am getting ?
> >
> > >   Regards
> > >   Kulvinder Singh
> >
> > > "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote:
> > >   Hi Kulvinder,
> >
> > > Please try inserting the event several more times.  There is currently
> a bug which causes intermittentrecurrenceexception failures.  We are working
> on resolving this issue.
> >
> > > If this problem occurs on each additional attempt, please followup on
> this thread and we can take a closer look at therecurrencerule.
> >
> > > Cheers,
> >
> > > -Ryan
> >
> > >   On 2/8/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote:     Hi,
> >
> > >   When i try to insert an event in Google calendar, i am getting the
> following error :
> >
> > >   InnerException :    The remote server returned an error: (400) Bad
> Request.
> >
> > > Google Server Error : Failed to
> processrecurrenceruleDTSTART;TZID:America/New_York:20070414DTEND;TZID:America/New_York:20070415RĀ­RULE:FREQ:DAILY;COUNT:2;INTERVAL:1
> >
> > >   Can anybody tell me whats wrong in theRecurrenceRule?
> >
> > >   Regards
> > >   Kulvinder Singh
> >
> > > ---------------------------------
> > >   It's here! Your new message!
> > > Get new email alerts with the free Yahoo! Toolbar.
> >
> > > ---------------------------------
> > >   Need a quick answer? Get one in minutes from people who know. Ask
> your question on Yahoo! Answers
> >
> > > ---------------------------------
> > > Now that's room service! Choose from over 150,000 hotels
> > > in 45,000 destinations on Yahoo! Travel to find your fit.- Hide quoted
> text -
> >
> > - Show quoted text -
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to