Solved

ssrs problem when adding fields to existing table

Posted on 2014-03-24
4
800 Views
Last Modified: 2014-03-26
I have needed to add columns to tables SSRS is using as sources for reports.  I have found that if I add columns to the table but not at the end this breaks the report. It seems to key the position of the column in the tablel

So if I have the following original table:

Table1
Col1
Col2
Col3

And I want to change it to the following it works fine:

Table1
Col1
Col2
Col3
Col4

However the following breaks the report:

Table1
Col1
Col4
Col2
Col3

Is there a way I can add new columns within the table and refresh the dataset to find them?
0
Comment
Question by:canuckconsulting
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 27

Assisted Solution

by:planocz
planocz earned 167 total points
ID: 39950657
They have to be added to the dataset first then check to see if they exists to show or hide that field.
0
 
LVL 13

Assisted Solution

by:Koen Van Wielink
Koen Van Wielink earned 166 total points
ID: 39952750
First of all, there is no reason why you would need to add a column in between other columns. Adding new columns to the end is perfectly fine, and there is no difference in performance. Sequence of columns is selected in your query, not because of the underlying table column sequence.
Secondly, adding a column to a table should not break the report. The dataset would still select the same existing columns. Unless you did something funky in your dataset query like an insert statement where you use select *. In that case because you changed the column sequence your insert statement would fail.
If you still can't work it out it would help if you can upload some sample data, your dataset query and the report RDL.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 167 total points
ID: 39955312
As kvwielink mentioned, adding fields to tables not should break reports as long as the queries for those reports are written using best practices.  Please post some more details on how exactly the report gets broken.  Do you get any error message for instance?  The queries would also help.
0
 

Author Closing Comment

by:canuckconsulting
ID: 39957916
Hi guys,

The issue appears to be related to cached data stored in the associated .rdl.data files.  If I delete the file the report runs fine.

Cheers guys...I'm splitting the points and hope future searches will also note my comment.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question