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

OCIEnvCreate failed error when previewing report in BIDS

$
0
0

I have installed oracle 11g 32 bit and 11g 64 bit clients on SQL server 2012 and can create linked servers to Oracle databases and query said databases. 

But when in the BIDS environment I cannot create datasources that point at the Oracle databases I get the following error msg



SQL server 2012

Windows server 2012

Oracle administrator client 11g


SSRS subscription for multiple SharePoint libraries

$
0
0

I have searched the forums and internet with no luck. I know how to create a subscription for a report to go to a single SharePoint document library. I am trying to figure out how to create subscriptions for a weekly status report (issues, risks, etc.) to go to multiple sharepoint libraries - with each report being the one specific to that SharePoint site. It seems like there should be a relatively easy way to do this, based on site GUID.

Any suggestions would be appreciated.

Thanks.

Jeff

SSRS Report Viewer Control Parameter alignment

$
0
0

I am having problem aligning parameters in ssrs report viewer control ,is there any way i can control the display of the parameters in left side alignment or right side alignment. please see the below pic for more details.

I am using vs.net 2012 and sql server 2012 and calling this server report in a asp.net page using report viewer control and report viewer process mode is "Remote"

http://social.msdn.microsoft.com/Forums/getfile/514664


Report Viewer shows blank page - only some reports

$
0
0

I hope someone can help me.  I've been struggling with this issue for a couple of days.  Any guidance will be appreciated.

I have an ASPX page with a ReportViewer component. Basically that's all there is on the page (the ASPX is included further down).  This is served on IIS 7.5 on a Windows Server 2003 box.

I have 3 reports that I can view from this page.  The first report always works - the full report renders and the control buttons (export, print, next page, etc) all work fine.

However, on the other 2 reports I get a blank page rendered.  Nothing is visible at all except for the scrollbar.

A bit bizarre because the first report does show correctly.  Only the other two reports don't show.

So, I thought that maybe there was something wrong with the report files themselves - like another error can't be reported on screen for some reason.  But I am able to render those reports directly via the SSRS management web.  This screen below is one of the ones that fails via ReportViewer but works just fine in the SSRS management website.

I did go through other posts like these (http://forums.asp.net/t/1388924.aspx?ReportViewer+showing+an+Empty+report+on+Windows+Server+2008 and http://stackoverflow.com/questions/16607184/reportviewer-control-returns-blank-page) , but the config issue they described isn't a problem because one report does work.  And I tried all of the combinations of config they describe - classic mode / integrated and even 32-bit / 64-bit.  Broke it a few times (so that none worked), fixed it a few times (so that 1 out of 3 worked), but no closer to a fix for all reports.

Please help.  I've removed and added the site, changed the config many times, tried different pipeline modes in the app pool, re-installed the report viewer redistributable.  I'm not sure what else to try.

SimpleReportView.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimpleReportView.aspx.cs" Inherits="SimpleReportView" %><%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %><!DOCTYPE html><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>Report Viewer</title><styletype="text/css">
        h2 {font-size:14pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;font-weight: bold;}#divErrorDetails {font-size:11pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;}</style></head><body><formid="form1"runat="server">    <asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>

<divid="divReportViewer"runat="server"style="display: block;"><rsweb:ReportViewerID="rvMain"runat="server"ProcessingMode="Remote"Width="100%"Height="700"ShowExportControls="True"ShowFindControls="True"ShowParameterPrompts="False"ShowPromptAreaButton="True"ShowRefreshButton="True"BackColor="White"><ServerReportDisplayName="MainReport"Timeout="60000"/></rsweb:ReportViewer></div><divid="divError"runat="server"style="display: none;"><br/><br/><h2>There was an error generating this report</h2><divid="divErrorDetails"runat="server">Error details to go here</div></div></form></body></html>

Web.config

<?xml version="1.0" encoding="UTF-8"?><!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --><configuration><connectionStrings></connectionStrings><system.web><compilationdebug="false"defaultLanguage="c#"targetFramework="4.0"></compilation><httpRuntime/><pages><namespaces></namespaces></pages><authenticationmode="Windows"></authentication><globalizationuiCulture="en-ZA"/></system.web><runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.Core"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.AspNet"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly></assemblyBinding></runtime><system.serviceModel><bindings><basicHttpBinding><bindingname="BasicHttpBinding_IWcfReportProcesses"/></basicHttpBinding></bindings><client><endpointaddress="http://servername/WcfReportProcesses.svc"binding="basicHttpBinding"bindingConfiguration="BasicHttpBinding_IWcfReportProcesses"contract="ReportProcessesWcf.IWcfReportProcesses"name="BasicHttpBinding_IWcfReportProcesses"/></client></system.serviceModel><system.webServer><handlers><addname="ReportViewerWebControlHandler"preCondition="integratedMode"verb="*"path="Reserved.ReportViewerWebControl.axd"type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/></handlers><modulesrunAllManagedModulesForAllRequests="true"/><validationvalidateIntegratedModeConfiguration="false"/></system.webServer></configuration>

SQL Server 2008 R2 Report Server Credential Problem

$
0
0

All

When our report viewer connects to the remote report server, we got HTTP 401 unauthorized problem. When we copy the report url into IE, it asks for user name and password. If I typed in the report server's windows credential, I can access the report. I don't want to reveal my server's credential. So I tried to configure the report server to no credential

I found some links talking about configuring SSRS for unattended account

I configured one. It seems that this account must be a valid windows account of the report server.

Then I logged in Report Manager remotely and configured the data source to the following options:

  • Windows integrated security
  • Credentials are not required

It does not help.

Does anyone have any suggestion?

What is the right way authenticate client to remote access the report server?

Thanks,

FL

obfuscate or encrypt a parameter in SSRS

$
0
0

Hi,

I just want to be able to get the value of parameter (string), add some characters in it and then in my SQL convert it back to original string.  For example "HELLO"  =>  "@(O53L35LQQ>E$%H", then in my sql query I can get rid of the extra characters.  Here I reverse the HELLO and added @( 53 35... characters.... 

thanks 

Report Builder 3.0 - Custom Plugin Like Code.StripHTML?

$
0
0

Q. How can I build a custom plugin like Code.StripHTML and use it in Report Builder 3.0?

I have some additional tags to remove and Code.StripHTML is not removing them such as:

  Example: We have a new member&#39;s area this year!

  Need to replace &#39; with single apostrophe

  Should read: We have a new member's area this year!

I have many other quirky tags and chars needing replaced as well...


How to get last annotation for SSRS Report

$
0
0

Hi,

I would like to produce a report with the following criteria:

Incidents not modifies in two days, that includes Notes created on that incident. The Advanced find will be something like this:


An the modified fetchXml like this:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" ><entity name="incident"><attribute name="title" /><attribute name="ticketnumber" /><attribute name="createdon" /><attribute name="aux_account" /><attribute name="incidentid" /><filter type="and"><condition attribute="modifiedon" operator="on-or-before" value="2014-08-18" /><condition attribute="statecode" operator="eq" value="0" /><condition attribute="statuscode" operator="ne" value="2" /></filter><link-entity name="annotation" from="objectid" to="incidentid" alias="ac" link-type="outer" ><attribute name="createdon"   /><order attribute="createdon" descending="false" />    <filter type="and"><filter type="or"><condition attribute="createdon" operator="on-or-before" value="2014-08-18" /><condition attribute="createdon" operator="null" /></filter></filter></link-entity></entity></fetch>

My problem is that as a Case can have many Notes, this query is getting just the first one.

If I add the calculated filed as

=Last(Fields!ac_createdonValue.Value,"Jorge")

it throws me the error:

The expression sed for the calculated field =Last(Fields!ac_createdonValue.Value,"Jorge") includes an aggregate..and lookup functions cannot be used in calculated field expressions.

How can I set up a calculated field getting last annotation created for a Case?

Or, which is the best way to generate a Report as requested?


Format for negative values in parentheses

$
0
0

Hi I am using format expression as  #,##0,,;(#,##0,,) for negative values it's giving parentheses but i am also rounding small negative values to zero for that zero color is red but not in parentheses any solution or new expression 

thanks in advance

Convert doc-files to rdl-files

$
0
0

Hello,

 

I might have a rather strange question but I was wondering if there is a way/tool that can be used to convert/import Word documents (.doc) into Reporting Services report files (.rdl). The problem is that I have lots of Word documents containing e.g. survey question. The reports are very extensive with many pages and many "graphical" objects e.g. rectangles etc.. Now I want to have all these reports imported into Reporting Services, i.e. I want the .doc-files to be converted to .rdl-files. I do not want to use e.g. OfficeWriter but I want the .doc-files to be migrated to the rdl-format. Is that possible, is there a tool for this? Both file formats are Microsoft formats, so there should be a conversation tool right?

 

Best Regards

Lars

[Forum FAQ] How do I send an email to users when the data in the report have been changed in Reporting Services?

$
0
0

Introduction

There is a scenario that the data in the report changes infrequently, so the users want to be informed and get the most updated data once the data changes. By default, report server always run the report with the most recent data. Is there a way that we can subscribe the report, so that we can send an email to users when the data in the report has been changed?

Solution

To achieve this requirement, we can create a subscription for the report, then create a trigger in the table which including the report data. When this table has data insert, update or delete, it will be triggered and execute the subscription to send email to users.

  1. In the Report Manager, create a subscription for the report and make it only execute one time.
  2. When we create a subscription, a corresponding SQL Agent job will be created. Then we can use the query below to find out the job based on ScheduleId:
    -- List all SSRS subscriptions
    USE [ReportServer];  -- You may change the database name.
    GO 
    SELECT USR.UserName AS SubscriptionOwner
          ,SUB.ModifiedDate
          ,SUB.[Description]
          ,SUB.EventType
          ,SUB.DeliveryExtension
          ,SUB.LastStatus
          ,SUB.LastRunTime
          ,SCH.NextRunTime
          ,SCH.Name AS ScheduleName   
              ,RS.ScheduleId
          ,CAT.[Path] AS ReportPath
          ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
         INNER JOIN dbo.Users AS USR
             ON SUB.OwnerID = USR.UserID
         INNER JOIN dbo.[Catalog] AS CAT
             ON SUB.Report_OID = CAT.ItemID
         INNER JOIN dbo.ReportSchedule AS RS
             ON SUB.Report_OID = RS.ReportID
                AND SUB.SubscriptionID = RS.SubscriptionID
         INNER JOIN dbo.Schedule AS SCH
             ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
             ,SUB.ModifiedDate ;
  3. Create a trigger in the table which including the report data.
    CREATE TRIGGER reminder
    ON test.dbo.users
    AFTER INSERT, UPDATE, DELETE
    AS
    exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    Please note that the command ‘exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'’ is coming from the job properties. We can go to SQL Server Agent Jobs, right-click the corresponding job to open the Steps, copy the step command, and then paste it to the query.
  4. Then when the user table has data insert, update or delete, the trigger will be triggered and execute the subscription to send email to users.

References:
Subscriptions and Delivery (Reporting Services)
Internal Working of SSRS Subscriptions
SQL Server Agent

Applies to:

Reporting Services 2005
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012


Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

My SQL Server 2012 SP1 report manager url does not work

$
0
0

Hi All,

I have my SQL report manager URL which has stopped working. It was working previously. I changed the URL / Changed the port number etc but still does not work. How ever my SQL reporting Web service URL works fine. Below are the screenshots of the error. I am not using any proxy on the browser to access the URL's. I also tried doing a SSRS reset but still dint help. I also removed and re added the reporting services and configured a new reporting database but the issue still persists. Can any one please help.

When i open in IE:

When i open the URL in Mozilla firefox:


Gautam.75801



SSRS gives different figure to excell exports

$
0
0

Hello

I'm having a strange problem, using SSRS 2012 to develop a tablix report with lots of row grouping and group totals,

they  are several groups which have specific filters and some of the row groups are hidden

I have a calculation on the row that adds up some specific row group total using ReportItems!R1.value + ReportItems!R4.value ....

This sums up in SSRS showing a different value to what am expecting but exporting to excel gives me a different figure which matches the values am expecting

Any idea on what might be causing this strange behaviour

S/A500
Total SA500
Derby250
London300
Coventry150
Total UK700
Spain 200
Poland450
Italy150
EU800
Grand Total1490

the total was derived adding Reportitems!totalSA.value + Reportitems!totalUK.value + Reportitems!EU.value

Exporting the same report to excel  give totally different sums

S/A500
Total SA500
Derby250
London300
Coventry150
Total UK700
Spain 200
Poland450
Italy150
EU800
Total 2000


Help with Grouping/Filtering for export to Excel with multiple spreadsheet tabs

$
0
0

I have a report that is pulling master data. I need it to be broken up onto separate spreadsheets when exported to Excel based on some criteria, but I'm not sure how to set this up. 

Criteria:

If Field1="A" or "B" and Balance >=50,000 .... Spreadsheet tab 1

If Field1="A" or "B" and Balance <50,000 .... Spreadsheet tab 2

If Field1="C" .... Spreadsheet tab 3

If Field1="D" or "E" .... Spreadsheet tab 4

If Field1="F" and Field2="GW" or "SI" .... Spreadsheet tab 5

If Field1="F" and Field2<>"GW" or "SI" .... Spreadsheet tab 6

Can anyone help me figure out this grouping/filtering?

Negative sign in negative number with parenthesis

$
0
0

Hello i am using following expression for negative and positive values 

=IIF(Sum(Fields!PercentValue.Value) >= 0,"#,##0,,","(#,##0,,)")

but with parenthesis it is giving negative sign.

I don't want the negative sign. Please help me to solve this issue

thanks in advance :)


How to refer SSRS username , report name, report folder variables in custom data processing extension

$
0
0

I need to know how to read report global variables like username, report name, report folder global variables in customm data processing extension. 

please let me know the name space or class name that i can use in my custom data processing extension to read the report's current context user name, report name, report folder

i need to use then for decision making in reading the dataset. 

Please need help creating report using SSAS as Source

$
0
0

Good Morning,

This is my second time using SSRS to create a report and my first time using SSAS as a source. Is there any good link or documnetation? I created a new report using BIDS on my desktop. How can i deploy it onto my report server? Any ideas? Please need help.

Thank You

Amy

Report models deprecated in SSRS 2012

$
0
0
Hi all

We've installed SSRS 2012 in our test environment.
During the testing we've noticed that report models are deprecated in SSRS 2012.

A lot of our solutions use Report Builder and Report Models.
Our users/customers are able to create their own reports using SSRS/SharePoint/Report Builder.
We're also using the Report Model security features (to define read access of entities).
Our customers aren't able to create DataSets (i.e. SQL-Queries) because they aren't IT professionals.

What is the replacement/new feature for the Report Model in SSRS 2012?

Regards,
Kantiran

Problem with SSRS Recursive grouping

$
0
0

Hello..I have the following table:

CREATE TABLE [dbo].[test](
	[EmployeeID] [char](6) NULL,
	[Employee] [varchar](102) NULL,
	[RollupToEmployeeID] [char](6) NULL,
	[RollupToEmployee] [varchar](102) NULL,
	[Title] varchar(100),
	[Allocation] decimal(3,2)	
)

INSERT INTO [test]SELECT '000276','Rocky','000178','Arnold','Director',0.2
INSERT INTO [test]SELECT '000276','Rocky','000411','Jason','Coach',0.8

SELECT * FROM [dbo].[test]

I am trying to create a recursive report in SSRS 2012, with RollupToEmployee -> Employee relationship. i have followed the exact instructions provided here:

LINK

I have set 'Group on' = EmployeeID, 'Recursive Parent' = RollupToEmployeeID and 'Visibility' = Show & Toggle on Employee..but I am getting following result in SSRS

Can someone please tell me what am i doing wrong here.. Shall not I see..

Arnold

Rocky

Jason

Rocky

Thanks in advance!!




Migrate reportServer Database without encryption key

$
0
0

Hi all,

I have restored my old ReportServer databse. I had reports deployed on report server.But i do not have encryption key to restore the database. Please tell..

Thanks & Regards,

Vivek Singh

Viewing all 28687 articles
Browse latest View live


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