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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
swang123
Frequent Visitor

ODBC Dataflow Refresh Error

Hi everyone! Having an issue with a dataflow refresh, hoping someone can assist.

We have installed a data gateway on an Azure virstal machine. Data is from an ODBC connection which was refreshing fine until yesterday.

We are now getting an error saying: Error: The key didn't match any rows in the table. Request ID: 4fccdde4-7814-4db9-132e-b3efc428a380 Activity ID: ef9d12c0-6ab0-428d-aef4-d3837749789c

Tried loading the data via ODBC in Power BI desktop directly, and it loads fine. The query editor on powerbi.com states that the query has errors. The query is below:

let
Source = Odbc.DataSource("dsn=Main ODBC"),
shipedge_alpaca_fulfyld1_Database = Source{[Name = "main_alpan1", Kind = "Database"]}[Data],
shipping_out_Table = shipedge_alpaca_fulfyld1_Database{[Name = "shipments_out", Kind = "Table"]}[Data],
#"Inserted Lowercased Text" = Table.AddColumn(shipping_out_Table, "lowercase", each Text.Lower([Carrier]), type text),
#"Renamed Columns" = Table.RenameColumns(#"Inserted Lowercased Text", {{"lowercase", "Carrier_mast"}}),
#"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns", {{"Carrier_ActualCosts", Currency.Type}}),
#"Removed Columns" = Table.RemoveColumns(#"Changed Type", {"Carrier_mast"})
in
#"Removed Columns"

Does anyone have any idea as to why this may be happening?

5 REPLIES 5
GilbertQ
Super User
Super User

Hi there

Could I suggest you upgrade and install the latest version of the On-Premise Data Gateway and see if that resolves your issue?




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

Proud to be a Super User!







Power BI Blog

Hi,


Thanks! We did update to the latest version (3000.9.194)

Hi there

In the dataflow make sure you click on the triangle where it says there are errors.

It will add in a step which should resolve the error. I have had to do this before.




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

Proud to be a Super User!







Power BI Blog

JosefPrakljacic
Solution Sage
Solution Sage

Hey @swang123 ,

 

please check if

 

  • Your credentials are still right
  • The columns you are using are still in place (columns didn't get deleted or renamed)

I bet someone renamed/deleted a column in your table.

Here are similar threads

 

https://community.powerbi.com/t5/Desktop/Expression-Error-The-key-didn-t-match-any-rows-in-the-table...

 

http://community.powerbi.com/t5/Integrations-with-Files-and/Expression-Error-The-key-did-not-match-a...

 

https://community.powerbi.com/t5/Service/Key-Expression-Error-The-key-didn-t-match-any-rows-in-the-t...

 

If this post was helpful may I ask you to mark it as solution and give it some kudos?

Have a nice day!

BR,
Josef

Hi! Thanks for responding. 

 

Just checked this out - none of the columns have changed. The Key error only in shows in the PowerBI service website (where we refresh the dataflow). When trying to refresh within the query editor online, it only says that "the query contains errors".

 

Not sure why this may be happening still?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.