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

Unable to use Previous in a Sum aggregate function

$
0
0

I have a report that produces totals based on a offer. Within each offer a single user may have multiple rows. An example is below

Offer  User  Amount  Total

1        1       10         10

1        2         5         10

1        2         5         10

1        3       10         10

In the above example the sum for Total would be 40.00. What I want to do is to have the total for user 2, which has 2 rows, to only be added once so the total would be 30.

This is what I tried to do...

Sum(IIf(Fields!User.Value = Previous(Fields!User.Value), 0, Fields!Amount.Value))

But I receive an error that says "Previous functions cannot be specified as nested aggregates".

Does anyone know of another way to accomplish this? I've tried using variables but there are too many restrictions on those as well.

Thanks




XML data source having xml file with multiple nodes at the same level

$
0
0
Hi All,
We have an XMl file in which the Master node has 3 child nodes.
All the 4 child nodes are at the same level.
For example : Lets say master node is Company and child nodes - Employee, Clients and branches.
Employee, Clients and branches  nodes are at the same level .
Hence when i call the xml query in the ssrs dataset data is getting populated only for Employee as SSRS does  considers only the first child node (Even though other child nodes are at the same level)  

Query in the Shared data source:
http://localhost/XMLDATA/CompanyDetails.xml  (Where XMLDATA is an virtual directory).

Query in the dataset tab:

<Query>
<ElementPath IgnorenameSapces="True">
Company {}/Employee/Clients//branches
</ElementPath>
</Query>



Please help me in this regard ASAP. This is very critical issue.

Thanks ,
Shrinidhi

SSRS 2016 setting parameters for Oracle OLE DB

$
0
0

Hello

I first developed the SSRS report in Visual Studio 2013 and had no issues with parameter they mapped automatically.

I have now moved the SSRS report to Visual Studio 2015, and I'm having a problem with mapping parameters automatically.

So I have a dataset1 that has a SQL script with two parameters, these are linked in the Parameter setting of the Dataset.

However when I try to Preview the SSRS I get the following error.

"Query execution failed for dataset 'DataSet1'. Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

I know how to fix it I have to create a Parameter Link to each Parameter in the SQL Script.

So for example I have a Parameter that is called :Year and is in my SQL Script three times, and I need to go to the parameter tab on my dataset and link the :Year to @Year three times in order they are in the SQL Script.

If this was a small report it would be OK. However this is a massive report that has several Parameters, 47 datasets and is across 6 report files.

I am after a way to get the automatically mapping of Parameters working again as it did in Visual Studio 2013. How do I do that?

Regards

SQLSearcher99

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index SSRS 2008 R2 error in sharepoint 2010

$
0
0

Hi,

I have a drill down report with 9 parameters which has Expand All/Collapse All as one of its parameter. On the initial rendering of the report,  I have a default selection of Expand All for the parameter which will expand the data for all the grouped rows . If I select Collapse All, the report collapses all the data and I can toggle the data manually. We have a sharepoint environment to display the reports for the users. 

This report is working fine in BIDS, Report Builder 3.0 and Sharepoint test environment. This report is working fine in the production Sharepoint environment when "Expand All" is selected from the Expand All/Collapse All parameter. We are getting the following error only in the production sharepoint environment when we select "Collapse All" from the parameter list or try to toggle on any of the grouped data in the rows.

Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

I checked the report from production environment in report builder and it is working fine with the same selection without throwing any error. Do we need to change any settings on the production sharepoint environment or can  I fix the issue by making changes to the RDL file?

I referred to many forums but could not find a solution to solve this problem. If anyone could please help me with this issue that would be really great and appreciated.

Thanks,

Rajesh.


ssrs data driven subscription with link to report

$
0
0

In a new test ssrs 2012 data driven subscription the report is executing correctly. However the following is appearing in the body of the email message sent to the user:

The report is accessible at the following address:

http://test&rs%3AParameterLanguage=en-US

Thus can you tell me what I can do to not have this link display in the email message?

SSRS for SharePoint - Trouble with parametrs

$
0
0

Hello! I have the proplem:  I have SSRS add-in for sharepoint 11.2.5569, SharePoint 2013. 

Sometimes when I enter parametr value and then press button to get report - report refresh's, my entered value cleared, and I need to enter again parametr value and press button to generate report.

I create video of this problem: https://youtu.be/Ln9VXy21Dvk

Please, let me know how to fix it! Thank's!

ssrs data driven subscription in production

$
0
0

On a test ssrs 2012 report server, I created a data driven subscription with a ssrs report that are email to various users. Now I want to accomplish the following goals:
1. Place this change on the production report server, and
2. Backup this change in TFS.

Thus for this change to occur, is there a way to 'copy' the test data driven subscription to production? If so, how would you accomplish this task? If not, does this need to be setup on the production report server from the 'start' again?

Can this be backed up in TFS? If so, can you tell me how to accomplish this goal?

SSRS2016 Missing details view

$
0
0

In SSRS2016 i'm missing the details view. I need to delete 100+ reports . In ssrs2008 I use the details view, so I can select all the reports that I'd like to delete. But in 2016 it's not possible to do it that way. are there any plans to get this function back in 2016? and is there a work arround to delete multiple reports?

Thanks.

grtz

Martijn 


SSRS 2016 Power BI android app doesn't render correctly

$
0
0

Hi there,

I am using SQL Server 2016 RC2 on an Azure VM, SSRS, and mobile reports.

I have created several mobile reports and tested them on my Windows 7 PC, IPad, and Android.

About the time RC3 was released, the Android Mobile app started rendering my mobile reports incorrectly e.g. they only show a couple of lines and are completely unusable.

The sample apps render fine and my custom reports render fine in the report builder and IPad mobile app.

I tried reinstalling my android app and recreating the reports, but nothing seems to make them work on the android mobile app.

Any ideas of what to try?

Thanks,

Ric


Ric Miller

No Line Graph in Mobile Report Publisher?

$
0
0

Hi,

I'm looking at the evaluation version of SQL 2016 reporting service and I can't see the option to create a line graph in the Mobile Report Publisher.  Am I missing something?  Also, it seems there are very few options to change/customize the reports (such as adding a trend line (of any kind) etc.

Are the Mobile Reports fairly static in regards to customization options or am I supposed to use a different tool to edit them?

Thanks


Unable to Start Report Builder

$
0
0

Hi,

I am new to report server. After installing it I am able to start Report Manager, however when I click on Report Builder button in Report manager, I get the following dialog:

Cannot download the aplication. The application is missing required files. Contact application vendor for assistance.

When I press the 'Details' button, I get this (pasting here):

--------------------------------------------------------------------------------------------------------

PLATFORM VERSION INFO
 Windows    : 6.1.7601.65536 (Win32NT)
 Common Language Runtime  : 4.0.30319.18052
 System.Deployment.dll   : 4.0.30319.17929 built by: FX45RTMREL
 clr.dll    : 4.0.30319.18052 built by: FX45RTMGDR
 dfdll.dll    : 4.0.30319.17929 built by: FX45RTMREL
 dfshim.dll    : 4.0.41209.0 (Main.041209-0000)

SOURCES
 Deployment url   : file:///C:/Users/Peter%20Battelino/Downloads/ReportBuilder_3_0_0_0%20(4).application

IDENTITIES
 Deployment Identity  : ReportBuilder_3_0_0_0.application, Version=11.0.2100.60, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=x86

APPLICATION SUMMARY
 * Online only application.
 * Trust url parameter is set.
ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of C:\Users\Peter Battelino\Downloads\ReportBuilder_3_0_0_0 (4).application resulted in exception. Following failure messages were detected:
  + Downloading file:///C:/Users/Peter Battelino/Downloads/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
  + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
  + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
  + Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [7/25/2013 9:31:36 AM] : Activation of C:\Users\Peter Battelino\Downloads\ReportBuilder_3_0_0_0 (4).application has started.
 * [7/25/2013 9:31:36 AM] : Processing of deployment manifest has successfully completed.
 * [7/25/2013 9:31:36 AM] : Installation of the application has started.

ERROR DETAILS
 Following errors were detected during this operation.
 * [7/25/2013 9:31:36 AM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
  - Downloading file:///C:/Users/Peter Battelino/Downloads/RptBuilder_3/MSReportBuilder.exe.manifest did not succeed.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
   at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
   at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
   at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
   at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
   at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
   at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
  --- Inner Exception ---
  System.Net.WebException
  - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
  - Source: System
  - Stack trace:
   at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.FileWebRequest.GetResponse()
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
  --- Inner Exception ---
  System.Net.WebException
  - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
  - Source: System
  - Stack trace:
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
   at System.Net.FileWebRequest.GetResponseCallback(Object state)
  --- Inner Exception ---
  System.IO.DirectoryNotFoundException
  - Could not find a part of the path 'C:\Users\Peter Battelino\Downloads\RptBuilder_3\MSReportBuilder.exe.manifest'.
  - Source: mscorlib
  - Stack trace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
   at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

--------------------------------------------------------------------------

Does anybody know what the rpoble is?

Thank you in advance.

Peter Battelino

BTE Corporation 


PMBT

Troubleshooting Data-driven subscription with "Pending Status"

$
0
0

All,

We have an issue with the data driven subscriptions created using SQL server 2005  in production.

Some of the subscriptions  have the status as "Pending" and failed to complete. How do we trouble shoot this status without any  error information.

Is there a logging mechanism for SSRS data-driven subscription catch these type of errors and log them to a file?

 

We noticed that when all the failed subscriptions were updated with "Run Once" option ,after each subscription was executed multiple times  , the subscriptions finally completed without any failure(I had to run each subscription 3 to 4 times before the subscription finally completed).  Recreating the subscriptions also caused the same pending status at random( i.e some subscription ran without fail while others didn't)

The pending status shows up without any pattern?

Does the network on which Report service is hosted have anything to do with this issue??I looked at the event logs,however i didn't find anything useful

Any suggestions on how to troubleshoot this issue will be highly appreciated ,since i have run out of ideas as i don't see any errors in the reporting service error logs.

SSRS 2008 R2 Subscription Email Error (only with Attachments)

$
0
0

I am having the same issue as in the following post http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/6a4ee2d8-23ce-4b68-a14e-fe7024cb58ea.

I have SSRS 2008 R2 set up on a Windows Server 2008 SP2 server.

Everything works fine, with the exception of subscriptions with an attachment.  If the subscription is just a link, it works fine.  In reviewing the log files, I get the following error info:

library!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 5; possible reason - service account doesn't have rights to check domain user SIDs., Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
library!WindowsService_8!e6c!04/25/2011-13:32:06:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
emailextension!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The report server has encountered a configuration error.  ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
notification!WindowsService_8!e6c!04/25/2011-13:32:06:: e ERROR: Error occured processing subscription bf7ba260-6f39-4915-834c-70ca36a616ef: Failure sending mail: The report server has encountered a configuration error. Mail will not be resent.

When I review the KB article mentioned (link below), the top specifically says "NoteThis problem does not occur in Windows Server 2008"

http://support.microsoft.com/kb/842423

Since I have it installed on a Windows Server 2008 box, and am experiencing this issue, is there something different that people know of for that version of Windows Server?


- Glenda

ssrs data driven subscription comment

$
0
0

I am setting up a data driven subscription on sql server 2012 for the first time. I noticed in the 'comment' section you  can select either get values from the database or have a static value.

However, I would like to be able to have a static value and have 4 values obtained from the database placed within the 'comment'.

Thus is it possible to have a static value and embed 4 different values within the static message? If so, would you tell me how to accomplish this goal? If not, would you tell me and/or point me to urls that show how to only obtained 4 to 5 values from the database and place them onto the body of the email message?

Business Intelligence Reporting Services in Visual Studio 2015: workarea

$
0
0

I had a short experience with SQL Server Business Inteligence Development Studio with SQL Server 2008 R2. Now I installed Visual Studio 2015 Community and I can create a report without problem (Templates -> Business Intelligence -> Reporting Services). Just in the 'Design view' I see an area with a table where I can add columns and rows but I don't understand what is it?? I can design the report under that area but I don't understand for what is that table?


HUGE Mobile Report Publisher BUG. Don't think about connecting to SSAS Model with any parameters!!

$
0
0

Please read this entire post before commenting.  I have been trying to get some kind of acknowledgement from Microsoft on this problem in other posts but finally just needed to make this known.  Mobile Report Publisher cannot connect to parameterized datasets if it's connected to an SSAS Tabular Model.

I keep getting half responses like "update to latest mobile reports publisher" or "specify a default parameter" but I'm telling you, the functionality is broken!

I have a dataset that is connected to an SSAS Tabular model.  The model works fine in MS Excel or in SQL Report Builder 2014.
I have created a dataset using Report Builder 2016 and added a parameter to it.  We need the parameter so the report can be filtered before it is rendered to the client.  For now, I am leaving the parmeter blank to fully demonstate the problem

The Operator Name is just a customer name.

When I try and connect the Mobile Report to this dataset, I get the following error:

I then add a default value for the parameter.

I run the query and data is returned in the designer.

When I try to connect Mobile Report Publisher to the Dataset, I now get this error.

MS, can you please explain why this doesn't work.  This has to be a bug and a huge one at that!

ssrs 2012 data driven subscritpion with no data

$
0
0

In an ssrs 2012 data driven subscription I have setup on a test area, the report is generating correctly. However part of the request is not to send out email messages if there is no data located.

Here is the sql that is used to determine if rows are generated:

 SELECT calendar.number , school.name, CustomStudent.[personID] ,count(*) AS [DUP COUNT]    
        FROM [test].[dbo].[CustomStudent] CustomStudent  WITH (NOLOCK)
  JOIN test.DBO.CampusDictionary CampusDictionary WITH (NOLOCK)
            ON CustomStudent.attributeid = CampusDictionary.attributeID AND
                CustomStudent.value =CampusDictionary.code
  JOIN [test].[dbo].[SchoolYear] SchoolYear  WITH (NOLOCK)
      ON SchoolYear.label=CampusDictionary.name
  JOIN test.DBO.Enrollment Enrollment WITH (NOLOCK) on Enrollment.personID = CustomStudent.personID
  JOIN test.dbo.Person Person WITH (NOLOCK) on Person.personID =  Enrollment.personID
        JOIN test.dbo.[Identity] [Identity] WITH (NOLOCK) on [Identity].[identityID] = person.currentIdentityID
        JOIN test.DBO.Calendar Calendar WITH (NOLOCK) ON Calendar.calendarID = Enrollment.calendarID
        JOIN test.DBO.School School WITH (NOLOCK) ON School.schoolID =Calendar.schoolID
  JOIN Campustest.dbo.AtnLtrASCH AtnLtrASCH WITH (NOLOCK) on AtnLtrASCH.SCHOOLNUM=calendar.number
  LEFT JOIN test.DBO.Contact Contact WITH (NOLOCK) on Contact.personID=AtnLtrASCH.SPA_PERSONID
      WHERE CustomStudent.attributeID = 2775 -- CAIP School year value
             AND SchoolYear.active = 1
    AND Enrollment.active = 1
             AND Enrollment.serviceType = 'P'
       AND (Enrollment.enddate is NULL or Enrollment.enddate > getdate())
   GROUP BY calendar.number,school.name, CustomStudent.[personID]
     HAVING count(*) > 1         

Thus can you tell me what I need to do make certain no email messages are sent out in this situation?

SSRS 2012 Recurring ASP.Net Error and Unhandled Exceptions

$
0
0

Recently we've been having a recurring ASP.Net error where SSRS stops processing reports through the URL interface (i.e. accessing via a browser from another PC).  Subscriptions continue working however.  Restarting SSRS on the system fixes the situation until about another 8hrs or so later it comes back.  The error message is usually one of the following as seen in the SSRS logs.

ui!ReportManager_0-1!b778!04/07/2016-19:15:23:: i INFO: Unhandled exception: System.IO.FileLoadException: Could not load file or assembly 'System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

ui!ReportManager_0-4!d8b8!04/06/2016-12:22:25:: i INFO: Unhandled exception: System.TypeInitializationException: The type initializer for 'System.Web.Configuration.RegexWorker' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

System Setup:

  • Windows Server 2012R2 with SQL Server Standard 2012 w/ SP3 and SP3-CU1 installed running in Native Mode for reporting services and a single default instance

We've tried the following without resolution:

  • applied all relevant SQL and system patches
  • Repaired the SQL Server installation via Programs and Features
  • Reinstalled/Repaired .Net Framework 4.5.2
  • Deleted and recreated the encrypted content in SSRS
  • Reapplied the domain service account under which SSRS is running
  • Given the SQL service account local OS admin rights (not ideal but I was grasping for solutions at this point).  Typically this user has minimum OS rights per MS recommendations of running SQL under a service account.

The only fix currently is a restart of SSRS which I have created a task scheduler item to watch for the following ASP.Net error in the OS Application Log.  When this occurs I execute a PowerShell script to force the restart of SSRS.

Event code: 4011

Event message: An unhandled access exception has occurred.

Event time: 4/7/2016 7:15:38 PM

Event time (UTC): 4/7/2016 11:15:38 PM

Event ID: fe040b19a2854a7d897aeb39d47eb86a

Event sequence: 8

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: ReportManager_MSSQLSERVER_0-1-131045444421903809

Trust level: RosettaMgr

Application Virtual Path: /Reports

Application Path: D:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportManager\

Machine name: OurServerHostName

Process information:

Process ID: 44192

Process name: ReportingServicesService.exe

Account name: OurDomainServiceAccount

Request information:

Request URL:http://OurServerHostName/Reports/Reserved.ReportViewerWebControl.axd?OpType=SessionKeepAlive&ControlID=6dd06b5cd2e74f4cbfff40fe50624c23

Request path: /Reports/Reserved.ReportViewerWebControl.axd

User host address: DomainClientPC_IPAddress 

User: DomainUserIDonClientPC

Is authenticated: True

Authentication Type: NTLM

Thread account name: OurDomainServiceAccount

Any other suggestions for things we’ve overlooked that could be causing this issue? I believe this is something incorrect within the http.sys settings but I haven’t been able to determine what it could be and how to resolve it.

Thank you,

-Kirk

drill thru development - any issues if drill thru is also stand alone report

$
0
0

Hi we run 2012 enterprise. I want a report that will be a drilled thru report from its parent but also reachable directly with all the same parms (that would be passed) available for choosing by the user.

Are there any development differences for a subreport if it is to serve both purposes, ie as a subreport and reachable directly from rm?


I'm not sure I would care but I'm hoping the param drop downs would show even if the report was reached/rendered from its parent.

SSRS pass multiple value sin single value parameter

$
0
0

I have to create a single value Parameter in SSRS report which will accept below values:

1) Active
2) Non Active 

the database stores 3 types 

2 for active

0,1 for non active

what is the cleanest way to pass 0,1 using my SSRS parameter .

I have tried below but it doesn't work ..I read about writing split function and passing string value ..but want to know if there any easier and short way to do that ..also as this parameter has to be single value parameter 

Thank you

Prgati

Viewing all 10045 articles
Browse latest View live


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