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

SSRS Record counts for group item

$
0
0

Hi All,

 I have a table where I am grouping on one field and would like an individual (separate) count of values from another field of same table.  So for example, I have following data:

instance_id,  area,        values

101              North       1

102              North       2

103             East          2

104             East          2

I would like to report on Area, and count of rows with different Values types, for example:

Area                            Value - 1,    Value - 2,  Value - 3

North                                 1              1              0

East                                   0             2                0

I am not sure what the technical term is for such report, but I can group by Area column, and but its aggregating counts on different Value types that I am having difficulty in performing in SSRS.

Any pointers?

Thanks in advance.


Exception calling "Render": "System.Web.Services.Protocols.SoapException: One or more data source credentials required

$
0
0

Hi,

We have recently moved to SQL Server 2014 Reporting Services and now I am having problem in rendering report via web services. The powershell script throws SoapException when I attempt to render the report in the below code:

Exception calling "Render" with "7" argument(s): "System.Web.Services.Protocols.SoapException: One or more data source credentials required to run the report have not 
been specified. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: One or more data source credentials required to run the report have not been 
specified.

My guess is that I need to specify database credentials just before rendering the report an mentioned in following post: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/281f83c4-e1b9-488e-a744-ab199adf6a33/render-report-via-web-service-soapexception-one-or-more-datasource-credentials-required-to-run?forum=sqlreportingservices

Can somebody help how preciously that needs to be done?

Thanks,

Ajay

$URI = "http://sqlserver//ReportServer_MSSQLSERVER14//ReportExecution2005.asmx?wsdl"
$ReportPath = "/My_Report"
$format = "HTML4.0"
$deviceinfo = "<DeviceInfo><HTMLFragment>true</HTMLFragment></DeviceInfo>"
$extention = ""
$mimeType = ""
$encoding = ""
$warnings = $null
$streamIDs = $null
$Reports = New-WebServiceProxy -Uri $URI -UseDefaultCredential

$params = @($ReportPath, $null)

#Load the selected report
$Report = $Reports.GetType().GetMethod("LoadReport").Invoke($Reports, $params)

#Render Report
$render = $Reports.Render($format, $deviceInfo,[ref] $extention, [ref] $mimeType,[ref] $encoding, [ref] $warnings, [ref] $streamIDs)


Images on SSRS bar chart

$
0
0

Hi,

Thanks for looking into this thread.

Using SSRS 2012 - Requirement is to display Upward / Downward arrows (images) next to the bar.

Means, wherever the bar ends, just after it, need to display upwards / downward arrow, based on any data calculation.

Couldnt use image from toolbox directly on the chart area. Hence, tried to use Background image property in chart series but unable to display the image as expected.

Please share a solution.

Thanks !

Niraj

SSRS Page break is not working in PDF export.

$
0
0

Hello,

I have designed a report in which there are 6-7 charts. I want to print each chart in a new page. For this I have inserted page break after each chart. After this the report is populating fine but when I am exporting the report in pdf the page break are not working. \

Can anyone suggest a workaround for this?

how to create dynamic columns in Pivot table

$
0
0

in below example script if i have 10-15 emps i have no idea how many employees exactly,

so now i need each column as one column where i have no idea how many employees are there

how do i add additional colomn based on no.of employees

please assume 10-15 employees

USE AdventureWorks2008R2; GO SELECT VendorID, [250] AS Emp1, [251] AS Emp2, [256] AS Emp3, [257] AS Emp4, [260] AS Emp5 FROM (SELECT PurchaseOrderID, EmployeeID, VendorID FROM Purchasing.PurchaseOrderHeader) p PIVOT ( COUNT (PurchaseOrderID) FOR EmployeeID IN ( [250], [251], [256], [257], [260] ) ) AS pvt ORDER BY pvt.VendorID;


HarSan

Check box against each database field SSRS

$
0
0

Hi All,

I have to display check box against each value coming from the table in SSRS. I have tried using html tags in an expression but it is displaying only for the first field.

Ex: my table contains Medical details with Type column with 3 rows

Type

-----

Prevention

Relief

Required

in my report i have to display as 

any ideas please ?

Thanks,

Sam

Report designer tool box items missing

$
0
0

I have a project with SQL sever reports in it. During a test upon returning to the VS 2013 Professional interface, the tool box area still had the previous information displayed and never returned to what should be there for the report design tools.

I restarted VS, and the toolbox no longer looked like it did before. Specifically, the datatable tool among others was missing. I was unable to "refresh" the datatable after making changes to it.

I opened other Reports in design mode, and the tools did not show up for those either.

The Report Items in the toolbox does contain things like Pointer, Text Box, Line and so forth.

What happened to the missing stuff, and how can I get them back?


Mike



How to Configure Report Manager in SQL SERVER data tools 2014?

$
0
0

Hi All,

I am trying to configure report manager in sql server 2014 reporting services on my local. I am getting an error "dont have permissions to view" in the home page. 

Could any one suggest me how to resolve this?

Regards,

Ven


SSRS internal error when try to explore the Manage option of a DataSource

$
0
0

Hi everyone,

the issue that a customer has been experiencing is as follows:

A customer use SCSM 2012 RTM and recently they changed the password of the account that connects with the datasources that use Service Manager to generate reports. There are several datasources namely DWStagingAndConfig, ConfigurationManager,  DWDataMart and other ones. 

The process to change the password of the account, done via web in the SSRS URL instance of Service Manager,  requires to enter in theManage option of each DataSource  and replace the password with the right one in theProperties section; is a really simple step. However, after the change, the only Datasource that not allows to access again to theManage option is DWStagingAndConfig (appears a message that points out to a report server internal error); the other ones don`t have this behavior, don`t have the problem. 

I append  a extract of the SSRS log related to the problem with this Datasource in order to guide anyone that might help me.

Thanks in advance for your suggestions that let me rid of this problem.

By the way, the SSRS version is 2008 R2.

library!ReportServer_0-109!3024!01/22/2014-14:54:14:: Call to GetPermissionsAction(/SystemCenter/ServiceManager/DWStagingAndConfig).
library!ReportServer_0-109!8820!01/22/2014-14:54:14:: Call to GetSystemPermissionsAction().
library!ReportServer_0-109!8820!01/22/2014-14:54:14:: Call to GetSystemPropertiesAction().
library!ReportServer_0-109!8ab8!01/22/2014-14:54:15:: Call to GetDataSourceContentsAction(/SystemCenter/ServiceManager/DWStagingAndConfig).
library!ReportServer_0-109!8ab8!01/22/2014-14:54:15:: 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.;
library!ReportServer_0-109!8ab8!01/22/2014-14:54:17:: i INFO: Exception InternalCatalogException dumped to: D:\DataWareHouse\MSRS10_50.DWHSM\Reporting Services\Logfiles flags= ReferencedMemory, AllThreads, SendToWatson
ui!ReportManager_0-110!3b1c!01/22/2014-14:54:17:: e ERROR: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An internal error occurred on the report server. See the error log for more details. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
   at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.GetDataSourceContents(String DataSource, DataSourceDefinition& Definition)
   at Microsoft.ReportingServices.WebServer.ReportingService2010.GetDataSourceContents(String DataSource, DataSourceDefinition& Definition)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.SqlServer.ReportingServices2010.ReportingService2010.GetDataSourceContents(String DataSource)
   at Microsoft.ReportingServices.UI.DataSourceProperties.LoadSharedDataSourceFromServer()
   at Microsoft.ReportingServices.UI.DataSourceProperties.Control_Load(Object sender, EventArgs args)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
ui!ReportManager_0-110!3b1c!01/22/2014-14:54:17:: e ERROR: HTTP status code --> 200
-------Details--------
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An internal error occurred on the report server. See the error log for more details. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details.
   at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.GetDataSourceContents(String DataSource, DataSourceDefinition& Definition)
   at Microsoft.ReportingServices.WebServer.ReportingService2010.GetDataSourceContents(String DataSource, DataSourceDefinition& Definition)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at Microsoft.SqlServer.ReportingServices2010.ReportingService2010.GetDataSourceContents(String DataSource)

   at Microsoft.ReportingServices.UI.DataSourceProperties.LoadSharedDataSourceFromServer()

   at Microsoft.ReportingServices.UI.DataSourceProperties.Control_Load(Object sender, EventArgs args)

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at System.Web.UI.Control.OnLoad(EventArgs e)

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
library!ReportServer_0-109!8820!01/22/2014-14:54:17:: Call to GetSystemPropertiesAction().
ui!ReportManager_0-110!3b1c!01/22/2014-14:54:17:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)

SSRS Report does not display Result set though the dataset (Stored procedure/SQL query) returns result set

$
0
0

I have following issue 

I am creating a simple SSRS table report through Report Builder. My dataset is looking for the stored procedure . When I execute the Stored procedure through SSMS I get resutset for certain parameters. I execute the dataset  (Store procedure) through query designer in dataset properties and I get results back. But when I try to run the report and see the preview, I do not get any results displayed. I been looking on the same issue form last 3-4 days and have not found any clue. Can somebody please help me.

Following is the stored procedure I am using. Also I am passing multivalued parameter through report as well, and I am using spilt function to seperate the libraryid I am reading from parameter values. This works fine. 

I have similar kind of four other reports and with different stored procedure which exactly follow the same method , like multivalue parameters and other criteria are also very similar. All other reports works just fine .

           

This perticular report has issue for displying results, following is the stored procedure I am using 

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[ReportUserReview]
@libraryId varchar(4000),
@reviewStartDate datetimeoffset,
@reviewEndDate datetimeoffset =null
AS
BEGIN
SELECT LP_NAME.KeyValue LibraryName, O.ISBN, O.Title, O.Author, O.BisacDesc, O.SupplierDesc as Publisher,  A.LibraryID,
  A.ItemID, ISNULL(CT.TotalCirculation,0) TotalCirculation, ISNULL(CT.CurrentCirculation,0) CurrentCirculation,
  CAST(CT.TotalCirculation As DECIMAL(6,2))/CAST(A.TotalQuantity AS DECIMAL(6,2)) Turns,
 (DATEDIFF(Day,A.CreateDate,GetDate()))/nullif(CAST(CT.TotalCirculation As DECIMAL(6,2))/CAST(A.TotalQuantity AS DECIMAL(6,2)),0) DaysToTurn,
  A.TotalQuantity QuantityOwned,A.CreateDate AddedDate,
  O.PubDate ,  COALESCE (HQ.TotalHolds ,0)CurrentHolds,
  COALESCE (IR.NumOfReviews,0) NumberOfReviews 
FROM Availability A
   INNER JOIN LibraryProperty LP_ID
ON LP_ID.PropertyID = '18'
AND A.LibraryID = LP_ID.LibraryID 
   AND LP_ID.KeyValue IN  (SELECT * FROM dbo.SplitLibrary(@libraryId, ','))
INNER JOIN LibraryProperty LP_NAME
ON LP_NAME.PropertyID = '7'
 AND A.LibraryID = LP_NAME.LibraryID
INNER JOIN OMNI.dbo.OMNI O
ON A.ItemID = O.BTKey
LEFT JOIN (SELECT P.LibraryID, C.ItemID,  COUNT(*) TotalCirculation,
              SUM(CASE WHEN C.IsValid = 1 THEN 1 ELSE 0 END) CurrentCirculation
            FROM CheckoutTransaction C           
            INNER JOIN Patron P
            ON C.PatronID = P.ID                   
            GROUP BY P.LibraryID, C.ItemID ) CT
ON A.ItemID = CT.ItemID
AND upper(A.LibraryID) = upper(CT.LibraryID)
LEFT JOIN (SELECT P.LibraryID, H.ItemID,  COUNT(*) TotalHolds
           FROM HoldTransaction H
           INNER JOIN Patron P
            ON H.PatronID = P.ID
           GROUP BY P.LibraryID, H.ItemID) HQ
  ON A.ItemID = HQ.ItemID
  AND A.LibraryID = HQ.LibraryID
  INNER JOIN (SELECT ItemID, LibraryID,COUNT(ID) NumOfReviews
 FROM UserReview
 WHERE DATEDIFF(DAY, @reviewStartDate, ReviewDate) >= 0
 AND DATEDIFF(DAY, ReviewDate, ISNULL(@reviewEndDate,GETDATE())) >= 0
  GROUP BY ItemID,LibraryID
  HAVING COUNT(ID)>0 ) IR
  ON A.LibraryID = IR.LibraryID
  AND A.ItemID = IR.ItemID
END

Any help appreciated

SSRS Reports - PDF

$
0
0

Hello All,

I have deployed SSRS reports to the Report Server, but am not able to open them in PDF.  Can someone tell me what am I missing please.

Thanks in advance for your time, and have a great day!

Report running super slow in Chrome

$
0
0

Hello,

Was wondering (and hoping) if someone out there have a solution for this. In my report, I have few parameters, which getting it's value from queries. When user running the report in IE, Firefox, and Safari, picking up parameters are okay, it loaded up pretty quick. But when user tried running it using Chrome, to maneuver it from one parameter to another, just took forever to even populate the parameter. By the time they get to View Report button, it could have been 10 minutes already (i might exaggerate here, but it super long).

I read about installing IE-tab extension in chrome, which basically kinda running IE inside Chrome browser, but that's not the solution i want to tell the clients or our external users. Does anyone came across this issue and how did you handle that? Hope you can share your workaround. Thanks in advance.

IH

display check box in SSRS within a data base field which is splitting by a separator

$
0
0

Hi All, 

I have a database field which consists of a long string of values with some separator.

Ex: Injection^!@$#Medication

in my report i have to split the string as

Injection

Medication

till here i am able to display the results but in addition to that i have to display check box against these values like below

and this string can contain any no of values ex: if we have 4 values are separated within a string then i have to display 4 check boxes against 4 results.

any ideas please ?

Thanks,

Sam

2008 R2 SSRS report

$
0
0
I have a Loan Number column in the report and created @LoanNumber parameter for the users to filter the data based on the loan number. Some of the Loan Numbers has leading zeros, but users should be able to key in just the numbers for @LoanNumber parameter and its corresponding data should get displayed. For example if the Loan Number is 0004563467, user can pass 4563467. How can we format the @LoanNumber parameter in the report?

SSRS Windows Integrated not working to DNS name, works with server name

$
0
0

So I'm again finding myself battling the Kerberos monster!!

Today I have an acctest server (XX-ATS-ASSHP102) running SSRS, SQL DB Engine & SSAS. I'm trying to configure NATIVE SQL Reporting Services to use a data source with Windows Integrated mode towards a SSAS cube on the same server. When I use the servername (or 127.0.0.1) it works perfectly. But when I use the DNS name bidb.acctest.internal it fails with the error "The connection either timed out or was lost.". The profiler on SSAS says "anonymous login" so the Kerberos login is broken at some point.

The weird thing is that this works perfectly in production environment, but I've missed something in the ACCTEST environment.

The SPN for the serviceaccount running SSAS has correctect SPN:s:
MSOLAPSvc.3/bidb.acctest.internal
MSOLAPSvc.3/bidb.acctest.internal:MSSQLSERVER
MSOLAPSvc.3/XX-ATS-ASSHP102
MSOLAPSvc.3/XX-ATS-ASSHP102.XX.XXXXXXXXXXX.net
MSOLAPSvc.3/XX-ATS-ASSHP102.XX.XXXXXXXXXXX.net:MSSQLSERVER
MSOLAPSvc.3/XX-ATS-ASSHP102:MSSQLSERVER

The SSRS account has delegation with "any service". No account has the "sensitive" flag.

DNS names are A-records, except the hostname for the SSRS site which is a c-name, but it's identical in production.

The "impersonate client after login" and "replace token" permissions are correct in the policy.

The rsreportserver.config says:

    <Authentication>
        <AuthenticationTypes>
            <RSWindowsNTLM/>
        </AuthenticationTypes>
        <RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>
        <RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario>
        <EnableAuthPersistence>true</EnableAuthPersistence>
    </Authentication>

both in production and in acctest env.

I don't know what I've missed. Need fresh ideas? Please help.


ReportViewer 10.0 issues on pressing browser back button

$
0
0

Hi,

We recently upgraded from ReportViewer 9.0 to 10.0 Control in our ASP.NET application, and face some strange issues after the upgrade. When we press the Back button to go to a page that was rendering a report with one or more single-select drop down lists, the selected index in the drop down is reduced by 1, and the report doesn't render until I press "View Report". I verified that exact same setup works well with ReportViewer 9.0. Can you please verify if this is an issue with ReportViewer 10.0 control, and suggest workarounds, if any?

Thanks,

Arun.

SSRS Report Help

$
0
0

Our new ERP system uses SSRS for its reports. On one of those reports, we want to hide a field based on whether or not an item begins with a certain set of characters.

These items all start with 9UM. 

I've tried to hide the Part Description by going to the visibility option in the text box properties and setting up an expression. That expression is:

=Fields!PartNum.Value <> "9UM%"

From my understanding, this expression should hide all descriptions except for items starting with 9UM. It's not working that way.

Can anyone help me figure out what the expression has to be to hide the description field?

SSRS 2005 textbox Nested iif problem in a expression

$
0
0

Hi All,

I am using an expression in a text box but nested iif doesnt work, here is the expression

=iif(Count(Fields!QDate.Value)= 0, "it is not in Datawarehouse yet",
  iif(Fields!QDate.Value <> Fields!SDate.Value ,"it may not be in Data Warehouse ,Please check dates", "it is in Data Warehouse"))

I am able to see second iif's result but dont see for the first iif which is " "it is not in Datawarehouse yet"

I am not using any expression for visibility

thanks

Gok


Publish ssrs report to Sharepoing 2013 with rs.exe, related Shared DS was asked to publish first

$
0
0

Hi Gents,

I have a rss file below to test publishing a rdl to my integrated reporting service in Sharepoint 2013. After running my rs.exe command the error said the data set and data source need to be published first. It makes sense. When we use visual studio to deploy the report, we give the destination data source folder and report folder and then publish both of them. In my script there is no where to point to data source folder.

My question is I could add one step to publish my data source first, but where we can link the new report to the data source. Because I have manually created the shared data source in Sharepoint, is there a way to just tell the deployment to use this existing data source? Even though I could publish the data source file before rdl deployment in the program, does that mean the rdl will use that data source? How do they link together? I can see data source id in both rdl and rds file, but they are not same. if this is the link, how does it work?


*****************************************

Dim definition As [Byte]() = Nothing
Dim warnings As Warning() = Nothing

Public Sub Main()
    Try
        Dim stream As FileStream = File.OpenRead("C:\temp\ssrsReport.rdl")
        definition = New [Byte](stream.Length) {}
        stream.Read(definition, 0, CInt(stream.Length))

Dim item as CatalogItem

item=rs.CreateCatalogItem("Report","ssrsReport.rdl", "http://sp2013/sites/Reports", false, definition,nothing, warnings)

        If Not (warnings Is Nothing) Then
            Dim warning As Warning
            For Each warning In warnings
                Console.WriteLine(warning.Message)
            Next warning
        Else
            Console.WriteLine("Report: {0} PUBLISHED!", "Commission for Commission Agents")
        End If

    Catch e As IOException
        Console.WriteLine(e.Message)
    End Try
End Sub


:)

SSRS 2012: The permissions granted to user '' are insufficient for performing this operation. (rsAccessDenied)

$
0
0

I am an administrator on our Reporting services 2012 server. And I assume a member of BUILTIN/Administrators in RS.

I can access the reporting service url but I cannot deploy projects or reports or data sources.

I get the message in title.

win server 2012, sql server 2012

Viewing all 10045 articles
Browse latest View live


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