Google Sheets query, unable to decipher error message
up vote
0
down vote
favorite
I am trying to copy data over from one sheet to another using Google Sheets and am using this query in the second sheet
=query(IMPORTRANGE("5UAxxxxxxxxxxxx-GMcxccccccccp-xsdff0","SheetName!A4:AI1000"),"select Col1, Col2, Col3, Col5, Col7, Col9, Col14, Col16, Col 18, Col19, Col20, Col21 where Col35 = 'Yes'")
Unable to understand what this error means.
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <INTEGER_LITERAL> "18 "" at line 1, column 62. Was expecting one of: <EOF> "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "," ... "*" ... "+" ... "-" ... "/" ... "%" ... "*" ... "/" ... "%" ... "+" ... "-" ...
My Sheet1 where I am copying data from has columns A-Z and AA-AI, so I have A4:AI1000 to capture all the data assuming we won't have more than 1000 records with the headers taking up from 1-3 rows.
google-sheets
add a comment |
up vote
0
down vote
favorite
I am trying to copy data over from one sheet to another using Google Sheets and am using this query in the second sheet
=query(IMPORTRANGE("5UAxxxxxxxxxxxx-GMcxccccccccp-xsdff0","SheetName!A4:AI1000"),"select Col1, Col2, Col3, Col5, Col7, Col9, Col14, Col16, Col 18, Col19, Col20, Col21 where Col35 = 'Yes'")
Unable to understand what this error means.
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <INTEGER_LITERAL> "18 "" at line 1, column 62. Was expecting one of: <EOF> "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "," ... "*" ... "+" ... "-" ... "/" ... "%" ... "*" ... "/" ... "%" ... "+" ... "-" ...
My Sheet1 where I am copying data from has columns A-Z and AA-AI, so I have A4:AI1000 to capture all the data assuming we won't have more than 1000 records with the headers taking up from 1-3 rows.
google-sheets
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to copy data over from one sheet to another using Google Sheets and am using this query in the second sheet
=query(IMPORTRANGE("5UAxxxxxxxxxxxx-GMcxccccccccp-xsdff0","SheetName!A4:AI1000"),"select Col1, Col2, Col3, Col5, Col7, Col9, Col14, Col16, Col 18, Col19, Col20, Col21 where Col35 = 'Yes'")
Unable to understand what this error means.
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <INTEGER_LITERAL> "18 "" at line 1, column 62. Was expecting one of: <EOF> "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "," ... "*" ... "+" ... "-" ... "/" ... "%" ... "*" ... "/" ... "%" ... "+" ... "-" ...
My Sheet1 where I am copying data from has columns A-Z and AA-AI, so I have A4:AI1000 to capture all the data assuming we won't have more than 1000 records with the headers taking up from 1-3 rows.
google-sheets
I am trying to copy data over from one sheet to another using Google Sheets and am using this query in the second sheet
=query(IMPORTRANGE("5UAxxxxxxxxxxxx-GMcxccccccccp-xsdff0","SheetName!A4:AI1000"),"select Col1, Col2, Col3, Col5, Col7, Col9, Col14, Col16, Col 18, Col19, Col20, Col21 where Col35 = 'Yes'")
Unable to understand what this error means.
Unable to parse query string for Function QUERY parameter 2: PARSE_ERROR: Encountered " <INTEGER_LITERAL> "18 "" at line 1, column 62. Was expecting one of: <EOF> "where" ... "group" ... "pivot" ... "order" ... "skipping" ... "limit" ... "offset" ... "label" ... "format" ... "options" ... "," ... "*" ... "+" ... "-" ... "/" ... "%" ... "*" ... "/" ... "%" ... "+" ... "-" ...
My Sheet1 where I am copying data from has columns A-Z and AA-AI, so I have A4:AI1000 to capture all the data assuming we won't have more than 1000 records with the headers taking up from 1-3 rows.
google-sheets
google-sheets
edited Nov 12 at 20:27
Jonathon
2,94531940
2,94531940
asked Nov 12 at 20:04
p0tta
1932520
1932520
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
A simple one, you have a space between in the column reference Col 18.
The error message was pretty clear:
QUERY Parameter 2is the query string itselfEncountered " <INTEGER_LITERAL> "18 ""means that it found the number 18 when it was expecting either a column reference or an SQL clause…
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
A simple one, you have a space between in the column reference Col 18.
The error message was pretty clear:
QUERY Parameter 2is the query string itselfEncountered " <INTEGER_LITERAL> "18 ""means that it found the number 18 when it was expecting either a column reference or an SQL clause…
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
add a comment |
up vote
0
down vote
accepted
A simple one, you have a space between in the column reference Col 18.
The error message was pretty clear:
QUERY Parameter 2is the query string itselfEncountered " <INTEGER_LITERAL> "18 ""means that it found the number 18 when it was expecting either a column reference or an SQL clause…
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
A simple one, you have a space between in the column reference Col 18.
The error message was pretty clear:
QUERY Parameter 2is the query string itselfEncountered " <INTEGER_LITERAL> "18 ""means that it found the number 18 when it was expecting either a column reference or an SQL clause…
A simple one, you have a space between in the column reference Col 18.
The error message was pretty clear:
QUERY Parameter 2is the query string itselfEncountered " <INTEGER_LITERAL> "18 ""means that it found the number 18 when it was expecting either a column reference or an SQL clause…
answered Nov 12 at 20:26
Jonathon
2,94531940
2,94531940
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
add a comment |
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
Thanks! I wasn't sure if this was data related or query related but this solved the issue.
– p0tta
Nov 12 at 20:34
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53269330%2fgoogle-sheets-query-unable-to-decipher-error-message%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown