Forum Discussion
Nested tables: "Column 'Id' in Table...contains a duplicate value '241' and this is not allowed"
- 4 years ago
The problem turned out to be that Power BI assumes relationships that don't exist. Specifically, it assumes that if two objects both have an Id, there is a 1-to-1 relationship between them:
The solution is to delete these relationships before expanding the child rows.
Now, for some reason after expanding the tables, it re-reads the same information from the OData API. But at least the error is gone!
The problem turned out to be that Power BI assumes relationships that don't exist. Specifically, it assumes that if two objects both have an Id, there is a 1-to-1 relationship between them:
The solution is to delete these relationships before expanding the child rows.
Now, for some reason after expanding the tables, it re-reads the same information from the OData API. But at least the error is gone!
- david_piepgrass4 years agoFrequent Visitor
In addition, the same error happens if the correct relationships exist! But I am told that there is a workaround: expand the tables first, then create the relationships afterward.