It is now April and it seems this is still an issue. Unfortunately for me I can't go back to the old spreadsheets because Google broke the ability for forms to submit data to them. So now I can either have a broken form, or a broken query. I sure hope we get a fix soon.
On a side note, I don't get any errors, setQuery simply no longer has any effect. On Tuesday, March 18, 2014 2:36:11 PM UTC-7, Martin Hawksey wrote: > > Hi Sergey - thanks for your help. I can see what you mean now. Fingers > crossed for a setQuery fix > Thanks > > > On 18 March 2014 21:22, Sergey Grabkovsky <[email protected] <javascript:> > > wrote: > >> Hi Martin, this error is occurring because you are loading the old >> linechart package, which is extremely deprecated. You need to load the >> package "corechart" in order to get our new charts and newest features. >> When you do, you will inevitably get the error "All series on a given axis >> must be of the same data type". This is because the data is not coming in >> as expected because of the issue that Romain mentioned earlier in the >> thread -- since queries are not properly processed on the server-side, you >> get all 4 columns of your spreadsheet, instead of just A and D like you >> requested. You could work around this problem while we continue to >> investigate by creating a DataView with just the columns that you want. >> Here is a fiddle with those issues somewhat mended: >> http://jsfiddle.net/FwHNx/ >> >> - Sergey >> >> >> On Tue, Mar 18, 2014 at 5:03 PM, Martin Hawksey >> <[email protected]<javascript:> >> > wrote: >> >>> Hi Srgey - I had File > Published to the web which I recall was enough >>> to get Visualisation API access. I've now shared the sheet which will >>> hopefully let you replicate the Error: Problem parsing d="" error and >>> see in this bl.ocks http://bl.ocks.org/mhawksey/9629539 >>> >>> >>> On 18 March 2014 20:35, Sergey Grabkovsky <[email protected]<javascript:> >>> > wrote: >>> >>>> Hello Martin, your problem does not appear to be the same as Romain's. >>>> It seems that your issue stems from not having access to the spreadsheet. >>>> For instance, I am getting the error "GET >>>> https://docs.google.com/a/google.com/spreadsheets/d/1cnle5u7v-TGFInsFj_pooF…CL1anegCrltXU/gviz/tq?tq=SELECT+A,D+WHERE+D+%3E+100+ORDER+BY+D&tqx=reqId:0<https://docs.google.com/a/google.com/spreadsheets/d/1cnle5u7v-TGFInsFj_pooFWvwbti0NCL1anegCrltXU/gviz/tq?tq=SELECT+A,D+WHERE+D+%3E+100+ORDER+BY+D&tqx=reqId:0>403 >>>> (Forbidden)" >>>> along with the "Problem parsing" error that you are getting. Making the >>>> spreadsheet publicly viewable should fix this issue. >>>> >>>> - Sergey >>>> >>>> >>>> On Tue, Mar 18, 2014 at 4:31 PM, Martin Hawksey >>>> <[email protected]<javascript:> >>>> > wrote: >>>> >>>>> Just a note for anyone else coming to this thread. Using var query = >>>>> new google.visualization.Query( >>>>> '// >>>>> docs.google.com/spreadsheets/d/1cnle5u7v-TGFInsFj_pooFWvwbti0NCL1anegCrltXU/gviz/tq >>>>> '); >>>>> >>>>> You can get the google.visualization.Query.setResponse data but the >>>>> query.setQuery method still doesn't work. (throws >>>>> >>>>> >>>>> 1. Error: Problem parsing d="" >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1315 >>>>> >>>>> 1. R.na >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1315 >>>>> 2. R.fya >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1359 >>>>> 3. R.$o >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1350 >>>>> 4. R.PAa >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1382 >>>>> 5. R.$o >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1381 >>>>> 6. R.Ze >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1401 >>>>> 7. R.setData >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1401 >>>>> 8. (anonymous function) >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:1298 >>>>> 9. handleQueryResponse >>>>> retrieve_cache?unique_id=ed05b3521f28f8412b4fe288b79bf74b269262ea:41 >>>>> 10. R.jE >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:272 >>>>> 11. gv >>>>> >>>>> format+en_GB,default+en_GB,ui+en_GB,browserchart+en_GB,linechart+en_GB.I.js:264 >>>>> 12. (anonymous function) >>>>> >>>>> tq?tq=SELECT%20A%2CD%20WHERE%20D%20%3E%20100%20ORDER%20BY%20D&tqx=reqId%3A0:1 >>>>> 2. >>>>> >>>>> >>>>> >>>>> >>>>> On Tuesday, 28 January 2014 16:24:53 UTC, Romain Vialard wrote: >>>>>> >>>>>> I thought it was working but the method setQuery() doesn't seem to >>>>>> work with the new version of Sheets. >>>>>> >>>>>> As an example, you can try this >>>>>> Sheet<https://docs.google.com/spreadsheets/d/1uzuafFtIi1f9Z3J0_KTzo7LDRubfe9WPzfE7FrX7oSs/edit#gid=0>with >>>>>> the code available here: >>>>>> https://code.google.com/apis/ajax/playground/?type= >>>>>> visualization#using_the_query_language >>>>>> >>>>>> The query query.setQuery('SELECT A,D WHERE D > 100 ORDER BY D'); has >>>>>> no effect. >>>>>> >>>>>> Is there a plan to make it work in the near future, or a workaround ? >>>>>> (I tried v1.1 of the viz API but it didn't seem to work either) >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google Visualization API" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to >>>>> [email protected]<javascript:> >>>>> . >>>>> >>>>> To post to this group, send email to >>>>> [email protected]<javascript:> >>>>> . >>>>> Visit this group at >>>>> http://groups.google.com/group/google-visualization-api. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Google Visualization API" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/google-visualization-api/eu-e3P2ELXA/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected] <javascript:>. >>>> >>>> To post to this group, send email to >>>> [email protected]<javascript:> >>>> . >>>> Visit this group at >>>> http://groups.google.com/group/google-visualization-api. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> *Martin Hawksey* >>> >>> Tw: @mhawksey <http://twitter.com/mhawksey> >>> G+: google.com/profiles/mhawksey >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to >>> [email protected]<javascript:> >>> . >>> To post to this group, send email to >>> [email protected]<javascript:> >>> . >>> Visit this group at >>> http://groups.google.com/group/google-visualization-api. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/eu-e3P2ELXA/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to >> [email protected]<javascript:> >> . >> Visit this group at >> http://groups.google.com/group/google-visualization-api. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Martin Hawksey* > > Tw: @mhawksey <http://twitter.com/mhawksey> > G+: google.com/profiles/mhawksey > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
