Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
lt79_Pax
Helper II
Helper II

Query Editor fails to load data model

The Power BI Query Editor fails to load the data model eventhough the SQL  queries scripting each table displays successfully.  When I click on the close and apply, it tells me there is a syntax error eventhough in the query editor mode the queries outputs are successfully displayed.  I do not understand what I am doing wrong.  Please advise.

3 REPLIES 3
Cmcmahan
Resident Rockstar
Resident Rockstar

Is there any more specific information on the syntax error you're receiving?

 

If you could share screenshots of the error, we could help more, but there are TONS of different things that could cause a syntax error in the query editor and prevent you from importing. 

Once I try to close and load the data tables I receive these error messages eventhough Query Editor displays each table successfully prior.  


Apply query changes
table1
Microsoft SQL: Incorrect syntax near the keyword 'create'.
 Incorrect syntax near ')'.
table2
Microsoft SQL: Incorrect syntax near the keyword 'if'.
 Incorrect syntax near ')'.
table3
Microsoft SQL: Incorrect syntax near the keyword 'if'.
 Incorrect syntax near ')'.

Sounds like you have some incorrect syntax around your table SQL queries.  Can you share the offending sql syntax?  Looks like you've misplaced a semicolon or parens somewhere.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors