Forum Discussion
Expression.Error: The key did not match any rows in the table
- 10 years ago
Ran into this issue myself within the Power BI Desktop and was able to resolve the issue through the following:
- Select Edit Queries from the menu to open the Query Editor
- Use the left hand menu to select one of the queries having the issue (will have the triangular warning sign)
- On the applied steps menu at the right select the source step.
- In the top menu bar, select Refresh Preview.
In my case there were several queries having this same issues and the steps above resolved each of them.
Hope this helps -
This did not work for me either. I connected to a database, then copied some views into that db. PowerBi keeps giving me the message about keys not matching.
I've gone into each view to change the source to the new db and then hit refresh but i still get the message of keys not matching. Any suggestions?
This issue happened to me and it is because whenever I download the raw data from Salesforce it gives the worksheet within the xlsx file a different name. I have to go into each query and update the worksheet name under 'navigation'. This problem has only occured for me since importing xls files rather than csv, might just go back to using csv's