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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
DebbieE
Community Champion
Community Champion

Semantic Model load error Name contains a duplicate value

Power Query editor all the data is rfreshing fine.

 

I load into Power BI and get an error

 

Column Name in Table Dim Project contains a duplicate value of 'Name 1'

and this is not allowed for columns on the 1 side of a many to one relationship. Or for columns that are used as the primary key of a table.

 

Project Key   project ID Name             Status

1                   22             Name 1          good

56                 55             Name 1           poor

 

My issue is. That the Name doesnt need to be unique. Its the Project ID that makes it unique

 

In the star schema, I join fact to dim by Project Key to Project Key which is unique

1 (in the dim.  to many in the fact. And again, the Key is unique in Dim. I don't ue Name)

 

In Power Query editor I never use Project Name to merge tables together.

 

Im at a bit of a loss. I don't know how to get past this error.  And I don't think it should be happening. Can anyone give me any advice on what to do next?

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @DebbieE ,

 

Double check if the relationship was done by the correct column, sometimes when dragging and dropping I select the incorrect column by mistake.

 

A waork around is to remove the relationship, make the Power Query changes and then redo the relationship.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

AlexisOlson
Super User
Super User

From the error, it sounds like you're using Name as a relationship column. Double-check that there aren't any relationships on Name.

 

If that's not the case, I suppose it's still possible that the Name column got designated as a key column at some point. You can check and set that property with Tabular Editor but I'm not sure that's possible directly in Power BI Desktop.

 

Properties panel in TE3:

AlexisOlson_0-1718727080481.png

View solution in original post

6 REPLIES 6
AlexisOlson
Super User
Super User

From the error, it sounds like you're using Name as a relationship column. Double-check that there aren't any relationships on Name.

 

If that's not the case, I suppose it's still possible that the Name column got designated as a key column at some point. You can check and set that property with Tabular Editor but I'm not sure that's possible directly in Power BI Desktop.

 

Properties panel in TE3:

AlexisOlson_0-1718727080481.png

MFelix
Super User
Super User

Hi @DebbieE ,

 

Double check if the relationship was done by the correct column, sometimes when dragging and dropping I select the incorrect column by mistake.

 

A waork around is to remove the relationship, make the Power Query changes and then redo the relationship.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



DebbieE
Community Champion
Community Champion

Ill try this one first. 

 

The relationship is definitely Dim Project Prokect Key (1)  to Project Key  fact (M) so no issues there but I have removed the relationship to try again.

 

And its still erroring on the issue

 

then i sarted to think. I have a lot of transformation and landing tables in there (Because I havent managed to use a staging area for this project, Never good I know.

 

So could it be a staging table linking.....And yep. Power BI had assigned a relationship to the landing table on name that i hadnt seen.

 

And that resolved it. I hadnt thought about all these hidden tables I have had to have in the model.

 

Thanks you

Note that you don't need to load staging tables to your model. Go to the query editor and uncheck Enable load for any staging tables you don't want to be a table in your semantic model.

 

https://community.fabric.microsoft.com/t5/Desktop/Disable-table-loading-in-Power-BI/td-p/3261111#:~:....

I have never really understood this. I start with my landing tables that get refreshed. Then, I still want to refresh the staging tables because the staging tables then refresh the Dims and Facts. So dont I need to Load them so they populate dim and Fact? otherwise I wont be able to populate dim and fact with the latest refreshed data.

 

am I getting the logic wrong here? 

 

The staging tables that your fact and dimension tables depend upon will still be updated even if you don't load them.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.