- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
BUG: Report Server refresh fails if data source are created differently

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.
- Michael_Tucker on: New Card Visual inadvertently switching on values ...
- Gandalf12345 on: Copying Table with Filters is Ignoring Filters
- DNilsson on: March 2025 Update - Error fetching data for this v...
- Knox_DataMan on: Snowflake connector isn't showing views after Marc...
-
mattlee on: March 2025 update - Style preset error
- KrishnaKishoreK on: Conditional Formatting - Field Value not working a...
- jbongjbong on: Stretched App's Logo in Home Page "Recommended"
- pedrodr99 on: Button Slicer - Label - Color change not working
-
v-xiaoyan-msft on: Default Chart - Shape Map Is Not Working As Expect...
-
v-xiaoyan-msft on: Error (Exception from HRESULT: 0x80070002)
- New 7,873
- Needs Info 3,502
- Investigating 3,603
- Accepted 2,084
- Declined 38
- Delivered 3,964
-
Reports
10,150 -
Data Modeling
4,094 -
Dashboards
4,082 -
Gateways
2,103 -
Report Server
2,099 -
APIS and Embedding
1,951 -
Custom Visuals
1,770 -
Content Packs
521 -
Mobile
353 -
Need Help
11 -
Show and Tell
3 -
General Comment
2 -
Tips and Tricks
1 -
Power BI Desktop
1