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
hansei
Helper V
Helper V

An item with the same key has already been added.

I am creating (my first) datamart, and am planning on using tables from a couple of different dataflows. I can create a datamart with table 'Payers' from dataflow 1. Separately, I can create a datamart with table 'Notes' from dataflow 2. Both of these dataflows exist in the same workspace as the intended datamart.

 

However, if I try create a datamart including both 'Payers' and 'Notes', they load into power query fine... but, when saving the datamart, an "InternalError" with message "An item with the same key has already been added" is received during the 'Wrapping things up' phase (after a successful 'Loading data' phase).

The dialog also reads "Your datamart is in a critical state. Please return back to the workspace" in red, and, when closed, the view ends up on the workspace. If an attempt is made to open the new datamart, an error message reading "The batch was submitted on the datamart 'GUID' that is not in an available status."

Unsure what all of this means. There is no relation between the tables. Both return empty lists if queried using Table.Keys().

 

3 REPLIES 3
Shahfaisal
Solution Sage
Solution Sage

I have seen that error occuring when there are two fields with the exact same name. Could you double-check if that is the case?

Do you mean two fields from the two different tables? That certainly occurs in my model e.g. primary keys and foreign keys from another table. If you mean within a single table, no.

The example models from Microsoft certainly have keys in multiple tables with the same name. e.g. In this model, Employees and Orders both have a field named EmployeeID. Similarly, Employees and Customers both have a field named Country.

 

Note again that my tables can be added individually without issue. The issue only arises when attempting to add both.

@hansei  was it resolved? I have this error today.

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

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.

Top Solution Authors
Top Kudoed Authors