24

On my RDLC page, the "Report Data" window shows a custom dataset that it pulls fields from to display. I've modified this DataSet with some additional tables. However, these tables aren't shown and therefore I'm unable to select them for use in expressions (in the Expression window, under Datasets, there are only the tables that were originally there, not the additional tables I've added).

Refreshing the data source doesn't do anything, and if I right-click on it and select "New Dataset", I'm unable to select the parent data source (it doesn't appear in the drop down list). What I mean is, if the data source is called "MyDataSet", and under that are other DataSets, if I right-click and go to "Add Dataset", it brings up the dialog box but "MyDataSet" is not in the list of available Data sources, even though I'm specifically saying I want to add a datatable to that data source. The other, existing, datatables list it under the data source, but new ones do not.

How do I refresh the data source so I can access these new tables in my report?

1

16 Answers 16

24

This is an old question, but I was having this problem too and I'll mention my answer for future googlers.

In the Report Data Window (which automatically appears for me when I am editing a .rdlc file), I had to Refresh my Dataset (same name as the DataSetName in the Tablix in my .rdlc Report), and then that updated the XML of the .rdlc file. The new fields are then available to me.

6
  • 14
    Took a bit to find the Report Data Window (had accidentally closed it, but was able to reopen via View | Report Data (Ctrl-Alt-D). Refreshing various objects did the trick. Good catch!
    – Mike Loux
    Commented Nov 21, 2012 at 13:53
  • 1
    hum, interesting I tried this for a specific case but did not get it to work that way (refreshing) after an hour of trying (and yes vs2012 restarting) I just deleted my old datasource (which was fortunately only used by that report) and readded it with the same dataset and table - et voilà - new columns showed up :D Commented Jul 29, 2014 at 11:19
  • This answer is not working for me yet. I may have to resort to DrCopyPaste's approach. Commented Apr 14, 2016 at 14:47
  • 1
    I was looking for a solution for hours.@Conrad and @MikeLoux solved the problem in seconds Commented Apr 11, 2019 at 15:59
  • 1
    Wow, this takes me back. @Conrad mentioned that it was an old post back in 2012. Now it's a REAAAAALLLLY old post. :-)
    – Mike Loux
    Commented Apr 12, 2019 at 0:38
14

I have the same problem with Visual Studio 2010 Premium. You must do this step:

  1. Re-build the project that contain your Business Object
  2. Restart Visual Studio
  3. Refresh your DataSet (Report Data --> Right click on DataSet --> Refresh).
1
  • 3
    Restarting Visual Studio seemed to be the trick for me, using VS2015.
    – Kevin
    Commented Jun 13, 2017 at 21:05
6

I managed to get this working (for SSRS in C# using a Dataset that points to a Stored Procedure) by:

  • hitting Shift+Alt+D (which opens the "Data Sources" window)
  • In Data Sources, select/click the table you want to update
  • At the top of the window there are icons (I'm using VS2012). The 2nd from the right is "Configure Data Source" - click it and it will open a new wizard window that will appear to be refreshing everything.
  • UN-check the column that is no longer applicable and/or check the new column (if the values aren't already checked/unchecked).
  • Go back to your "Report Data" window (Ctrl+Alt+D) and right-click on your Dataset and then click "Refresh".

All the columns should be updated at that point.

2

Have you tried rebuilding your project? I had to do this after changing any business object.

2

I had this issue for hours on VS-2008. Tried everything and at the end what worked was just to close and open it VS again.

2

I can confirm that just closing the solution and reopening it, with later refreshing the DataSet from Report Data window worked for me. Seems like there is no need to restart VS.

0
2

I got the same issue in visual studio 2012. I solved it, here is the steps,

  • Press Ctrl + Q and type Report Data (If No Report Data window available)
  • Expand Data Source node to find the data set (I have used Data Set)
  • Right click on the Data set and select Refresh (Simply refresh the data source)
1

Delete the dataset and again add it with ur query or usp...

0

If you are using a database source the likely culprit is that you didn't create the query with select *. Without the * the query will always be static and new fields won't appear. HTH

0

For visual studio 2010

  1. Open Your Data Set (.xsd file)
  2. Right click on data set click on configure
  3. Click on Next Next than finish
  4. On your dataset click refresh than Changes willbe display.
0

Sounds like same issue is happening on VS2019. I could resolve the issue by only restarting Visual Studio, nothing else worked!

0

This is the only solution worked for me.

After updating the DataSource properly, open the .rdlc file in NotePad and add the newly added Field manually. Then it will be available to use in the report.

enter image description here

0

Had the same in VS2019 using an object datasource, right click and refresh on the dataset in the Report Data window had no effect until I changed the build configuration from x64 to Any CPU, then it worked as expected. Once it updated changed the build back and all was well - not at all flakey!

0

As ChanthJ said - It is the only solution worked for me.

After updating the DataSource properly, open the .rdlc file in NotePad and add the newly added Field manually. Then it will be available to use in the report.

steps

0

Assuming you Data source is fed by stored procedures, the following worked for me (On Visual Studio 2017): -

  1. Make the necessary changes in the source stored procedure in the Database(new Field Names etc.).
  2. Double click the .XSD file from the Solution Explorer to open it
  3. Delete the associated Data Table / Table Adapter.
  4. Add the Table Adapter back into the .XSD file (the changes will be reflected)
  5. Save and close the .XSD
  6. Open the .rdlc report designer.
  7. Press "ctrl+Alt+D" or Click View > Report Data.
  8. Expand the Data Sources node.
  9. Right Click the Data Source.
  10. Select "Refresh".
  11. Expand the Datasets node.
  12. Right Click the Data Source.
  13. Select "Refresh"

The changes will now reflect and be available for selection on the .rdlc report designer

0

In the Report Data right click the dataset, then select Dataset Properties. In the list of available datasets select a different one. Then select the previous or correct dataset and Voila. It is refreshed!

Not the answer you're looking for? Browse other questions tagged or ask your own question.