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

SSRS only displays one row when parameter is used

$
0
0

We have an SSRS report that has been running perfectly at multiple sites for over a year. It calls a MySQL stored procedure and displays the results in a table. For one particular customer who just migrated to a new server, this report now only shows one row of the results. It's a row that's early in the results but not necessarily the first row (not sure that has any significance). Below are steps I have taken so far to troubleshoot.

  • I've confirmed the procedure should return hundreds of rows by capturing the SQL via the slow query log, and running it directly on MySQL. So I've ruled out the data, the procedure, and the connection to MySQL.
  • This report does have grouping which I thought may be an issue, so I created a new report that calls the same procedure without any grouping and I get the same results.
  • As far as we know all other customers are using SQL Server 2008 R2, or 2016. This customer is using 2014. We have confirmed this customer does have all the latest SQL Server updates.
  • We have many other reports built in a similar way that work for this customer
  • We tried replacing the report RDL with another copy thinking it was perhaps corrupt

There has been one thing I've found to get all rows to show up. If I hard-code all parameters in the dataset, all rows will show up in the table. If any parameters are passed in (it doesn't matter which ones, or how many), only one row of the results shows up.

Dataset text examples

Displays one row

Call sp_report(?,?)

Displays multiple rows

Call sp_report('A','B')

These examples both return the same number of rows from MySQL according to the slow query log, but SSRS displays a different number of rows.

Any ideas would be much appreciated. I've been researching online and conducting many tests to try and figure this one out.

Example

Here is one of the stored procs.  It's not too complex, but I've even been able to reproduce this with a much simpler proc with one param and selecting from a single table, and as mentioned above I can see that MySQL is returning all the data from the log.

CREATE PROCEDURE `LetgReport_MediaReport`(IN agnId int, IN sd date, IN ed date, IN settings TEXT(10000), IN incidentTypes TEXT(10000), 
  IN filterNum int, IN filterNumTwo int)
BEGIN

  Call CreateSsrsTempTable();
  Call PopulateSsrsTempTable(filterNum, settings);
  Call PopulateSsrsTempTable(filterNumTwo, incidentTypes);


	Select Incident.IncidentID, Incident.ICR, Incident.ReportedDate, Incident.ReportedTime, Incident.IncidentType, Incident.AgencyID,
		IncidentSummary.Summary, Incident.Description, I_Address.AddressID As I_AddressID,
		I_Address.HouseNumber As I_HouseNumber, I_Address.AptNumber As I_AptNumber, I_Address.StreetName As I_StreetName,
		I_Address.StreetType as I_StreetType, I_Address.City as I_City, I_Address.State As I_State, I_Address.Zip As I_Zip,
		I_UnitType.Abbreviation As I_UnitAbbr, NI_Address.AddressID AS NI_AddressID,
		NI_Address.HouseNumber As NI_HouseNumber, NI_Address.AptNumber As NI_AptNumber, NI_Address.StreetName As NI_StreetName, 
		NI_Address.StreetType As NI_StreetType, NI_Address.City as NI_City, NI_Address.State As NI_State, NI_Address.Zip As NI_Zip,
		NI_UnitType.Abbreviation As NI_UnitAbbr,
		Name.NameID, Name.MasterNameID, Name.FirstName, Name.MiddleName, Name.LastName, Name.DOB, Ncic_DetailCodes.Code as Sex, 
		Name.Weight, Name.Height, 
		Name.IsJuvenile, Name.IsDeceased, Name.DateOfDeath, NameInvolvement.ReferenceTypeID, NameInvolvement.CreateDate As ArrestedDate,
		NameReferenceType.ReferenceType As InvolvementType, Offense.OffenseID As OffenseID, Offense.Literal As OffenseLiteral,
		Offense.Statute As OffenseStatute, IncidentCharge.Chapter As IC_Chapter, IncidentCharge.Section As IC_Section,
		IncidentCharge.Subdivision As IC_Subdivision, IncidentCharge.ShortDescription As IC_Description, IncidentCharge.ChargeID As IC_ChargeID,
		User.LastName AS OfficerLastName, User.FirstName AS OfficerFirstName
	From Incident
		Left Join IncidentSummary On IncidentSummary.IncidentID = Incident.IncidentID
		Left Join NameInvolvement On NameInvolvement.IncidentID = Incident.IncidentID
		Left Join Name on Name.NameID = NameInvolvement.NameID
		Left Join NameAddress On NameAddress.NameID = Name.NameID
		Left Join Address As NI_Address On NI_Address.AddressID = NameAddress.AddressID
		Left Join IncidentLocation On IncidentLocation.IncidentID = Incident.IncidentID
		Left Join Location On Location.LocationID = IncidentLocation.LocationID
		Left Join Address As I_Address On I_Address.AddressID = Location.AddressID
		Left Join UnitType As I_UnitType On I_UnitType.UnitTypeID = I_Address.UnitTypeID
		Left Join UnitType As NI_UnitType On NI_UnitType.UnitTypeID = NI_Address.UnitTypeID
		Left Join NameReferenceType On NameReferenceType.ReferenceTypeID = NameInvolvement.ReferenceTypeID
		Left Join IncidentOffense On IncidentOffense.IncidentID = Incident.IncidentID And IncidentOffense.IsDeleted <> 1
		Left Join Offense On Offense.OffenseID = IncidentOffense.OffenseID And Offense.IsDeleted <> 1
		Left Join IncidentCharge On IncidentCharge.IncidentID = Incident.IncidentID
		Left Join IncidentOfficer On Incident.IncidentID = IncidentOfficer.IncidentID And IncidentOfficer.IsPrimary = 1
		Left Join User On IncidentOfficer.EmployeeID = User.UserID
		Left Join nameDescription2 on nameDescription2.NameID = Name.NameId AND nameDescription2.CategoryID = 39
		Left Join ncic_detailCodes on ncic_detailCodes.ID = nameDescription2.NCICDetailCodeId
	Where Incident.AgencyID = agnId
		And Incident.ReportedDate >= sd
		And Incident.ReportedDate <= ed
		And NameInvolvement.ReferenceTypeID In (Select parameterFields From SsrsMultiValueParameters Where parameterId = filterNum)
		And NameInvolvement.Private <> 1
		And Incident.IncidentType In (Select parameterFields From SsrsMultiValueParameters Where parameterId = filterNumTwo)
		And Incident.IsSealed <> 1 And Incident.IsSensitive <> 1
		And (NameInvolvement.IsSealed <> 1 Or NameInvolvement.IsSealed Is Null);


	Call DropSsrsTempTable();

   END


SSRS 

(not able to post Images yet I guess)

The query type of the dataset is "Stored Procedure" and the script I'm passing is "Call LetgReport_MediaReport(?,?,?,?,?,?,?)".  On the parameters page I have each question mark mapped to a parameter that is defined on the report.


Format Number in SSRS

$
0
0

Hi Everyone,

I need to format a numbers like this: 2838048716 in this way 28,380,487.16 but for some reason my representation keep fall like 2,838,048.72. I tried different formats but keep losing last decimal point because it rounded up and shifted. 

I cannot understand why is behaving in this way any help would be very appreciated

Federico


How to Input end of day in SSRS

$
0
0

I’ve built a report within SQL Services Reporting Services 2005 (SSRS) that pulls its data based on a date range, chosen through start and end date parameters.

The problem is, on @EndDate  parameter. If I choose Nov 08th, it’s actually choosing Nov 08th 12:00:00 AM. This means if there’s some data that is between 12:00AM and 11:59 PM, it wouldn’t be selected.

I needed a way to have my user select Nov 08th, but have it return values for end of day Nov 08th 11:59:59 PM  

I found this but not useful in my case: http://faultbucket.ca/2011/04/ssrs-get-date-parameter-as-end-of-day/ 
I used the same wording as in the post

Thanks in Advance

 

Issue with deploying SSRS report using Microsoft.ReportingServices.MSBuilder.targets, DataSources not bound to Reports

$
0
0

Hello

I am making use of Microsoft.ReportingServices.MSBuilder.targets installed with SSDT 15.8.0.
I am currently setting up a CI/CD workflow for SSRS reports onto a Power BI server.

Command looks like this (solution only contains SSRS reports projects, overwriting the MS Build Extension path due to testing):

C:\Users\****\Downloads\ssrs-reports>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" C:\Users\****\Downloads\ssrs-reports\ssrs-reports\Reports.sln /p:TargetServerURL=http://reportserver/Reports /t:deploy /p:MSBuildExtensionsPath=C:\Users\****\Downloads\ssrs-reports\ssrs-reports\msbuild

On the Power BI report, the target server version is set toSQL Server 2016 or later.

What I noticed that when reports are deployed, the shared Data Sources are correctly deployed too if not present on the destination but the reports are not shown as correctly bound to these, the error shown is:

We can no longer find this data source. If it was moved, choose it from its new location.

If I then navigate to the (just uploaded) new data source and save it's all fine.

Please note that in any case, the RDL file doesn't change, I compared it before and after fixing the data source binding and it was identical.



Encryption key error

$
0
0

Hi

We are using encryption key for our Reporting Services. It was working perfectly until one day (out of nowhere, n oone changed anything important) the error message appeared on Reporting Services web portal:

The service is not available.

The report server isn’t configured properly. Contact your system administrator to resolve the issue. System administrators: The report server can’t access or use the encryption key. You might need to add the server to the scale-out group, reimport encrypted content, or delete all encrypted content and generate a new encryption key.

Does anyone know why this happens? It happened already to us before, and then we "fixed" the issue by completely re-importing reporting services database etc.

It happened, as before, after a few weeks of properly working. The error does not make sense to us.

Thanks


1+2+3+4+...=-1/12

Ad login for SSRS

$
0
0

We need to create AD login in SSRS.

I created a user group in AD and added  a couple of members into this group
In SSRS site setting ->  security added this group 
Assigned  all possible rights to this group 
In folder permission when reports stored added this group too 
In SQL Server added User login for this group
In  SQL Report Server under  Security  -> User  added this group too.

Now it’s interesting happened:
I can log in to SSRS  with my AD credentials. 
I can  go to Site setting to modify and create any new user group  
But I can’t see any folders/report. The message:  Could not load folder contents

Any ideas?

Thank you

Konstantin


SSRS parameters show in Header

$
0
0

Hi,

Trying to display ssrs parameters in report header.I am sending multiple List box values  as parameter from mvc application (comma separated value)

In report header it is displaying customer ids as shown below.

Customer name : 1234,678,890

But i want to show customer name

Customer name : xxx,yyy,zzz


double header issue.

$
0
0

Hi,

I have created ssrs report.while  Going to another page, header showing two times.When scrolling or doing some operation its going away.

Its happening in Mozilla 60.3.0 only



The value provided for the report parameter 'DATERANGESTART' is not valid for its type. (rsReportParameterTypeMismatch)

$
0
0

I have drillthough report that I configured using Go to url link and passing the parameters using the url-

Here is the url link -

https://localhost/ReportServer/Pages/ReportViewer.aspx?%2fReports%2fIndexIncidentsDetail&rs:Command=Render&DATERANGESTART=DateAdd(DATEINTERVAL.Year,-1,Parameters!CurrentStartDate.Value)&DATERANGEEND=DateAdd(DATEINTERVAL.Year,-1,Parameters!CurrentEndDate.Value)&OCCCURTS=Fields!occcurts.Value&Classification=Fields!Classification.Value&rs:ParameterLanguage=de-DE

When I click on my values in report, it opens the new window and after entering credentials , I get this error-

The value provided for the report parameter 'DATERANGESTART' is not valid for its type. (rsReportParameterTypeMismatch) 

Please help how to fix this.


How to hide Pie Chart and show only legend ssrs ?

$
0
0
How to hide Pie Chart and show only legend ssrs ?

ssrs 2008 r2 tablix is displaying when visibility is set to hide

$
0
0

In an SSRS 2008 r2 report, I have an existing report that if the grade level is from 01 to 03, one tablix is displayed. If the grade level > 03, the other tablix is displayed.

Now in the tablix for grade levels 01 through 03, I have placed several rectangles onto the tablix for better control of some new textboxes. I have set the property of some of the new textboxes so can not grow and can not shrink. I have not yet placed rectangles onto the tablix for grade levels > 03.

Currently when I run the report for grade level 04, the tablix for grade levels 01 to 03 does not display. However there is a blank space on the SSRS report where grade levels 01 to 03 would display.

The tablix for grade level 04 does display.

Thus can you tell me what what to check on so the blank space for where tablix for grades 01 to 03 does not display when I want to generate the report for grade 04?

Hiding column(s) with multi-value parameter

$
0
0

I have searched the forum and while I have found some threads relating to this I can not find a definitive answer to my problem.

Here is my issue:

I have a multi-value parameter dropdown with 22 values, I have a column I want to be visible if any one of 3 values are selected (R82, R85 or R93).

I have tried the following in the column side/hide properties

=Iif(Parameters!TCN.Value(0) ="R82"OR Parameters!TCN.Value(0) ="R85"OR Parameters!TCN.Value(0) ="R93", False, True)

This seems to work the best out of all the solutions I have found but it is not perfect.

If a value in the the list before R82 is selected as well as R82, R85 or R93, the column remains hidden. If R82 or any of the other values above are the first selection in the list then the column is visible as required. I need the column to be visible when any of the 3 values above are selected regardless of any other values selected before of after them the drop down list.

Parameter which can take dataset as filter

$
0
0

Hi Friends,

I have 6 tables and charts in my report. And  I have 6 different datasets for each table/chart. now when I preview I get all 6 tables/charts. But I want report functionalitysuch that the report should run only for 1 selected dataset and get its related table/chart.

Ex- Assume I have following datasets-> 1) "FRUITS", 2) "VEGETABLES" 3)"FLOWERS" .

Now I want a parameter/filter where I should be able to pass  dataset as filter.

Say I pass "FLOWERS" dataset as parameter, so the report should fetch table/chart which is using "FLOWER" dataset.

Similarly if I pass "FRUITS", then the report should fetch table/chart which is using "FRUITS" dataset...and so on..

Actually I have many tables/charts and every time I have to scroll down. So instead of scrolling down always I want to see report for any selected dataset.

Kindly help.

Thank you


sania


Can't upload rdl file and can't edit in report builder

$
0
0

We are running SQL 2016 standard and have two issues that may or may not be related.

First, I can upload .txt files to the SSRS website, so I know permissions, firewall, basic IE settings, etc are all ok. However, trying to upload a .rdl file fails with "An error has occurred. Something went wrong. Please try again later."

Second, trying to edit a report via the Edit in Report Builder button fails with "Connection failed. Unable to connect to the server that is specified in the URL." We have SQL 2016 Report Builder installed on the workstation.

I enabled extra logging by putting the following in ReportingServicesService.exe.config
  <RStrace>
         <add name="FileName" value="ReportServerService_" /> 
         <add name="FileSizeLimitMb" value="32" /> 
         <add name="KeepFilesForDays" value="14" /> 
         <add name="Prefix" value="tid, time" /> 
         <add name="TraceListeners" value="debugwindow, file" /> 
         <add name="TraceFileMode" value="unique" /> 
         <add name="HttpTraceFileName" value="ReportServerService_HTTP_" /> 
         <add name="HttpTraceSwitches" value="date,time,clientip,username,serverip,serverport,host,method,uristem,uriquery,protocolstatus,bytesreceived,timetaken,protocolversion,useragent,cookiereceived,cookiesent,referrer" /> 
         <add name="Components" value="all:4,http:4" /> 
  </RStrace>

The HTTP log has entries for when we run reports, but I don't see anything when trying to upload a .rdl or when it fails to connect with Report Builder. Running reports from the website works fine. Other logs like ReportServerService are even less helpful and for the most part just repeat lines like.

VERBOSE: ServiceAppDomainController::ServiceMaintenanceInternal - Mark the WindowsService (worker) AppDomain as active.

Has anyone seen this before and or knows where else we can check to help identify the cause of these problems? Thanks in advance.


ssrs 2012 date formatting

$
0
0
In an ssrs 2012, I would like date to change a date to be in a specific format without changing the stored procedure that obtains the sql server date. This is due to the fact the stored procedure is extremely complex and I do not want to change it unless I absolutely have to.
Basically I would like the following:
1. if the the date is in a basic datetime format,  I would like
 a date like 06/03/2019 to look like  Monday, June 3, 2019 for the English formatting.
2. For a Spanish version of the date is 6/3/2019, I  would like the Spanish version of the date to be in the same format.
Thus would you show me the sql on how to accomplish this goal?


ssrs 2012 bullets

$
0
0
In an ssrs 2012 report, I need to place bullet dot marks on several lines. The
dot looks like the following: • .
Thus can you tell me on to setup this representation in the SSRS report? There is
probably some kind of a character representation that I need to use.

Unable to edit or delete data driven subscription - rsInternal Error

$
0
0

I have a data driven subscription that I am trying to edit or delete. If I do either, I get a message

An internal error occurred on the
report server. See the error log for more details. (rsInternalError) Get Online Help

The status is pending.

Help!

Thank you

I found in a SQL Dmpr0009.log file the following error:

library!ReportServer_0-2!2410!02/27/2015-09:21:38:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: Adding more than one data source with null original name, Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.;


SSRS report running very slow but query is very fast in SSMS

$
0
0

I am running a very basic report. I am just retrieving some data from a table and I am using a parameter in the Where clause of the query. The query runs fast (in less than 5 secs) if I hardcode the parameter in the SSRS query but if it's left as a dynamically chosen parameter the query takes over 5 minutes to render. I have read a little about "Parameter Sniffing" but I am not sure if that applies to my case since I am only using a TSQL query and not a SP.

Any feedback would be appreciated.

PS: My query looks like below:

Select Col1, Count(*)
From Tbl1
Where Col2 = @Para1
Group By Col1

KK

The report server was unable to validate the integrity of encrypted data in the database

$
0
0

Hello all,

I had a specific account to run my SSRS services with option password never expires.

But my SQL server services were running through my windows account. Now when the password for my SQL server account expired , I have changed it and restarted all the services. all other services started but my SSRS services failed to start saying log on failure. I have changed the password for the account I was using to execute the services and they resumed.

Now hen I am trying to open my report server URL I am getting below error. I do not have encryption key backup :( 

what should I do ?

The service is not available.

The report server isn’t configured properly. Contact your system administrator to resolve the issue. System administrators: The report server can’t access or use the encryption key. You might need to add the server to the scale-out group, reimport encrypted content, or delete all encrypted content and generate a new encryption key.

Thanks,

Pragati


Best Regards, Pragati


Chart shows blank area if no data

$
0
0

Hi,

I have a bar chart with values expression as below. When there is no data returning from table then chart shows blank area and legend. I want to show a message that says -No data available for this status. I have tried the property-No data message but it did not work for my case. Please suggest. Thanks in advance.

=IIF(Count( IIf(Fields!Status.Value = "Test"
            or Fields!Status.Value = "Test1"
        , Fields!Id.Value
        , Nothing)

)=0,Nothing,Count( IIf(Fields!AssetStatus.Value = "Test"
            or Fields!Status.Value = "Test1"
        , Fields!Id.Value
        , Nothing)))
Viewing all 10045 articles
Browse latest View live


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