Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1034269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:21:47+00:00 2026-05-16T14:21:47+00:00

I am trying to learn how to use the Google Spreadsheets API through the

  • 0

I am trying to learn how to use the Google Spreadsheets API through the Developer’s Guide: Java. My application can authenticate to the spreadsheets service,retrieve a worksheet-based feed and create a table. The next step would be to create a table record what I am trying to do. My problem is when I run the application I obtain this error :

Service failure
com.google.gdata.util.InvalidEntryException: Bad Request
[Line 1, Column 429, element entry] Required extension element  http://schemas.google.com/spreadsheets/2006:header not found.

This is the code part for the creation of the table :

//Creating a table record
String nameValuePairs = "Column A=Rosa";
RecordEntry entryToChange = new RecordEntry();
// Split first by the commas between the different fields.
for (String nameValuePair : nameValuePairs.split(",")) {
    // Then split by the equal sign.
    String[] parts = nameValuePair.split("=", 2);
    String name = parts[0]; // such as "name"
    String value = parts[1]; // such as "Fred"

    entryToChange.addField(new Field(null, name, value));         
}
try {
    myService.insert(tableFeedUrl, entryToChange);
} catch (IOException e) {
    System.err.println("I/0 problem");
    e.printStackTrace();
} catch (ServiceException e) {
    System.err.println("Service failure");
    e.printStackTrace();
}

tableFeedUrl :

tableFeedUrl = factory.getTableFeedUrl(entry.getKey());

entry :

entry = spreadsheets.get(0);

Apparently the problem come from :

myService.insert(tableFeedUrl, entryToChange);

but I am not sure and I don’t understand why…

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:21:48+00:00Added an answer on May 16, 2026 at 2:21 pm

    I have found the solution. I answer my own question for those who will have the same problem.

    I use :

    myService.insert(tableFeedUrl, entryToChange);
    

    “tableFeedUrl” corresponds to :

    http://spreadsheets.google.com/feeds/<key>/tables/
    

    this’s not the right link to access to the table (the doc).

    But in the Java developers guide it’s notice we have to use :

    myService.insert(recordFeedUrl, entryToChange);
    

    “recordFeedUrl” results from :

    URL recordFeedUrl = tableEntry.getRecordFeedUrl();
    

    But the method : getRecordFeedUrl() doesn’t exist… (the doc)

    The solution is to create manually the URL :

    recordFeedUrl = new URL(table.getId().toString().replace("tables", "records"));
    

    So the URL corresponds to the table :

    https://spreadsheets.google.com/feeds/<key>/records/60
    

    “60” corresponds to the table number.

    I hope it will help!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn how to use lift. I can create project skeleton by
I am an experienced Java developer who is trying to learn web development with
To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application
I'm trying to learn how to use the google app engine because I want
I'm trying use Google iosched as a reference project to learn the best practices
I am trying to learn how to use MSBuild so we can use it
I am trying to learn to use mercurial by pushing onto Google code. I
I trying to learn how to use Java Swing's GroupLayout. First of all I
I am trying to learn to use BS4 through the creation of a toy
I am trying learn the use of lambda expressions and hence still struggling to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.