pdenoyelles's avatar
pdenoyelles
New Member
4 years ago
Status:
Investigating

Cannot connect to a Snowflake database that has a hyphen in its name

Steps to reproduce:

  1. Create a Database and table in Snowflake
    • Have the database name include a hyphen. Ex: TEST-DB

 

CREATE DATABASE "TEST-DB";
CREATE TABLE PUBLIC.TEST_TABLE (
    ID INT,
    DESCRIPTION STRING
);
INSERT INTO PUBLIC.TEST_TABLE values (1, 'test'); 

 

  • Create a new report in Power BI Desktop and set up a connection to this Snowflake database with the Snowflake connector in Power BI: https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-connect-snowflake
  • Choose DirectQuery
  • Select Fields to create test report
  • Save report and publish to a workspace
    • Navigate to the dataset
    • Navigate to Settings
    • Set the credentials to the published dataset in https://app.powerbi.com/
    • Go back to the workspace and navigate to the report
  • Observe the "syntax error line 1 at position 8 unexpected '-'." error encountered when loading the report in https://app.powerbi.com/

3 Comments