> I was wondering if someone could explain this behavior to me.

You have 39 events in the feed that you posted. By default, the Calendar API
returns the 25 most recently updated events. Unless you request more events,
page through the results, or limit the query in some way which causes less
than 25 events to be expected, 14 events are going to appear to be missing.

This returns all 39 events:

http://www.google.com/calendar/feeds/3cd858ta03s299d0kmtbh5rj2k%40group.calendar.google.com/public/basic?max-results=50

Ray

On Mon, Mar 7, 2011 at 8:42 AM, Chris <[email protected]> wrote:

> Hi all,
>
> I was wondering if someone could explain this behavior to me.
> I have a series of public calendars that I extract data from for website
> usage.  The basic format is:
> public DataTable getAllVenues()
>     {
>         DataTable dt_regions = generic_db_select("sp_get_regions");  //list
> of calendars
>         List<gCalendarEvents> eventlist = new List<gCalendarEvents>();
>
>         foreach (DataRow row in dt_regions.Rows)
>         {
>             XmlDocument doc = new XmlDocument();
>             string url = row["CalendarLink"].ToString();
>
>                 XmlNodeList nodes = doc.GetElementsByTagName("entry");
> //doc.DocumentElement.SelectNodes("/entry");
>                 foreach (XmlNode entry in nodes)
>                 {
>                   // do stuff
>
>                 }
>         }
>
>
>         }
>
>
>         return dt;
>     }
> Now this process works but the really odd thing is that it doesn't always
> return all events for a calendar. However, if I track down which events are
> missing and go to the calendar through Google and open up the event and
> either change the event privacy from default to public or vice versa the
> event appears the next time I call the calendar.  Now this creates
> additional problems because other seemingly random events will not show up
> now from the same calendar.  This behavior can be reproduced by editing a
> calendar event. I also have another service that uses the calendarservice
> with the same results and can post samples if requested.  One interesting
> note is that if I use a time based query between  a set of dates it always
> returns a complete list. If you wish to try to reproduce the errors
> yourself:
>
> http://www.google.com/calendar/feeds/rbqiup5mirm7ddljf69nrh6uc8%40group.calendar.google.com/public/basic
>
> One other interesting note if posted into a browser it returns all venues
> correctly.
> Any help or explanation would be greatly appreciated.
>
> Thank you in advance,
> Chris
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to