Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I have created a report that joins two sql server views in a 1:Many relationship with one view containing the supervisors and the the other their trainees. Ths is the relationship:
It all works fine in the desktop app and I can refresh the datasets there no problem, however when I try to refresh the semantic model in the web version I get the error message below:
I have searched the "The key didn't match any rows in the table" part of the message extensively and it usually applies to excel sourced datasets where one of the column names has changed. This is not the case here. I have also confirmed that there are no IDs in the child view (vwPowerBi_SupervisorTrainees) that do not exist in the parent view.
Any help\ideas would be much appreciated.
Regards
David
Solved! Go to Solution.
Hi, @David111
I found some links and hope it helps:
Solved: Expression Error.: The key didn't match any rows i... - Microsoft Fabric Community
Solved: Expression.Error: The key didn't match any rows in... - Microsoft Fabric Community
This could also be an issue with the new version. It can have a problem with text format conversion, the previous CSV file extracted to PBI line breaks will be converted to spaces, and now the line breaks will become line breaks. You need to check if there is any problem with the steps of your PowerQuery format conversion. It's also possible that there is an internal service issue, which the team is currently following up.
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks heaps for the response. I checked the datatypes and one was varchar(10) and the other nvarchar(20), so I tried casting them both as varchar(10), but it made no difference. I even tried casting them both as ints. I also confirmed there are no null values returned for these fields in either view.
It is definitely this join causing the issue. When I remove the vwPowerBI_SupervisorTrainees view from the report, I am able to refresh the dataset (but don't have the information I need).
Regards
David
Hi, @David111
I found some links and hope it helps:
Solved: Expression Error.: The key didn't match any rows i... - Microsoft Fabric Community
Solved: Expression.Error: The key didn't match any rows in... - Microsoft Fabric Community
This could also be an issue with the new version. It can have a problem with text format conversion, the previous CSV file extracted to PBI line breaks will be converted to spaces, and now the line breaks will become line breaks. You need to check if there is any problem with the steps of your PowerQuery format conversion. It's also possible that there is an internal service issue, which the team is currently following up.
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It was a permissions issue to the view vwPowerBI_SupervisorTrainees.
Thanks, that second link tipped me off.
Regards
David
Hi, @David111
You need to check that the data types of the join columns are consistent. If the data types are different, it may cause the match to fail. If there is a null value (NULL) in the join column, it can cause the match to fail. Consider handling null values in join conditions.
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.