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

ReportServerStorageException / This SqlTransaction has completed; it is no longer usable.

$
0
0

Every once in a while we see this error in our SSRS server log:

Outter Exception

TypeName: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeClientDisconnectionException, Microsoft.ReportingServices.Diagnostics
Message: A client has disconnected from the Report Server Web service application domain ReportServer_MSSQLSERVER_0-1-131124424211711718. No corrective action is required. An error code has been submitted to ASP.NET to release the connection. The error code is 800708CA.
Source: RsHttpRuntime
StackTrace:    at ReportingServicesHttpRuntime.BaseWorkerRequest.FilterAndThrowException(Exception e, String message)
   at ReportingServicesHttpRuntime.RsWorkerRequest.FlushResponse(Boolean finalFlush)
   at System.Web.HttpResponse.Flush(Boolean finalFlush)
   at Microsoft.Reporting.WebForms.ReportDataOperation.StreamToResponse(Stream data, HttpResponse response)
   at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
   at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Inner exception

TypeName: Microsoft.Reporting.WebForms.ReportServerException, ReportingServicesWebServer
Message: This SqlTransaction has completed; it is no longer usable.
Source:

What might cause this error in SSRS 2014?


SSRS-Export to Excel

$
0
0

Hi,

I have a tablix and it has few columns. I want to export data to excel workbook.

Each excel sheet contains data that is based on a column value..

Ex: Order, Orderdate, City, Pincode are the columns present. Each excel sheet data must be related to a city.

Any ideas are highly appreciated.

DRILL-THROUGHT FUNCTIONALITY IN SSRS MOBILE REPORT BASEN ON MDX DATASET

$
0
0

Hi 

I created two seperate report based on cube (MDX).

1. Main 

2. Drillthrough 

When I want to drill main report to second one, I received an error that my report is misconfigured or server is not supported.

But interesting thing is when I prepare the same reports in Report Builder and include in parameter value UniqueName property ([UserName.UniqueName]), it works fine. 

Any Idea where I can set that property in Mobile Report or how can I change my parameter definition in MDX query ??


Remove Server Name From ReportServer Folder

$
0
0

In SSRS 2012, I have links to my reports which display on a page at the folder level. On this page, several things are displayed which the users have no business seeing:  1) Server name and domain followed by "/ReportServer" and corresponding folder names in bold as page header;  2) Date and time stamps next to each report name;  3) Sql Server Version info

For example, my report links to a page that I want to display to end users in a production environment. I only want to display the links to the actual reports, however many, without all the sensitive details noted above. To achieve this, can I:

1) modify a stylesheet

2) modify the link, e.g. /ReportServer/%2fCPI&rs:Command=ListChildren

3) modify security settings

Thanks in advance


SQL Query

$
0
0

Hi All.

I have table in below format

EmployeeID,Mail,ManagerID
1,xyz@ms.com,2
2,uvw@ms.com,1
3,pqr@ms.com,1

There is a need to write a query which give the below result.

EmployeeID,Managere-email

1,uvw@ms.com
2,xyz@ms.com
3,xyz@ms.com

Thanks and Regards,
SQL4Query

SSRS Reporting: Parametrised to Oracle query -- ORA-01008: not all variables bound

$
0
0

Hi,

When I am executing this query below, I am getting an error: ORA-01008: not all variables bound.

select ipa,
       sum(shadow_claims) as claim,
       sum(shadow_diag) as shdw_diag,
       sum(matching_claims) as mtc_clm,
       sum(match_diag) as mtc_diag
  from ixn3180.ipa_overview a
 where (a.region in (:PRMREGION) or 'ALL' in (:PRMREGION))
and (substr(a.serv_dt,1,4) in (:PRMYEAR) or 'ALL' in (:PRMYEAR))
group by ipa

The is executing fine with single filter in the WHERE clause but getting error when I use both at the same time.

The datasource is fine as it is executing with single filter.

Parameters are declaired correctly.

I have tried all possible scenarios but having no clue to fix the issue. Can anyone help out on this?


SQL tutorials

$
0
0

suggest me a course for SQL basic fundamentals ...plz

How to fill the IE 11 or IE browser with entire SSRS page to avoid squishing

$
0
0

What should be the setting of a standard SSRS report developed in Landscape layout to fill the entire page and avoid squishing .

I am interested to know how to fill the IE 11 or IE  browser with entire SSRS page when run  to avoid squishing.

By default the report manager displays squished report where in the contents are aligned to left with white space at the right hand side.




SSRS Reports URL Change

$
0
0

OS: Windows Server 2012 R2
SSRS: SQL Server 2014

I'm trying to configure our report server so that users can type in a simple keyword in their browser and get redirected to ReportManager. Currently, you'd have to type in the following to get to the report manager:

http://{servername}/reports

But I want them to be able to type in the following to get to the report environment:

http://reports

I've set up a DNS re-direct and I can get to report manager if I use:

http://reports/reports

But I want to be able to have the service default to the reports vir. dir. Does anyone have any ideas on how to do this?


EDIT: A somewhat crude workaround is installing IIS and set the HTTP redirect to the new destination. I'm not a huge fan of this as I can't seem to find a redirect option for SSRS. Does anyone know how to do this?

Not able to create power view reports, Power view showing error message "An error occurred while loading the model for the item or data source 'http:///PowerviewSample.xlsx'. Verify that the connection information is correct and that you "

$
0
0

Hi

I have configured the Power view on SP2013 . when I tried to open the power view in Browser it is showing the below error message "An error occurred while loading the model for the item or data source 'http://.../PVR/PowerviewSample.xlsx'. Verify that the connection information is correct and that you have permissions to access the data source."

I have done below settings

1. configured the SQL Analysis service

2. Installed SQL reporting services in SharePoint Mode.

3. Installed the PowrPovit for SharePoint Plug-in ( with successful message after installing)

4.Deployed the powerpivot...wsp to the site collection from central admin

5.Activated the Below features in the Site Collection

  • Power view Feature
  • Powerpivot feature
  • SQL Reports integration

6. created the Dataconnection library.

7. Report Data source content type is added to the Library.

8. Configured the Data source as below

     Data source=<server name>; Initial Catalog="workingdb"

Selected windows connection 

 Test connection successful

Try to create the Power view from the "..." location below error received .

Power view Error

Please help me in resolving the above error. or let me know if I Missed any steps .

Thanks in Advance

Kotresh


Best Regards, Kotresh

How to retrieve a parameter value based on a result set from stored procedure in SSRS 2014?

$
0
0

Hello Experts,

I would like to know how do I select a parameter based on the result set from a stored procedure.

My code looks something like this:

CREATE PROCEDURE usp_UserInformation (@ReportRunDate DATE = NULL)
AS
WITH CTE AS (
SELECT -- some fields
FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID
WHERE RegisteredDate = DATEADD(MONTH, DATEDIFF(MONTH, -1, @ReportRunDate) - 2, -1)
--I'll output the result set after applying all the logic like

SELECT User_ID, UserName, DOJ
FROM CTE

Now, when the user selects the date on the report, I created another parameter and trying to retrieve records from the "Available Values" using 'Get values from a query'. I would like to show the list of UserIDs from the above query result set and allow the user SELECT based on that.

Here are the screenshots for what I am doing if that helps:

PS: I am not allowed to write in-line SQL and only SPs are allowed. I don't want to create two SPs for the same report.


Known is a DROP, Unknown is an OCEAN.

SSRS Subscriptions Failing

$
0
0

We have a SSRS 2012 instance in SP Integrated mode that had some subscriptions start to fail recently. We are seeing the following logged. We cannot find any issues in our RS Temp Database or any storage issues. Any ideas?

Handling Event TimedSubscription with data 3ec68a65-9cbc-47da-b543-014f5a25dd7a.

Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database.;

Error processing event 'TimedSubscription', data = 3ec68a65-9cbc-47da-b543-014f5a25dd7a, error = Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException:Unable to enumerate Jobs due to failure to obtain serialization object.


I should add that I confirmed that the SQL Agent job for the failed subscriptions fire off as expected, but that SSRS never logs the attempt to run. From the UI it looks as if no attempt was made to run the subscription which is odd.

Report Builder does not work when trying to connect to Remote SQL Server Reporting Services

$
0
0

Current Environment

I am in a bit of trouble here, I have a Reporting Services installed on one server and SQL Server database engine installed on another server.

The users are connecting to Reports Manager which obviously points to the server where Reporting Services are installed.

User use a generic login (a local admin account on the Report Server) to connect to the reports manager.

But when the users click on the Report Builder button on the Reports Manager, It initially failed to launch complaining`"Application cannot retrieve the files. Authentication failed."

After a lot of research I found out that, even though users entered the credentials of a Local account when connecting to the Reports Manager, but when they clicked on the Report Builder button, the credentials from their windows account were picked up hence the ClickOnce application failed to Authenticate the user and failed to Launch.

I changed this behavior by allowing `Basic Authentication` on Reporting Server and Allowing `Anonymous Authentication` on Reports Builder.

Now when the users click on the `Report Builder` instead of report builder just picking the credentials from the current user windows account it prompts for the credentials , the  user passes the credentials of the Local Admin account on the reporting server and the ClickOnce Application is downloaded as expected.

Problem

Now the report builder is launched fine and I can right click the The datasources folder in the left pane of the designer, browse for the available data sources , test connection (shows tested successfully) . But as soon as I click on the DataSet and try to add a new dataset it throws an error saying "Authentication failed, cannot connect to the datasources."

Even though in the last step the connection test was successful but at this stage it is failing.



Important Note

The SQL Server has no external IP, it can only be seen from the reporting server. Could this be the reason that the connection is failing?

I mean does the report builder try to obtain a direct connection to the SQL Server when launched?

Or is there anything else that I have missed out?

Environment Overview

Environment Overview

Any pointer any suggestions are much appreciated , Thank you.

Limiting users to see only their own data

$
0
0

I have a reporting working and I want to verify that there is no way to get around my security block.  I describe what I did and want to see if I am naively relying on obfuscation for security.

I have a report that shows data for various users. There is a PersonID parameter that filters to only the rows related to that PersonID.  It is designed with a drop down so that the user can select any Person in the system and it will show data for that Person.  I needed to lock the report so that only administrators can select any Person; other users will only see their own data.  I deploy the report and then create a linked report that has some parameters set differently.  The Admin report is only available to admins and the other is made available to any user.

The first thing I did was to create an internal parameter "ReportType" with values A for Admin and U for Users.  I set the default to U.

The data set for the list of users includes this in the where clause:

Where @ReportType = 'A'
OR UserName = @UserID

I then map the @UserID query parameter to the UserID global object.

I deployed the report (call that the User Report).  Then I created a linked report (the Admin Report).  In that linked Admin report, I set the default for ReportType to A (admin).  I set the permissions so that any user had access to the main User report and only admins had access to the linked Admin report. 

I then tried taking a couple URLs that access the User Report and edited the URLs to try to change the user parameter that limits the rows shown to a different user, a user other than myself.  It failed as I had hoped.  I tried changing the ReportType in the URL and I got a security error (as hoped).

My question.  What ways could test whether I have blocked non-admin users from seeing other users data?


Russel Loski, MCSE Data Platform/Business Intelligence Twitter: @sqlmovers; blog: www.sqlmovers.com

Adding blank rows after page break in SSRS

$
0
0

Hi

Is it possible to add blank rows just after page break within the tablix? 



SSRS Dynamic chart creation

$
0
0
I wonder how to proceed

My table structure is

Year State Division school studentpass studentfail
2015 State1 Div1      ScH1     6           2
2015 State1 Div1      ScH2     4           5
2015 State1 Div1      ScH3     2           4
2015 State1 Div2      ScH4     8           7
2015 State1 Div2      ScH5     3           9
2015 State1 Div2      ScH6     9           1
2015 State1 Div2      ScH7     6           4
2015 State1 Div3      ScH8     5           5
2015 State1 Div3      ScH9     10          9
2015 State1 Div4      ScH10    3           2
2015 State1 Div4      ScH11    7           5
2015 State1 Div4      ScH12    1           3

In my report there are multiple parameters.Let say when the user select the state 1 and the year 2015.

My requirement is to display the report in tabular format  whose no of rows is equal to the no of distinct division (in the state selected) and no of column is equal to
one greater than maximum no of schools present in those divisions(for example here Div2 has maximum no of school i.e 4) so 4+1 columns are created.

Now row1column1 cell  contain a pie chart which display no of studentpass and studentfail for school(ScH1).
row1column2 cell  contain a pie chart which display no of studentpass and studentfail for school(ScH2).
row1column3 cell  contain a pie chart which display no of studentpass and studentfail for school(ScH3).
row1column4 will be vacant.
.... row1columnn5 cell  contain a pie chart which display the aggregate no of studentpass and studentfail for Division(Div1).


Now row2column1 cell  contain a pie chart which display no of studentpass and studentfail for school(ScH4).
row2column2 cell  contain a pie chart which display no of studentpass and studentfail for school(ScH5).
row2column3 cell  contain a contain a pie chart which display no of studentpass and studentfail for school(ScH6).
row2column4 cell  contain a contain a pie chart which display no of studentpass and studentfail for school(ScH7).
.... rowcolumnn5 cell  contain a pie chart which display the aggregate no of studentpass and studentfail for that Division(Div2).

Similarly we will do for rest of the rows.

The issue is that both the no of rows and columns are dynamic.

I think I am able to give some idea of my report.Please get back to me if need more clarification.
And please suggest any idea to achieve this

Thanks.
joy

Specify margin point on Scalar Axis Type

$
0
0

Hi

I would like to find out if it is possible to specify the starting point of the horizontal axis when you have specified a Scalar axis type. Currently the first values starts directly against the Y-axis, I would like to indent the starting point. See screen shot.

Thanks

Wayne

Create a Bar Chart with marker in SSRS

$
0
0

Hello All,

I want to create a bar chart in SSRS with a marker at its end similar to below


Can anyone please suggest a good approach for this?

Thanks in Advance.

Regards

Shruti Vyas

how to get only postcode in my query

$
0
0

i have following query i want only highlighted post code how to get this please help me i want result like this Via1: PostCode, Via2 :PostCode ,Via3: PostCode

CREATE TABLE booking ( ID int IDENTITY(1,1) PRIMARY KEY, address varchar(255) ) insert into booking values('NORTHWICK AVENUE HARROW HA3 0AB') insert into booking values('CHANCERY LANE LONDON WC2A 1AB') CREATE TABLE Booking_ViaLocations ( ID int IDENTITY(1,1) PRIMARY KEY, BookingId int, ViaLocations varchar(255) ) insert into Booking_ViaLocations values (1,'NORTHWICK AVENUE HARROW HA3 0AB') insert into Booking_ViaLocations values (1,'CHANCERY LANE LONDON WC2A 1AB') insert into Booking_ViaLocations values (1,'NEW OXFORD STREET LONDON WC1A 1BA') SELECT STUFF( ( SELECT ' , Via ' + CAST(ROW_NUMBER() OVER (ORDER BY t1.BookingId asc) AS VARCHAR(4))+ ' : ' + right(t2.ViaLocValue, charindex(' ', reverse(t2.ViaLocValue), charindex(' ', reverse(t2.ViaLocValue)) + 1) - 1) FROM Booking_ViaLocations t2 WHERE t2.BookingId = t1.BookingId FOR XML PATH ('') ) ,1,2,'') AS Names FROM Booking_ViaLocations t1 inner join Booking b on t1.BookingId = b.Id GROUP BY t1.BookingId


SSRS2016 Mobile reporting datasources

$
0
0
Can you set a SSRS 2016 reporting portal and use  mobile reporting to pull data off  SSAS cubes that reside in sql server 2008 R2 (i.e can i connect 2008 SSAS cube as a datasource with SSRS2016) with the same network/organization.

Thanks! in advance for any insight you may have.

Thanks
Sameer Shetty
Corning Inc.
Viewing all 20764 articles
Browse latest View live


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