Google Calendar API - "Execution of Request Failed" Error

Posted on 2011-10-25
Last Modified: 2014-11-12
I am following the example shown in the Data API Developer's Guide of creating a single occurrence of a Google Calendar Event and am getting an error.  The URL I am using is the ID from my calendar (changed here for security).

 Dim service As CalendarService = New CalendarService("joe")

 Dim entry As EventEntry = New EventEntry()
 entry.Title.Text = "Tennis with Beth"
 entry.Content.Content = "Meet for a quick lesson."

 Dim eventLocation As [Where] = New [Where]
 eventLocation.ValueString = "South Tennis Courts"

Dim eventTime As [When] = New [When](DateTime.Now, DateTime.Now.AddHours(2))

 Dim postUri As Uri = New Uri("")
Dim insertedEntry As AtomEntry = service.Insert(postUri, entry)

The error I am getting is "Execution of Request Failed" and a more detailed error says, "This feed is read-only".

Any help would be appreciated.  Thanks.
Question by:esemmoc

    Author Comment

    Just to add, I am authenticating successfully with
    Service.setUserCredentials("", "mypassword")

    and I am able to insert without an error using this URL.

    My problem seems to be that I can't Update or Delete when I use a URL with an ID for a specific calendar.

    LVL 83

    Accepted Solution


    Author Closing Comment

    Yes it did as it took me in the right direction.  The calendar ID I got from my google calendar settings for my secondary calendar was this:"

    The correct Calendar ID to use should be this:

    This code displays each calendar name and the corresponding ID:

     Dim myService As CalendarService = New CalendarService("exampleCo-exampleApp-1")
     myService.setUserCredentials("", "joepass")

     Dim query As CalendarQuery = New CalendarQuery()
     query.Uri = New Uri("")
     Dim resultFeed As CalendarFeed = myService.Query(query)

    For Each entry As CalendarEntry In resultFeed.Entries

         MessageBox.Show(entry.Title.Text & "  " & entry.Id.AbsoluteUri.Substring(63))


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Whether you’re looking to gather data for research or gather feedback on an idea, being able to build and distribute your own online survey is not only cost-effective, but allows you to reach a larger audience and receive results in real-time. Googl…
    Google is more than just a search engine. Over the years the company has developed a wide range of online services that are readily available to all users. This article highlights how one can use Google services for simple project management.
    This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
    This Micro Tutorial will demonstrate without sampling how to find out top organic landing pages. The hack gets around the standard way to find the pages in Google Analytics results in sampling for larger sites.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now