Hi Claudio, It would help us troubleshooting in the field *a lot* if Google provided a way to discover the version-number-as-deployed of a given service. We helpful, intelligent developers could then supply a lot more context when reporting a fault. It is not very satisfying trying to guess whether or not Google went and changed something, since we last reported an issue.
regards, David. On Mon, Apr 2, 2012 at 6:22 PM, Alexandru Farcaş < [email protected]> wrote: > Hi Claudio, > > I don't experience this issue when I copy, upload or update a spreadsheet > from UI. I had this issue on UI but it was resolved on 13.02.2012 (like > Rebecca said in the thread above) > > Both problems appeared on same period, but only for UI was fixed... > > Thanks for your help! > > Alexandru > > > > On Thursday, March 29, 2012 12:47:18 AM UTC+3, Claudio Cherubino wrote: >> >> Hi Alexandru, >> >> I don't see any specific problems with your code and I understand the >> spreadsheets are copied correctly. >> Do you experience the same issue if you perform the same operations >> manually from the UI instead of using the script? >> >> I'm not sure the other thread you mentioned is related, but the other >> forum is the most appropriate place to report an issue that is not >> API-specific. >> Please post there if you find the issue is not due to the API. >> Thanks >> >> Claudio >> >> On Wed, Mar 28, 2012 at 11:03 AM, Alexandru Farcaş < >> [email protected]> wrote: >> >>> I didn't make any changes to the code since last year (july). The files >>> created before ~20.12.2011 are ok. The problems appeared after this date.. >>> >>> >>> (*) I read on google docs forum about a similar problem on browser after >>> this period. This is the >>> link<http://groups.google.com/a/googleproductforums.com/forum/#!starred/docs/vEhI_HkKX3I> >>> (maybe >>> is related to this) >>> >>> >>> On Tuesday, March 27, 2012 8:37:29 PM UTC+3, Alexandru Farcaş wrote: >>>> >>>> Hi Claudio, >>>> >>>> I hope that this helps! >>>> >>>> This are the steps: >>>> >>>> 1. *Copy spreadsheet template to root* >>>> >>>> private String sendPostCopyRequest(String authorizationToken, String >>>> resourceID, String title, int noRetries) throws IOException{ >>>> /* >>>> resourceId = resource id for the template that i want to copy >>>> title = the title of the new file created >>>> */ >>>> String urlStr = >>>> "https://docs.google.com/**feeds**/default/private/full<https://docs.google.com/feeds/default/private/full> >>>> "; >>>> URL url = new URL(urlStr); >>>> HttpURLConnection copyHttpUrlConn = (HttpURLConnection) >>>> url.openConnection(); >>>> copyHttpUrlConn.setDoOutput(**tr**ue); >>>> copyHttpUrlConn.**setRequestMeth**od("POST"); >>>> String outputString = "<?xml version='1.0' encoding='UTF-8'?>" + >>>> "<entry >>>> xmlns=\"http://www.w3.org/**2005**/Atom\<http://www.w3.org/2005/Atom%5C>"> >>>> " + >>>> "<id>https://docs.google.com/**f**eeds/default/private/full/<https://docs.google.com/feeds/default/private/full/>" >>>> + resourceID +"</id>" + >>>> " <title>" + title + "</title></entry>"; >>>> copyHttpUrlConn.**setRequestProp**erty("GData-**Version", "3.0"); >>>> copyHttpUrlConn.**setRequestProp**erty("Content-**Type","** >>>> application/atom+xml"); >>>> >>>> copyHttpUrlConn.**setRequestProp**erty("Content-**Length", >>>> outputString.length() + ""); >>>> copyHttpUrlConn.**setRequestProp**erty("**Authorization", >>>> "GoogleLogin auth=" + authorizationToken); >>>> OutputStream outputStream = copyHttpUrlConn.**getOutputStrea**m(); >>>> outputStream.write(**outputStrin**g.getBytes()); >>>> copyHttpUrlConn.**getResponseCod**e(); >>>> >>>> return readIdFromResponse(**copyHttpUrl**Conn.**getInputStream()); >>>> } >>>> >>>> 2. *I update some cells using this method:* >>>> >>>> public boolean setCellValue(**SpreadsheetServic**e spreadSheetService, >>>> SpreadsheetEntry entry, int worksheetNumber, String position, String value) >>>> throws IOException, ServiceException { >>>> >>>> List<WorksheetEntry> worksheets = entry.getWorksheets(); >>>> WorksheetEntry worksheet = worksheets.get(**worksheetNumber**); >>>> URL cellFeedUrl = worksheet.getCellFeedUrl(); >>>> CellQuery query = new CellQuery(cellFeedUrl); >>>> query.setReturnEmpty(true); >>>> query.setRange(position); >>>> CellFeed cellFeed = spreadSheetService.query(**query**, >>>> CellFeed.class); >>>> CellEntry cell = cellFeed.getEntries().get(0); >>>> cell.changeInputValueLocal(**val**ue); >>>> cell.update(); >>>> return true; >>>> } >>>> >>>> 3. *I move the created file to a new folder (collection)* >>>> * >>>> * >>>> public DocumentListEntry moveSpreadSheet(DocsService docsService, >>>> String entryId, String destinationFolderDocId) >>>> throws MalformedURLException, IOException, ServiceException { >>>> DocumentListEntry newEntry = null; >>>> newEntry = new com.google.gdata.data.docs.**Spr**eadsheetEntry(); >>>> newEntry.setId(entryId); >>>> String destFolderUri = "https://docs.google.com/**feeds** >>>> /default/private/full/**folder%**3A<https://docs.google.com/feeds/default/private/full/folder%3A>"+ >>>> destinationFolderDocId + "/contents"; >>>> >>>> return docsService.insert(new URL(destFolderUri), >>>> newEntry); >>>> } >>>> >>>> >>>> >>>> On Tuesday, March 27, 2012 4:07:12 AM UTC+3, Claudio Cherubino wrote: >>>>> >>>>> Hi Alexandru, >>>>> >>>>> Can you provide us with the code to reproduce this issue? >>>>> Thanks >>>>> >>>>> Claudio >>>>> >>>>> On Mon, Mar 26, 2012 at 1:16 PM, Alexandru Farcaş < >>>>> [email protected]> wrote: >>>>> >>>>>> Any update on this issue? >>>>>> The problem still persist... >>>>>> >>>>>> On Friday, March 16, 2012 6:30:39 PM UTC+2, Alexandru Farcaş wrote: >>>>>>> >>>>>>> Can I give you the account to test this searches? >>>>>> >>>>>> >>>>> >>
