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

Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterException: The value of parameter 'pSetOfScopes' is not valid. ---> System.UriFormatException: Invalid URI: The Uri string is too long.

$
0
0

We recently upgraded from SQL Server 2008 R2 to SQL Server 2012 SP 2.  Our reports accept a "psetofscopes" parameter which is a comma-delimited string which we in turn pass to a STRTTOSET function in MDX queries.   The format of the string is

"[DDDD].[HHHH].&[1234],[DDDD].[HHHH].&[4321], ... "

Where DDDD represents the dimension and HHHH represents the hierarchy.  

The problem occurs when the length of the parameter exceeds 64K (65536 characters).  Calling the report works fine.  However, when the report calls another report, via the "Go to Report" action, the call to the "sub-report" aborts with

Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterException: The value of parameter 'pSetOfScopes' is not valid. ---> System.UriFormatException: Invalid URI: The Uri string is too long.






Import data from a Reporting Services Webpage?

$
0
0

Hi all, 

 Is it possible to easily import data into SQL Server from a public facing Reporting Services webpage?

I'd like to automate the process so don't want to have to download the Excel / CSV files manually. There's an "atomsvc" file available but I can only find information on importing this into PowerPivot / Excel. 

I'm on 2012 and have access to Integration Services if that would help, but have no real preference on how I solve this problem. 

I'm guessing I could import the Atom feed referenced by the "atomsvc" file as XML data but this seems slightly cumbersome given that the source is also an SQL Server. I'm also a little unsure about how to use authentication in this case. 

So is it a parse XML task or am I missing a much more obvious and simple way to import this data?

Thanks

Report Builder 3.0 - Matrix - Create Column with Percentages based on Totals Column

$
0
0

I have created a Matrix in Report Builder 3.0 for a SharePoint list.  It works great.

The matrix includes data grouped by months and grouped by the number of Yes and No answers to a single question.

Now I would like to add a column that calculates the percentage of the total based on the number of Yes answers.

The matrix looks like this:

Question       Yes    No    Total

Jan                5       5       10

Feb                10    10       20

March             15    10       25

 

I have a added a new column title Percentage and have tried several different expressions and I keep getting errors.

 

I would like the matrix to look like this:

Question       Yes    No    Total     Percentage

Jan                5       5       10           50%

Feb                10    10       20          50%

March             15    10       25          60%

 

The percentage is the Number of Yes answers divided by the Total.

 

I have search online and cannot find the solution for us.  I thought it would be simple but Report Builder is proving not to be so easy to figure out.  I use Excel Pivot tables all the time and can easily create this in Excel. 

 

Generate separate reports for each group of the table

$
0
0

Hello!

I'm new to reporting services.

Currently in my report I have the table and grouping on one of the field. Now I want to generate and send separate reports for each group of the table.

Is it possible to export each group of the table to separate Excel File?

Thank you

Export to dbf

$
0
0

Hi!

Is it possible to export report to dbf-format?

SSRS option to make capital first letter and rest small letters of a string

$
0
0
Hi,
In the 'Name' field of String type is appearing all capital letters. I want to appear it as first letter is capital and rest all small. If there is space between two characters, then the second should appear as Caps again.

Ex:
1. PETER Should appear like Peter
2. ALEXANDAR PETER Should appear as Alexander Peter

Is it possible in SSRS or SQL Query ?
I am using SQL Server 2005 SSRS Reporting Services.

Thanks,

Showing selected parameters values on each page in SSRS

$
0
0

Hi All,

I have a SSRS report with multi-selection parameter..Basically it's a summary report of sales and based on country parameter I have to show data.
let say Country is the parameter and below are the values of the Country parameter list...

Parameters list:
All
Australia
England
Canada
Italy

Parameter: All

1) If I select 'All' in the parameter list then

In 1st page I should see data related to Australia and display parameter value as Australia in the left side top corner of the report.   In 2nd page I should see data related to England and display parameter value as England in the left side top corner of the report.   In 3rd page I should see data related to Canada and display parameter value as Canada in the left side top corner of the report.  In 4th page I should see data related to Italy and display parameter value as Italy in the left side top corner of the report.  In 5th page I should see data related to All and display parameter value as All in the left side top corner of the report.

2) If I select Australia and England in the parameter list then

In 1st page I should see data related to Australia and display parameter value as Australia in the left side top corner of the report.   In 2nd page I should see data related to England and display parameter value as England in the left side top corner of the report.

3) If I select Italy in the parameter list then

In 1st page I should see data related to Italy and display parameter value as Italy in the left side top corner of the report.

It should look like this..I need help in showing parameters (selected parameter) individually on each page.

Page-1

Parameter: Australia ( how to show Australia on 1st page)

Product

Amount

Country

Prd1

100

Australia

Prd2

200

Australia

Prd3

300

Australia

Prd1

340

Australia

Page-2

Parameter: England ( how to show England on 2nd page)

Product

Amount

Country

Prd4

400

England

Prd1

125

England

Page-3 

Parameter: Italy ( how to show Italy on 3rd page)

Product

Amount

Country

Prd2

250

Italy

Prd3

250

Italy

Create Table:

Create Table Sample(
Product varchar(10) Not Null,
Amount Money null,
Country null
)

Insert Statement:

Insert into sample (Product,Amount,Country) Values ('Prd1',100,'Australia')
Insert into sample (Product,Amount,Country) Values ('Prd2','200,'Australia')
Insert into sample (Product,Amount,Country) Values ('Prd3','300,'Australia')
Insert into sample (Product,Amount,Country) Values ('Prd4','400,'England')
Insert into sample (Product,Amount,Country) Values ('Prd5','480,'Canada')
Insert into sample (Product,Amount,Country) Values ('Prd1','340,'Australia')
Insert into sample (Product,Amount,Country) Values ('Prd3','290,'Canada')
Insert into sample (Product,Amount,Country) Values ('Prd1','125,'England')
Insert into sample (Product,Amount,Country) Values ('Prd2','250,'Italy')
Insert into sample (Product,Amount,Country) Values ('Prd3','250,'Italy')

Thanks in Advance,
RH


sql

how to have date parameters nullable in fetch xml crm report

$
0
0

Hi All ;

Below is my report parameter query

<fetch distinct="true" mapping="logical">Date.getTime() <entity name="new_programmeoutput">

CrmDateTime @Search = new CrmDateTime { Value = String.Format("{0:MM/dd/yyyy}", DateTime.Now) };

CrmDateTime @Search1 = new CrmDateTime { Value = String.Format("{0:MM/dd/yyyy}", DateTime.Now) };<attribute name="new_claimdate" /><filter type ="and"><condition attribute="new_claimdate" operator="ge"  value="@Search"  /><condition attribute="new_claimdate" operator="lt"  value="@Search1"  /></filter><order attribute="new_claimdate" /></entity></fetch>

which works fine if the start date and the end date is entered

but if the start date and end date is made null ... it doesn't display any values

In fact if these ( start date and end date)parameters are made null i need to display all the values in the report irrespective of the date parameters

Any help much appreciated

Thanks


Pradnya07


Major Tick Marks - Not shown for the Max value

$
0
0

Hi,

In a graph, Im trying to display one measure value (Order Quantity) across all the Categories for a particular month.
So, I have specified the MAX value for the chart to be MAX(Order Quantity).

I need to have specific intervals based on the MAX value of the order Quantity. So, I gave an expression, similar to the below:

case when maxvalue   <= 6 then 1
when maxvalue > 6 and <= 12 then 2
when maxvalue > 12 and <= 30 then 5
when maxvalue > 30 and <= 60 then   10
when maxvalue > 60 and <= 100 then 20

So, the interval works perfectly fine based on the maxvalue. But, the problem Im facing is, if the maxvalue is say 13, then I have intervals like 0, 5, 10.
But, 13 isn't getting displayed, rather the tickmark stops at 10. However the chart value is plotted rightly at 13.
How do I get the max tickmark to be displayed even if it is not same as the interval value? Any clue on this, is greatly helpful. Thanks!

ReportViewer 2012 multiple report viewers

$
0
0

Report Viewer 2012 CTP or 11.0 is not letting me load two ReportViewers at the same time.  I'm using local reports for both.

I have two ReportViewers and the first one is getting loaded while the other one says Object reference not set to an instance of an object.

The data sources are in there and when I switch the ReportViewers, the FIRST one always works.

Also after I see the message and I click the refresh button in the second (problem) report it then proceeds to work.  It just doesn't load initially when the page loads.

This use to work in Report Viewer 10.0.

Has anyone experienced this or has a fix/workaround?

Date Format Issue

$
0
0

SSRS 2008 R2

I have the following expressions that return the following values:

=Parameters!startdate.Value        Returns: 7/28/2014 12:00:00 AM

=Format(Parameters!startdate.Value,"M/d/yy")     Returns: M/d/yy

=Format(Globals!ExecutionTime,"M/d/yy")    Returns: 8/4/14

Why is my second example returning M/d/yy insead of 7/28/14?

Thank you,
Scott

Problem with BLANK Value in SSRS Subscription

$
0
0
I have a report that I designed in Vis Studio 2005 and have deployed to SSRS 2005.  I have no issues what so ever when running it interactively out of Report Manager.  However when running it scheduled via a subscription, I am running into trouble.

This report has a parameter called "Label".  It is set up as a String parameter, Allow Blanks, and Multi-Value.  (It does not allow me to select Null values...tells me "The properties for the currently selected item are not valid.")  I am getting Available and Default values from a query I have created in a separate dataset.  This query pulls in all possible values for Label, including a BLANK value (there are values that are and should be Blank).

In my subscription, I want to select all Labels but label 98, including the BLANK.  So when I go in to create or edit a subscription, I simply uncheck the 98 label.  I can see a blank checked as well.  However when the subscription runs, the subscription status tells me "Failure sending mail: Default value or value provided for the report parameter 'Label' is not a valid value."  This ONLY occurs when I have the BLANK label selected in my dropdown list!

However, when I run this interactively out of Report Manager, doing the exact same thing (selecting all labels other than label 98, INCLUDING the Blank), it works properly.

What could be going on here?  Kinda new at this and totally stumped.

Tony

Help with a line chart displaying blank line in the legend

$
0
0

Hi all,

Using SQL Server Reporting Services 2008 R2.

I have a line chart, that represents the current day's data.

My dataset returns data for the day divided up into 15 minute intervals

start_time, end_time, volume

I need to create a smooth line chart of these values, with a cumulative sum of the volumes.

It is possible for a value to be NULL in a 15 minute interval, but I have set the custom attribute on the chart to EmptyPoint = Average so that we do not see a break in the line.

HOWEVER, as it is a view of the current day's data, there will be empty data points for each 15 minute interval that has not yet occurred. I do not want to display these points - I want to only display the line up to the latest time we have data for, but for the chart to still show the whole day.

I tried setting the colour of the series to transparent for 15 minute intervals that are in the future with this expression:

=IIF(Fields!date_hour_end_time_stamp.Value > MAX(Fields!event_time_stamp.Value), "Transparent", "Automatic")

This works, but it makes the line on the legend also transparent for some reason even though not all the values are empty.

How can I achieve this without breaking the legend?

Edited to add:

I have two lines on this chart, and the other is a target line - which does need to display for the whole day.

Problems with SSRS 2012 SP1 / SharePoint 2013 / Central Admin / Encryption keys

$
0
0

Hi,

I have an SP 2013 instance with SQL 2012 SP1 SSRS running. 
Until recently, it was operating fine.  Now, however, I cannot access
the "System Settings" configuration page in Central Admin.  I get the
following error:

The report server cannot
decrypt the symmetric key that is used to access sensitive or encrypted data in
a report server database. You must either restore a backup key or delete all
encrypted content. --->
Microsoft.ReportingServices.Library.ReportServerDisabledException: The report
server cannot decrypt the symmetric key that is used to access sensitive or
encrypted data in a report server database. You must either restore a backup key
or delete all encrypted content. ---> System.Security.SecurityException:
Requested registry access is not allowed.

No, I don't
have a backup copy of the key (dumb, I know). I have also tried deleting
keys from CA, but this doesn't seem to allow access either.  I have run
repairs of the SQL Server SSRS for Sharepoint component, and the
rsaddin.  Have also granted explicit read access to the farm admin
account and the WSS_WPG   to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Reporting Services

The
only thing that has changed in the environment is that we were playing
around with authentication settings on IIS (the server also hosts other
sites) - specifically Enhanced protection.  This is switched off for all
relevant sites, but an earlier error I was getting in the rs log file
was pointing at a missing config entry for WindowsEnhancedProtection -
which I've added (with settings "Off", and "Any").

Report service log file is giving me:

ERROR: Throwing
Microsoft.ReportingServices.Library.ReportServerDisabledException: ,
Microsoft.ReportingServices.Library.ReportServerDisabledException: The
report server cannot decrypt the symmetric key that is used to access
sensitive or encrypted data in a report server database. You must either
restore a backup key or delete all encrypted content. --->
System.Security.SecurityException: Requested registry access is not
allowed.

   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at RSManagedCrypto.RSCrypto.Load(Guid id)
   at Microsoft.ReportingServices.ServiceRuntime.ReportServiceBase.InitializeAppDomainSingletons()

on
service start.  RS database is on a separate server, and we are using
Kerberos auth.  Have checked IIS that "Negotiate" is set properly for
the site.  Kernel mode protection is on.  Enhanced protection is off.

Running out of ideas...any help appreciated.

regards,

Steve.

Serial number in ssrs

$
0
0

Hi...

In my report i used serial no but it is now coming 1 2 3 like this it showing 1 4 6 like this.

may i know what is the reason behind that please help me


Using COUNT and DATEADD Functions

$
0
0

Am trying to write an expression using the COUNT and DATEADD functions. Being a SQL noob, I really could use some help. The goal is to count the number of fields for the LastOnline value, for the past 7 days. Here is my broken expression:

=Count(Fields!LastOnline.Value > DateAdd ("d",-7,Today()))

Thx for the help.

range inclusive ssrs report builder using SSAS as source unsolved

$
0
0

Hello,

I am trying to use MDX query designer in SSRS report builder. I choose a date dimension and i need to include a range for it . So i selected range inclusive as the filter.

When i do that and give default dates it works fine. When i select parameters it and hit ok. it immediately throws a error.

"Query (1, 216) The restrictions imposed by the CONSTRAINED flag in the STRTOMEMBER function were violated."

So i went ahead changed it to scripting mode and removed the "constrainted" flag and ran it . but then a different error comes up

SELECT ( STRTOMEMBER(@FromDate) : STRTOMEMBER(@ToDate) ) ON COLUMNS

then i get this error.

"Query (1, 216) The STRTOMEMBER function expects a member expression for the 1 argument. A tuple set expression was used."

what do i need to do to make this compile correctly. Please suggest. I am working on this for 2 weeks. 

Nested IIF in SSRS 2012

$
0
0

I am trying to set 2 hidden conditions on a row that will show alternate numbered rows (all even #), and also hide any rows that have an answer of '0' or "".

I have tried various variations of the IIF statement.  Can someone please help me with getting this to display correctly?

=IIF((rownumber(nothing) mod 2)=0, false, true) And IIF(Fields!PrimaryAnswer.Value <> ""
OR (Fields!PrimaryAnswer.Value <> "0"), false, true)

(this does not give me either condition I am looking for)

When output SSRS report to Excel, Plus sign was moved to the far left pane in Excel. How to fix it?

$
0
0

Hi there:

   I've created a SSRS report and looks good inside Report Manager, See below . plus "+" is in the right place and

if I click it, it will expand. 

However, when I output results into excel, it becomes this, notice those plus sign "+" have been shifted to the far left and they are

not line up with each month either... Is there any way to fix in the excel so that users could see exactly what they see in the Report Manger? 

 Thanks


--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Open SSRS 2012 website by IP address... using SSL

$
0
0

This is kind of a backwards request... We have a SSRS 2012 server using a valid GoDaddy SSL certificate. Everything works fine, and now we want to publish that website through our Imperva reverse proxy. The weird thing is that Imperva wants to access that web page by IP address, not DNS name. And it needs to do it using SSL. Meaning it wants to access the site like this:https://192.168.0.1/Reports instead of like this: https://ssrs.mydomain.com/Reports.

True, accessing an SSL enabled website by IP address will create certificate errors, since the URL won't match the certificate. But apparently that's what Imperva wants. The problem is, SSRS (understandably) won't respond on 443 when being accessed using an IP address. I see how I can easily make the site respond by IP address when accessing the site without SSL, but I need both. SSLand it needs to respond by IP. Ever since Microsoft integrated the IIS engine into SQL, we've lost the IIS MMC that might help me force the website to respond the way I need it to. So does anyone know any other way of doing it?

Viewing all 10045 articles
Browse latest View live


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