Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.