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

Pass SSRS Parameters when clikcing bookmark

$
0
0

Hi All,

I am facing some issues in SSRS Bookmark section. Please see the below questions.

1) When I set bookmark, Dynamic Bookmark-ID is not shown in SSRS URL, I know bookmark ID will starts with "#" tag Ex(#1645JTi3) and it will enable when we click any chart or tablix. but in my dashbaord the Id will not shown.

2) I want to pass parameters when I click Bookmark. For Example. I have one (tablix or matrix) with data bar. 

i) Employee ID

ii) Total Projects Counts (Assume that, 30 will be the Total Project Count ).

iii) data bar will be Done(10), Completed(20),  In Progress (10). So three bars will come.

At the time of initial loading the Data bar will not be visible, when I click Employee ID then the data bar have to show without loading page. which means Cursor will not be change.

Please anyone guide me how to achieve this task... I am eagerly looking answer for Question 2.


Reporting securely with an SQL clustered database

$
0
0

Hello,

I have the following scenario:

- Server1 = SCCM Site server + Reporting Services (SQL 2012)
- SQLNode1 = Node1 of the SCCM SQL Cluster
- SQLNode2 = Node1 of the SCCM SQL Cluster
- SQLVIP = SQL cluster adres

Reporting works fine unencrypted. But we would like to set it up so it can use an encrypted session with certificates.

For this to work I created a self signed certificate on Server1 named server1.domain.local and bound it to the reporting services website, which works fine.

Then step 2 is for reporting services to connect to the SCCM SQL cluster with a certificate on the SQL nodes.

In the connection string the following is defined:

Persist Security Info=False;Initial Catalog=SCCM;Data Source=SQLVIP.domain.local;Encrypt=true;TrustServerCertificate=false

(I have the TrustServerCertificate on false because otherwise you could do e.g. a DNS spoof and we could be doing reports to a malcious SQL server)

On both the SQL nodes, SCCM created and configured a self signed certificate with a friendly name of "ConfigMgr SQL Server Identification Certitficate" issued by the node with a Subject name of CN=SQLNode1.domain.local and a Sibject Alternative Name of SQLNode1.domain.local. Same goes on SQLNode2. The SQLVIP name is no where in both the certificates.

This certificate is then configured in the SQL Configuration Manager.

When I try to test the connection from the report server,it says "provider: SSL Provider, error: 0 - The certificate's CN name does not match the passed value". That means the SQLVIP source in the connection string is not the same as the CN name of the certificate of the primary SQL node.

I tried to create a new selfsigned certificate (with the correct properties) with both the CN=SQLVIP and as second name CN=SQLNODE, but;

When using CN=SQLVIP as the primary CN, i cannot select the certificate in SQL Configuration Manager because the name is not the same as the FQDN node name.

When using CN=SQLNode1 and as a second CN=SQLVIP, I am able to select the certificate, but then I test the connection from the report server it gives back the same error message that the certificate's CN name does not match the passed value.

When I read the requirements for the SQL certificateit states "If SQL Server is running on a failover cluster, the common name must match the host name or FQDN of the virtual server and the certificates must be provisioned on all nodes in the failover cluster." Source: https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms189067(v=sql.105)?redirectedfrom=MSDN

Anyone has an idea how to solve this?

SSRS Report List is Duplicating Values in Browser

$
0
0

I have an SSRS report which queries supervisors and displays them in a four column list using Row and Column groups.  The Row Groups are defined as "=Ceiling(RowNumber(Nothing)/4)" and the Column Groups are "=(RowNumber(Nothing) -1) Mod 4)".  This automatically sorts the selected items across four columns and dynamically adds rows depending on the number of items selected by the query.

Each selected item has two fields:  Name and ID.  The textboxes display the Name and on Action (on click) they pass the ID to a parameter of a Drill-through Report to display the desired information for the selected Supervisor's direct reports.

This was working fine for some time and it still works properly when testing the report in Report Builder, however. now when it is rendered in the browser the first column (and only the first column) is setting the ID for all items in the column from the first item's ID even though they are displaying the Name properly.  The second, third, and fourth columns still work properly--i.e. the Name/ID association is correct.

When I look at the rendered page's markup it even shows the first item's ID for all items in Column 1.  Below is a sample (using only two columns and two rows) of what the rendered markup looks like.  I removed styling and extra divs, etc. just to make it easier to read and removed all private information (domain, etc) for security.

<table><tbody><tr><td><div><a target="_top" data-drillthroughurl="https://ssrs.domain.com/_vti_bin/ReportServer?https%3a%2f%2fssrs.domain.com%2freports%2fReports%2fDIPS-SupervisorReport-Main.rdl&amp;Year=2019&amp;SupervisorID=1234&amp;rs%3AParameterLanguage="><div><span>A Supervisor</span></div></a></div></td><td><div><a target="_top" data-drillthroughurl="https://ssrs.domain.com/_vti_bin/ReportServer?https%3a%2f%2fssrs.domain.com%2freports%2fReports%2fDIPS-SupervisorReport-Main.rdl&amp;Year=2019&amp;SupervisorID=2345&amp;rs%3AParameterLanguage="><div><span>B Supervisor</span></div></a></div></td></tr><tr><td><div><a target="_top" data-drillthroughurl="https://ssrs.domain.com/_vti_bin/ReportServer?https%3a%2f%2fssrs.domain.com%2freports%2fReports%2fDIPS-SupervisorReport-Main.rdl&amp;Year=2019&amp;SupervisorID=1234&amp;rs%3AParameterLanguage="><div><span>E Supervisor</span></div></a></div></td><td><div><a target="_top" data-drillthroughurl="https://ssrs.domain.com/_vti_bin/ReportServer?https%3a%2f%2fssrs.domain.com%2freports%2fReports%2fDIPS-SupervisorReport-Main.rdl&amp;Year=2019&amp;SupervisorID=6789&amp;rs%3AParameterLanguage="><div><span>F Supervisor</span></div></a></div></td></tr></tbody></table>

As you can see, in the "data-drillthroughurl" value, the parameters are "Year" and "SupervisorID."  The SupervisorID is showing correctly for each item in the second column, but it is repeating the ID in the first column (in this case the sample value is "1234").

It is not an issue with the data query itself as I have confirmed that each Name/ID pairing is correct in the query results and it is working properly when running the report in Report Builder.  This is happening only in the browser.

If it matters, I am running SSRS in SharePoint mode.

Any insight or help would be greatly appreciated.

Thank you,

Item Line Divider Color in SSRS Brand Package

$
0
0

I created a customized brand package for SSRS 2017 (Version 14.0.600.1274) trying to match the default MS color schema with slight modifications. When I loaded it to the portal I noticed that neutralTertiaryAlt2 key changes color also for a line item divider in Browse and doesn't accept the red color of neutralPrimaryAlt3 key.


When I load the same brand package to the locally installed Power BI Report Server (Version 14.0.600.442) the item line divider obeys neutralPrimaryAlt3color.

Could you clarify how it may be fixed? Thank you.






Capture T-SQL Code Being Run by Report

$
0
0

I am having a problem where a report is not giving me the same results as when I run the report's stored procedure manually in SSMS. So I would like to determine the exact SQL code that the Report Server is requesting of my datasource. Perhaps one of the parameters is not being passed correctly.

But I am having a hard time figuring out how to find the stored procedure call in any Profiler results. Our main database server where the stored procedure resides is a busy server with multiple databases, so I cannot just start a trace and find my code. I have tried filtering on the database name, the application name, the login, etc. But none are showing me my procedure call.

Any tips? I should be running the trace on my source data server, not my server where the ReportServer database is, correct?  Thanks in advance.

Dan

Common grouping for two different tables with same data set?

$
0
0

I have one dataset with columns Col A, Col B and Col C. Col A can have only 2 values(x or y). And I have 2 tables, table P and table Q. P is filtered by Col A's x value and Q is filtered by Col A's y value. Now I need to group both tables in once. P is only grouped by Col B and Q filtered by Col B and Col C.

Without creating sub reports, how to achive this in SSRS?

I tried with place the tables into s list, but it doesn't work. Because a details row can only have static rows.

I expect the output as:

GROUPBY COL B value,=>Table P values=>GROUPBY COL B and COL C values,Table Q values... Again GROUPBY COL B value,=>Table P values=>GROUPBY COL B and COL C values,Table Q values...

SSRS configuration : Generating rights scripts error

$
0
0

Hi everyone, 

I'm a college student studying computer programming and on our database course, we were instructed to download and install MS SQL Server. I followed everything but I keep on getting the same error when I try to change the current report server database. Not sure what I need to do, I'm stuck.

Here's what it says:

Microsoft.ReportingServices.WmiProvider.WMIProviderException: The specified user account is not valid or the password is not correct.

 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040211
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.GenerateGrantRightsScript(String userName, String database, Boolean isDatabaseRemote, Boolean windowsUser, String& script)
   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.GenerateGrantRightsScript(String userName, String database, Boolean isDatabaseRemote, Boolean windowsUser, String& script)

Formula Conversion crystal to SSRS report

$
0
0

Hai,

I need to convert crystal formula to ssrs.

Please help me.

numbervar balance;
whileprintingrecords;

if OnFirstRecord then     
     balance  := {StatementOfAccount;1.pamount} - {StatementOfAccount;1.namount}
else

    If  {StatementOfAccount;1.apply_to_inv_num} <> PREVIOUS({StatementOfAccount;1.apply_to_inv_num}) Then
     balance  := {StatementOfAccount;1.pamount} - {StatementOfAccount;1.namount}
  else
     balance  := balance + {StatementOfAccount;1.pamount} - {StatementOfAccount;1.namount}

Thanks,


Link from one report to another one?

$
0
0

Hi,

I have two reports, Report A and B. If I open ReportA, I have to select the parameter Project among under things. In this report I use a table. In this table there is a column calledSystem. The value looks like "01-1000". Now I want to open reportB by clicking on this value.

Report B has two parameters, Project and System. I know how to use the "Action" Property in a report. I am able to "connect" theProject parameters right now. The problem is that at the moment only the correct project is shown. So if I click "01-1000" in reportA, the correct Project in report B is shown. I want to jump into the correct row in my table in reportB, meaning directly into cell "01-000". How can I realize that? System is not a parameter in report A right now.

Best regards
pgosch

How to embed the rdl in web page?

$
0
0

Hi experts

How to embed the rdl in web page? Is there any documents or links for me ?

Thanks in advance.

A Fun&Enjoy hero. 

Radio Buttons not showing!!

$
0
0

Design

Preview

Why are my radio buttons not saying true or false but in the Design tab they are?

How to dynamically unmask SSRS report data based in user or role

$
0
0
The source of the report data is a stored procedure and the business requirement is that certain users can see the column data completely while other users will see masked data at the Report Server.

SSRS - Server Database Credential - Service Credentials Error

$
0
0

I am currently deploying SSRS on a VM and I am unable to connect to /reportserver.  I am able to connect to /Reports/browse/ but cannot deploy any reports or login to reporting services.

Details:

Authentication Type: <RSWindowsNTLM/>
Report Server Service Account: Built-In Account - Virtual Service Account
Database Connected Appropriately (created new with install)
TCP Port: default (80)

This is the error that I receive when I modify the Change Credentials. 

"You may be trying to host the report server catalog on a remote SQL Server Instance while running as a local virtual service account.  This can lead to a non-working Report Server.  To avoid this issue either change your service account credentials or use a different authentication type for the database connection."

SSRS is on the same VM as the SQL instance.

Any ideas on how I can solve the error?

Thanks!

How to launch a report on demand

$
0
0

We have an application that is inserting data to the SQL Server data base. I have to create a report based on the data from this SQL Server data base. The report should be generated on a demand (by a user click from the application) as a HTML file and saved in a specific folder on a PC.

I think the best way is to use SSRS, but I'm not so familiar with it. I've created a report (.rdl) using Report Builder tool. 

How can I create the report on demand each time a user requires it?  

Thanks!

SSRS report tablix header not repeated issue

$
0
0

I am working on one report where i should repeat the tablix header to all pages, i have a field contain large amount of text for each row which can move same row to next page. i tried all possibilities include advance mode setting of tablix header row but not luck, header is only displaying on first page and on page where new line is displaying on start of page and NOT displaying if current line text is continue of next page.

Please advise.

Afsar


Split Output By Group Using Data Driven Subscription

$
0
0

Hi,

I have one report which display data in a report by Supplier. User want PDF output by Supplier. Not 1 PDF report for all suppliers. I have created data driven subscription and getting this message

Processing: 0 processed of 99 total; 0 errors

The steps i did are:

On Manger report went to subscription tab.  Select Data driven subscription, set the schedule, gave data set, File name i have selected option get value from dataset and value i gave supplier account, path i have given folder path where output will be saved and render format i have selected PDF.

Subscription has been created but I am getting this message. I have checked event viewer as well no information. I have tried normal subscription option, it works fine and generate one pdf file for all data i get.

Data driven not working and giving me this message Processing: 0 processed of 99 total; 0 errors

Any idea what is the reason or point i have missed.

Regards,

MH

Do you want to be acknowledged as Microsoft SSRS & Power View Guru? Submit your work to Oct 2019 competition!

$
0
0

What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in October 2019 and must be in English. However, the original blog or forum content can be from beforeOctober 2019.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Rajeesh Menoth.

Upgrade from SQL 2014 to SQL 2016 failed (SSRS)

$
0
0

I did an in place upgrade from SQL 2104 to SQL 2016. The reporting services upgrade failed with the following error:

Feature:                       Reporting Services - Native
  Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     The upgrade process for SQL Server failed. Use the following information to resolve the error, and then repair your installation by using this command line: setup /action=repair /instancename=MSSQLSERVER
  Component name:                SQL Server Reporting Services
  Component error code:          0x80131502
  Error description:             Index was out of range. Must be non-negative and less than the size of the collection.  Parameter name: index
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=13.0.1601.5&EvtType=0x35C10BED%400xF538E98B&EvtType=0x35C10BED%400xF538E98B

The upgrade did not rollback. Reporting service not starting post upgrade with error:

configmanager!DefaultDomain!11c0!10/01/2019-09:39:06:: e ERROR: Error loading configuration file: Object reference not set to an instance of an object.
library!DefaultDomain!11c0!10/01/2019-09:39:06:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: , Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.  ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.ReportingServices.Diagnostics.SqlInstallation.GetSkuFromSqlBoot(String instanceId, Int32& daysLeft)
   at Microsoft.ReportingServices.Diagnostics.Sku.<>c__DisplayClass6.<GetSkuFromSqlBoot>b__5()
   at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<Run>b__0(Object state)
   at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
   at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
   at Microsoft.ReportingServices.Diagnostics.Sku.GetSkuFromSqlBoot(String instanceId)
   at Microsoft.ReportingServices.Diagnostics.Sku.GetInstalledSku(String instanceId)
   at Microsoft.ReportingServices.Diagnostics.RSConfiguration.AdjustProperties(ConfigurationPropertyBag properties)
   at Microsoft.ReportingServices.Diagnostics.RSConfiguration.Validate(ConfigurationPropertyBag properties)
   at Microsoft.ReportingServices.Diagnostics.RSConfigurationFileManager.LoadDocument()
   at Microsoft.ReportingServices.Diagnostics.RSConfigurationFileManager.LoadConfiguration()
   --- End of inner exception stack trace ---;
appdomainmanager!DefaultDomain!11c0!10/01/2019-09:39:06:: e ERROR: Appdomain:1 DefaultDomain failed to initialize. Error: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.  ---> System.NullReferenceException: Object reference not set to an instance of an object..
appdomainmanager!DefaultDomain!1290!10/01/2019-09:39:06:: e ERROR: Windows service failed to start. Exception: System.Exception: Default appdomain failed to initialize.
   at Microsoft.ReportingServices.Library.ServiceAppDomainController.Start()
   at Microsoft.ReportingServices.Library.ReportService.OnStart(String[] args)

Is there any fix or I need to revert to VM snapshot?

Install SSL Certificate for SQL Server 2016 using MMC

$
0
0

I have the Cert imported. How do I hit the cert I imported? I am comfortable installing via IIS but the MMC is a different animal to me. I need to bind the Cert.

SJ

Multivalue parameter in SSRS expression

$
0
0

Hello Techies,

This is regarding SSRS in regards to CRM dynamics 365, and i working on reports to have filter based on percentage values
For e.g. Opportunities Entity has Main Status field which has values like :

10% - sometext
30% - sometext
50% - sometext
80% - sometext
90% - sometext
100% - sometext
Closed Lost
Closed Won

Now I have to filter out the contents based on certain range for eg I have below parameters
Label: 10% - 50% and its value be like 10%,30%,50%
Label: 80%-90% and its value be like 80%,90%

If 10% - 50% is selected then all the record with 10% or 30% or 50% should be rendered in the report and same with 80%-90%.

For Closed Lost and Closed Won it work fine as they are single value and I used like operator in the query
<condition attribute="CRM_mainstatusname" operator="like" value="@MSG"/>

where MSG is the parameter with the below values

Here is the parameter expression used in Dataset:

Any suggestion, like how to proceed with the multivalue parameters.


Viewing all 20764 articles
Browse latest View live


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