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
raduser
Frequent Visitor

The key didn't match any rows in the table. Details. Trying to change the table schema.

Hi,

 

I am trying to change the schema of a table object by going to the advanced editor but it keeps on erroring out. The contents of the advanced editor:

 

let
Source = Sql.Database(ServerName, DatabaseName),
dbo_Table_Name = Source{[Schema="dbo",Item="TableName"]}[Data],
#"Renamed Columns" = Table.RenameColumns(dbo_Table_Name,{{"customer_id", "CustomerID"}})
in
#"Renamed Columns"

 

All i want to change is the Schema of the object from "dbo" to "data". The new table in the new schema does have a new column. Is that the problem?

 

The changing of the schema unfortunately keeps on failing. Is this an easy thing to solve?

 

The error I get is the below:

 

Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Schema=data
Item=TableName
Table=[Table]

 

Thanks,

 

1 REPLY 1
PhilipTreacy
Super User
Super User

@raduser 

 

Do you have a table called TableName in the database?

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.