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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JRyan
Frequent Visitor

"Duplicate Value" Error

Hi,

 

I have a report that I have created in Power BI Desktop and it runs fine there, and refreshes the data fine also.

 

When I publish the report to Power BI Service it then works fine, but when trying to refresh the data (manually or Scheduled), I get an error about a duplicate value:

 

Column 'Contract ID' in Table 'Contract Line' contains a duplicate value '4835' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table. Table: Contract Line.

 

To check this i refresh at the same time in Desktop and there are no duplicate values there or errors!?

 

Can anyone help?

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @JRyan ,
 
After my test, desktop will display the same error.
What kind of connection are you using?
Based on this error, you can modify the relationship in desktop and republish this report.
 
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors