After creating new spreadsheet and trying to insert either ListEntry or TableEntry using latest gdata client apis, i get errors. I am more interested in TableEntry error but would be nice to figure out why both dont work.
example code for ListEntry: List<WorksheetEntry> worksheets = spreadsheetEntry.getWorksheets(); WorksheetEntry worksheet = worksheets.get(0) URL listFeedUrl = new URL(worksheet.getListFeedUrl().toString()); ListEntry titleRow = new ListEntry(); titleRow.getCustomElements().setValueLocal("name", "name") ListEntry insertedRow = service.insert(listFeedUrl, titleRow); Error i get is Caused by: com.google.gdata.util.ServiceException: Internal Server Error Internal Error example Code for TableEntry: TableEntry tableEntry = new TableEntry(); FeedURLFactory feedURLFactory = new FeedURLFactory("https:// spreadsheets.google.com") URL tableFeedUrl = new URL("https://spreadsheets.google.com/ feeds/"+newEntry.getKey().replace("spreadsheet%3A", "")+"/tables") // Specify a basic table: tableEntry.setTitle(new PlainTextConstruct("New Table")); tableEntry.setWorksheet(new Worksheet("Sheet1")); tableEntry.setHeader(new Header(1)); // Specify columns in the table, start row, number of rows. Data tableData = new Data(); tableData.setNumberOfRows(5); // Start row index cannot overlap with header row. tableData.setStartIndex(2); // This table has only one column. tableData.addColumn(new Column("A", "Column A")); tableEntry.setData(tableData); service.insert(tableFeedUrl, tableEntry); I get error Caused by: com.google.gdata.util.InvalidEntryException: Bad Request Invalid query parameter value for worksheet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---