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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors