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
SteveS1
New Member

Expression.Error: The key didn't match any rows in the table

I need assistance.

 

I get the above shown expression error.

I am in the desktop.  I  am connecting to an Azure SQL database.  It has 20 tables. I have previously direct connected to 18 of the 20.  Now i open a brand new model, and i choose to connect to previous data source.  I see all 20 tables.  I choose the 19th table.  As soon as i 'check the box' (selecting the table), the above error (The key didn't match any rows in the table) shows up in the Navigator box. 

 

The table has a primary key.  It also has a foreign key to another table.

 

This is my first post.  Have i missed providing any important information to solving this issue?

 

1 ACCEPTED SOLUTION
pqian
Microsoft Employee
Microsoft Employee

You are seeing locally cached results been returned. I think the 19th table is new in the database and therefore doesn't exist in the local cache. In this case simply refresh from the navigator (button right on top of the error) should work.

In the next release of desktop we plan to automatically refresh your local cache if we see this error.

View solution in original post

23 REPLIES 23

I received this error as well, but the refresh didn't clear the message. However, when I deleted the 'Navigation' step and then refreshed, the error successfully cleared. In your post here, you mentioned a change in a subsequent release to auto refresh the local cache. Was that implemented?

That was easy!  Thank you!  I am just beginning my PowerBI steps.  Now, i am off again into the journey.

fbrossard
Kudo Commander
Kudo Commander

Hi @SteveS1

 

When you're facing this kind of issue try this trick :

 

  1. Open the Queyr Edito by selecting "Edit Queries"
  2. Select one of the queries having the issue (one of those which shoul have a warning sign)
  3. On the applied steps, select the source step.
  4. And click on Refresh Preview button available in the ribbon

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