The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
On Report Server October 2020 with November 18th Patch
Reproduction Steps:
1) Create a report with 2 tables using SQL Server data sources
2) Modify the data source of 1 table to declare the hostname/db name on 2 lines instead of 1.
One table should look like this:
Source = Sql.Database("HOSTNAME", "DATABASENAME"),
And the other table should look like this:
Source = Sql.Databases("HOSTNAME"),
DATABASENAME = Source{[Name="DATABASENAME"]}[Data],
3) Use a merge operator to join the 2 tables (no need to expand it)
Table.NestedJoin(#"Removed Other Columns", {"COL1"}, #"T1", {"COL1"}, "T2", JoinKind.LeftOuter)
4) Refresh the report, it works correctly in Desktop
5) Deploy the report on Report Server and refresh it, you will get the following error:
[0] -1056505856: COM error: mscorlib, An item with the same key has already been added..
[1] -1055129594: The current operation was cancelled because another operation in the transaction failed.
[2] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface.
Changing the data sources in step #2 to use the same method (e.g. declaration on 1 line) fixes the issue.
Edit: More details in this thread: https://community.powerbi.com/t5/Report-Server/COM-error-mscorlib-An-item-with-the-same-key-has-alre...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.