Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31103

Direct Query Failing to Filter Strings With Apostrophes (ODBC: ERROR [42000])

$
0
0

I'm connected to a BigQuery database and am using Direct Query to access the data. When I load in a field of strings with apostrophes in some of the values (eg. "Larry's Diner"), everything will initially load fine into a visual, but when you use a visual level filter to select on of  the apostrophed names, this error occurs:
Release:
October 2018

Product Version:
2.63.3272.40461 (18.10) (x64)

Error Message:
OLE DB or ODBC error: [DataSource.Error] ODBC: ERROR [42000] [Microsoft][BigQuery] (70) Invalid query: Syntax error: Expected ")" but got string literal 'S BAKERY' at [63:42].

 

It certainly seems like this is a Power BI problem, since BigQuery runs the same queries no problem on its own. So my questions are: is this a known Power BI issue and is there an available workaround that doesn't involve removing the apostrophes from the values?


Viewing all articles
Browse latest Browse all 31103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>