RDLC Report Data not refreshing and crashing Visual studio
Asked Answered
T

3

3

I am asking this question because I had a lot of problems with getting the report data to work with my report and the other answers did not work for me.

Task: The data source of the report is outdated and needs to be refreshed.

Problem: Refreshing the data Set in the Report Data viewer will make visual studio crash.

This happened to me using Visual studio 2012.

Tibetoburman answered 20/4, 2015 at 12:17 Comment(1)
Updating the rdlc file manually is the only solution worked for me https://mcmap.net/q/545602/-rdlc-report-data-doesn-39-t-update-to-reflect-changesAppall
T
4

I found the answer to this question after searching around a bit in the rdlc file.

You can open the rdlc file in a text editor like notepad++.
Search for: "SchemaPath", this will show you the link to your schema.

In my case the schema path was wrong and I had to change it so it could find the new schema. When this is changed to the right path, you can then refresh your dataset in the Visual Studio Report data view.

You can open the report data view with the key combination: CTRL+ALT+D.

Tibetoburman answered 20/4, 2015 at 12:17 Comment(0)
F
1

I had the same issue. I figured out that one file in folder Properties/DataSources has incorrect TypeInfo tag. It contains type that does not exists. When I fix type name then VS stop crashing

Fiendish answered 12/4, 2017 at 15:7 Comment(0)
A
0

Strangest solution I've seen for an rdlc issue: YUICompressor version.

Our issue 'rdlc report data not refreshing/crashing' had this pattern:

a) The rdlc Dataset editor crashes VS if the project is built.

b) Visual Studio 2022.

c) At least 80 versions back, if we load/build that version or earlier, Dataset editor works.

d) Finding the version that causes the crash depends on starting VS fresh each time. Weird reload issue where simply closing the project does not guarantee a good test. Restarting Visual Studio required to ensure accurate test.

Never seen a pattern like 'd' before in VS. Restarting VS affecting whether bug is displayed.

Update - Finally found it - 7/31/24

Apparently the YUICompressor conflicts with rdlc Reports if the version is beyond 2.3.0 (tested up to 2.7.0). We use SquishIt 1.0.4 for compression (best tool that we've found), and that requires YUICompressor between 2.3 and 2.7. So no clue if this happens on the later versions of YUICompressor.

So just reverting YUICompressor back to 2.3 fixed all issues for us.

Sincerely, M. Morris

Accursed answered 24/7 at 19:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.