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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GD61
Helper III
Helper III

The column "PeiodId in the table 'Timesheets' contains a duplicated value.

Hello,

I'm trying to build a report about Project Online Timesheets in Power BI Desktop, but when I refresh the Timesheet table I get the error:

"TimesheetPeriods: The loading has been canceled because an error during the the loading of a previous table"

"Timesheets: Failed to save modifications to the server. The column "PeiodId in the table 'Timesheets' contains a duplicated value. This is no authorized for unilateral columns in a many to one relationship or for columns which are used as primary key"

 

How an ID can be duplicated ?

How can I correct this issue ?

NB: there is no relationship between these tables.

 

Thanks for help

 

 

3 REPLIES 3
russellclaude
Frequent Visitor

I got this error, and I fixed it by

 

1) copying the text of all my new queries to notepad for safe-keeping

2) deleting all of my new queries from the model

3) applying changes

4) copying and pasting me queries one-by-one back into the model, applying changes one by one. You'll want to re-create them in the proper order.

 

I think this problem stems from the auto-detection of relationships in Power BI/M Query. This did certainly fix my problem, though.

 

AgustAX
New Member

I see your post is almost a year old without response. I had the same issue:

--

Column ID in table MyTable contains a duplicate value [MyValue] 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.

--

Loading this dataentity independently gave no error, removing all relationships from this entity also did not fix the error.

Finally - I removed this table from the dataload - and refreshed everything without any errors. Then I went back and re-enabled the table, hit refresh and it refreshed just this table - and finally no error.

 

So - it sounds like this is a dubious error that comes because of the order the data is loaded in? Anyways, the error disappeared when the trouble table was removed from the load and then enabled back once everything else had been loaded.

I have a similar issue. Although I have already removed all relationships the problematic table has with other tables, the problem still persisted. 










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


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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