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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Don-Bot
Helper V
Helper V

Azure Databricks Query: The key didn't match any rows in the table

I am attempting to use the azure databricks connection but instead of searching for a table I want to use a query.  However, even though I am throwing in a very simple query that works in my databricks notebook I am getting the error "The key didn't match any rows in the table"


I have tried just using a from clause that has the catalog, db, table and one with just the table.

 

Is there some special way to get queries to work against azure databricks using that connector?

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Don-Bot ,

 

If I'm not mistaken you need to define the default catalog on the Databvricks connection when using a query, even if it's not the catalog you want to use on the sql query just add one on the connection string.

 

MFelix_0-1744726211854.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Don-Bot ,

 

If I'm not mistaken you need to define the default catalog on the Databvricks connection when using a query, even if it's not the catalog you want to use on the sql query just add one on the connection string.

 

MFelix_0-1744726211854.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix ,
I have done that and it willl error if it ry to remove catalog.

DonBot_0-1744727522460.png

and then i get

DonBot_1-1744727553062.png

If I modify what i have a little bit.  IE:  Put in the db in the query and remove it from the above list I get

a working query.....  I swear it didn't work when I was testing this.... 



Hi @Don-Bot ,

 

This is very picky you when you want to use a query you need to define the optional fields but also add them to the query.

 

What I have done in my use cases I have made parameter for each one and a SQLQuery line to be pickedup that way when I want to update everything I just need to change the parameters.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix ,

I agree on the parameters, and for my other models I am heavily invested in the parameters but I'm not using queries.  Just pointing to already created tables/views.  This was a special need and was trying to setup a dummy pbi to make sure it would work.  

 

Quite annoying but thanks for the help.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors