Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

SetItemDataSources Not Working as Expected

$
0
0
I have constructed the following code:

     Try
      Dim report As String = "/ReportFolder/Corporate Report"
       
        Dim dsr0 As New DataSourceReference
        Dim dataSources(0) As DataSource
        Dim ds0 As New DataSource
        dsr0.Reference = "/Data Sources/Corporate Datasource"
       
        ds0.Item = CType(dsr0, DataSourceDefinitionOrReference)
        ds0.Name="Corporate Datasource"
        dataSources(0) = ds0

           rs.SetItemDataSources(report, dataSources)
     Catch e As Exception
            Console.WriteLine("Datasource Binding Error: " + e.Message)
     End Try

Now I know that both the Datasource and the referenced Report exists at the time I execute this code but I continually receive this error:

Datasource Binding Error: The data source 'Corporate Reports' cannot be found. ---> Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceNotFoundException: The data source 'Corporate Reports' cannot be found.

In effort of troubleshooting the problem I have also programmatically enumerated through the item list on the designated Report Server and can also clearly see that the datasource and the report exists. What am I doing wrong???

Every piece of documentation I've searched including BOL suggests that the code is valid.

Any suggestions or thoughts appreciated.

thx

Display values in a test box based on a condition

$
0
0

Hi,

Please help me with this criteria

I'm creating a Fetch XML report in ssrs for D365. I'm new to ssrs reporting I'm struggling with this please let me know if any one can help with this situation.

for ex I want to display a employee information in a table with column headers id, name, age, address(street, city) and corresponding values in the report

in employee record I've work address(street, city, state) and home address(street, city, state), one of this will have values but not both,want to display the corresponding work/home (street, city) in report column.

is this can be done.

thank you    

Group by and adding sub total and total to the report

$
0
0

Hi,

Please help me with this requirement

I have a Case table with a Status field and would like to display the table as shown below can anyone help me please.

Thank you in advance

Folder security in SSRS

$
0
0

We our migrating our reporting services to a new server. The current reporting services folder security is setup incorrectly and I have to change the security for EVERY FOLDER (hundreds of them). I have to go to the drop down > Security > Revert to Parent Security for every single folder on our SSRS!

Is there not a way to set all sub folders to inherit security? Like on Windows folder security you just "Replace all child object permissions with inheritable permissions from this object" on the parent folder and it applies all the permissions to every child folder.

SQL Server 2014 Business Intelligence edition.

SSRS Migration SECURITY question

$
0
0

Hi There, My goal is to migrate all my reports from one server to a new server and SQL on current prod is 2014 and new server will have 2016. My SSRS is of native mode on both servers. I am doing this in parallel, so rollback would be easy jic. I have read articles to backup and restore ReportServer and ReportserverTempdb databases followed by encryption key. My question here is does this take care of all components related to reporting services? Can anyone respond on security? Does this include all reports, users, roles if any. Please let me know anything I have to backup and move to new server apart from backup and restore process.

Sincerely

RRR

How to modify SQL to run in SSMS instead of reporting

$
0
0

Hi,

I have a snippet that was designed for reporting but I would like to run it in SSMS instead.

--Detailed patch compliance
SELECT DISTINCT
	UI.BulletinID,
	UI.ArticleID,
	UI.Title,
	UI.DatePosted,
	UI.InfoURL,
	UCS.Status
FROM
	v_Update_ComplianceStatus UCS
	LEFT OUTER JOIN dbo.v_GS_COMPUTER_SYSTEM CS ON CS.ResourceID = UCS.ResourceID
	JOIN v_CICategories_All catall2 ON catall2.CI_ID = UCS.CI_ID
	JOIN v_CategoryInfo catinfo2 ON catall2.CategoryInstance_UniqueID = 
		catinfo2.CategoryInstance_UniqueID
		AND catinfo2.CategoryTypeName = 'Update Classification'
	LEFT JOIN v_FullCollectionMembership FCM ON FCM.ResourceID = CS.ResourceID
	JOIN v_UpdateInfo UI ON UI.CI_ID = UCS.CI_ID
WHERE
	UCS.Status = '2'
	AND CS.Name0 = @PC
ORDER BY
	UI.ArticleID

I tried changing line 20 with "CS.Name0 = @PC" to "CS.Name0 LIKE 'MyComputer'" but it produces no results. I tried using computers that are known to have missing patches but still no results.

Is it possible to run this in SSMS? What needs to be changed?

Thank you!

Rob


SSRS Report Printing Blank Pages when Exported to PDF

$
0
0

HI,

I have a report that has all of the information in the header.

To show the information in the header I have the tablix in the body but I hide each textbox. I then use the ReportItem collection to display the current data in the header. I also modify the column widths so they do not go past the end of the page.

I do this because I don't want the data to be displayed as a table but in more of a free form format.

Everything looks good when I run the report but when I export it to a pdf file I end up with blank pages. I've seen posts where this was a problem in 2005 but we are running SSRS 2012.

Thanks for the help!

Gary 



Hide Header footer Export to Excel

$
0
0

Hello

I want to hide header and footer only when I export report to excel as it makes report look messy.

I have set the below visibility expression for my Header/Footer 

=IIF(Globals!RenderFormat.Name = "EXCELOPENXML" OR Globals!RenderFormat.Name = "EXCEL", true, false)

It works fine when I export to Excel 2007. However , it doesn't work for Excel 2003.

Or I would better say it works for xlsx but does not work for xls.

any inputs.

Many thanks




How to Eliminate Merged Cells from a Reporting Services Excel Export

$
0
0

I have a report generated from Visual Studio 2008 Reporting Services that the users like to export to Excel then sort.  The report contains a couple images in the report header.  When the report exports to Excel, the header is causing merged cells in the spreadsheet. These merged cell are preventing the users from sorting with an error "This operation requires the merged cells to be identically sized."  Does anyone know if the images can be removed from the export from this report without affecting other any other report exports?

 

How to display a title outside the tablix, where a title is is a group break?

$
0
0

I created a table which for each bank displays some data. I want to create title with a name of the bank, like:

        Bank 1

acct  balance

111    $1.00

222    $1.11

         Bank 2

acct  balance

110   $1.00

222    $2.11

When I create a placeholder - the option is First(Field...) but I want to show each field on break of the group.

Any suggestions?

Thanks,

zb

String to Date conversion in expression

$
0
0
Need to display the string "Dec 30 2006 12:38:54:840AM" in MM/DD/YYYY format in a SSRS report. Certainly appreciate any help.

Cannot Edit an existing report using Internet Explorer

$
0
0

I have one user that has the following issue. When he clicks on the 3 dots next to the report to open the menu and then selects "Edit in Report Builder" a pop up box opens stating "The value of Action was not recognized. Valid values are: New, Edit".  This only happens when he uses Internet Explorer.  If he tries the exact same thing using Firefox or Chrome the report opens in Report Builder fine.  I can open reports on my laptop using Internet Explorer without any issues.  We are running the same versions, and appear to have the same security settings.

Anyone have any ideas?

Conditional page breaks in SSRS

$
0
0

 

 

Hi,

 

I am having trouble setting conditional page breaks to my reports.

 

i.e... I am having a report where I need to allow user the option to set page break between a group or not.

 

Based upon the option selected by the user, I need to add page break to the report. I tried with all possibilities inside Sort and Group dialog box, but could not figure out how to toggle the option at runtime.

 

Does anyone know how to implement page breaks on runtime? Help me plzzzz!! I really need this to be done…Thanx in advance for any help..

 

- Rayz

Report Builder 3.0 crashes on launch with problem event: CLR20r3

$
0
0

Description:
  Stopped working

Problem signature:
  Problem Event Name:CLR20r3
  Problem Signature 01:msreportbuilder.exe
  Problem Signature 02:10.50.1600.1
  Problem Signature 03:4bb67a84
  Problem Signature 04:mscorlib
  Problem Signature 05:2.0.0.0
  Problem Signature 06:4e1511f4
  Problem Signature 07:41bf
  Problem Signature 08:a3
  Problem Signature 09:System.UriFormatException
  OS Version:6.1.7600.2.0.0.256.48
  Locale ID:1033

Scatter chart labels

$
0
0

Hi,

How to show the labels line(black line arrow) in scatter chart which is placed on top of stack chart this below?

Thanks


Ordering Clustered Bar Chart on 2nd Series

$
0
0

Hi All,

I have a clustered bar chart that I am trying to order on value, and it is ordering correctly on the first series group, but I would like to order it on the second series group. I am sorting the category groups by the values descending in the category group settings. 

I am unable to attach an image; but for example my chart shows figures for 2018 and 2019 in separate series, and I would like to order the category groups on the x axis by 2018 figures rather than 2019.

Can this be done?

Thanks

Can you link or call a subreport from another solution/project?

$
0
0
or is having it in the same project as the main report the only way possible?

Thanks.

Joe

Report builder 3.0 - Unable to connect to server

$
0
0
Hi there,

We've been using Report Builder 2.0, and its been working pretty nicely. We have the option 'Use this report server or sharepoint site by default' option set to http://<server>/reportserver - and users can connect via the 'Open' dialog, save, etc.

However, some of our users have been testing Report Builder 3.0 - and they are unable to connect, even though the URL is set exactly the same.  They have Report Builder 2.0 and 3.0 installed on the same client workstation. With the same settings, 2.0 can connect, but 3.0 can not. The target installation is SSRS is SQL 2008.

The error is:

Connection failed.

Unable to connect to the server that is specified in the URL...
Make sure that the server is running, the URL is correct and you have permission to use the server.

Does anybody have any ideas?

thanks, mark

SSRS Expression Split on 2 conditions

$
0
0

So I have a report for SCCM i'm creating and the displayname0 column I need to split out on two different characters.

So for example I have;

Vendor_AppTitle_Version when I use the following expression =Fields!DisplayName0.Value.ToString().Split("_")(0)  all is fine and works as expected.

Problem is some data returns with out the underscore and just a space. So I need to work in an or condition? and thats where i'm stuck. Like able if I use =Fields!DisplayName0.Value.ToString().Split(" ")(0)  works fine, I need to combine both into one.

Thanks

-Paul



Scale out deployment, force different server for some reports

$
0
0

Hello,

I have a large set of reports on our server. One set of reports is required to update every 30 seconds and is typically running on 15-20 different computers at all times. We were getting frequent errors and I can't recall the exact error but, based on limited information on other forums, I have made adjustments to the service itself which has helped, mostly. We still occasionally see the errors and now I'm being asked to put more on the server. This particular set of reports I have set up to write data back into our application database and since this particular set of users no longer has rights to the application, I need to have them on a different server so nothing else impacts their stuff.

-- BACKSTORY --

I am the DBA for one of the largest animal shelters in the nation. We have hundreds of volunteers that walk our dogs who are currently residents of our shelter until they are adopted out to their forever homes. When I started here, volunteers had unrestricted access to our sheltering application which I opposed from the start. Last summer, a volunteer changed critical information which adversely affected treatment of one of our dogs. Thankfully, the dog was ok in the end and the application logs everything so we could find out who did it. This was the point where leadership finally saw my point and agreed to limit access. 

Most volunteers don't need access to our sheltering application. In fact, out of nearly 1,500 volunteers, only about 200 really needed access so I setup those users with only what they needed. However, for the hundreds who walk our dogs, they still needed access to see the dogs needing a walk and record information required by the state for each time a dog is walked. I built a series of reports in SSRS that take care of our dog walkers. We just need to keep it stable since they no longer have application access.

-- END OF BACKSTORY --

I started by installing a new instance of SSRS on a different server. I followed the scale-out deployment process to join the new instance to the existing SSRS database and it works as expected. Now, I need to know how to direct users to the new instance. Here is how I have it setup now:

1. User opens an Operations Dashboard. At the bottom, there is a graph with dog walking summary information and I have the graph title textbox setup with an action link to go to the "Dog Walk" dashboard (the action link passes the location parameter to the Dog Walk dashboard). The Dog Walk dashboard refreshes every 30 seconds so volunteers at any computer can see who is already out on a walk so they don't spend time going to a kennel. This keeps the service busy.

2. The volunteer will click on the name of the dog they wish to take on a walk. This has an action link to a "Start Walk" report which passes the animal ID number. This report first asks for the volunteer's initials as an additional parameter. It then displays information about the dog they selected. There is a question to ask if this is the correct animal and a Yes box and a No box on the report. The No box has an action link back to the Dog Walk dashboard. The Yes box links to another report, passing the animal ID and volunteer's initials. This report runs a stored procedure which records the start of the walk and returns the volunteer back to the main Dog Walk dashboard.

3. At the end of the walk, the volunteer follows similar steps, just with different links to record walk information.

There are more details I won't bore you with at this point (unless desired). Step 1 is where I need the help. From our main Operations Dashboard (on server 1), when the volunteer clicks on the link to go to the Dog Walk dashboard, this is the point where I want them transferred to the new server (server 2). All other operations staff can stay on the original server. I did find documentation where I can put a link in something like this:

="javascript:void(window.open('http://[server2]/ReportServer?/Operations%20Dashboard/Dog%20Walk&rc:Parameters=Collapsed&Location=[shelter location]" + "','_blank'))"

The problem I have found is that while this "does" work, to open the Dog Walk dashboard in a new tab in the browser, passing the location in is problematic. For one, I lose the "Go back to the parent report" button and I can't find a way to keep it there. Second problem is that with the location passed on the URL instead of "behind the scenes" with the report on the same server, moving around to different reports resets my location if I change it. For example, I have another field on each row where the user can click to open another report with animal details. Since I don't have the "Go back to parent report" button, I have to use the browser's back button which resets my location to what I originally passed in.

Thoughts?

My only other idea was to setup pseudo load balancing (two DNS entries with the same name but different IP addresses) since we don't have the budget for an official load balancer. I did this at my previous employer for a large web application and it kept the load on both servers relatively balanced.

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>