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

Reporting Services URL

$
0
0

Hi All,

I have configured the Reporting Services on 2016 server. After i open the URL in IE, getting below page and i don't see Create folder page. Let me anything wrong with the configuration.

Servername/ReportServer - /

Microsoft SQL Server Reporting Services Version 13.0.5366.0


Vinai Kumar Gandla


ReportService2010.asmx and "The request failed with HTTP status 404: Not Found"

$
0
0

Hi,

I'm trying dig into SSRS service and found the following page from Microsoft:

Manage Subscription Owners and Run Subscription - PowerShell

But no matter what I try to do, it fails to:

New-WebServiceProxy : The request failed with HTTP status 404: Not Found.
At C:\Scripts\SSRSScript.ps1:9 char:12
+ $rs2010 += New-WebServiceProxy -Uri "http://$server/ReportService2010.asmx" -Nam ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (http://ssrsserv...ervice2010.asmx:Uri) [New-WebServiceProxy], WebException
    + FullyQualifiedErrorId : WebException,Microsoft.PowerShell.Commands.NewWebServiceProxy
You cannot call a method on a null-valued expression.
At C:\Scripts\SSRSScript.ps1:10 char:1
+ $subscriptions += $rs2010.ListSubscriptions($site); # use "/" for default native ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

I'm able to accessing to the "admin" page using URL "http://ssrsServer/Reports_ssrsServer/Pages/Folder.aspx?ViewMode=Detail". So I believe the correct URL for this should be something like:

"http://ssrsServer/Reports_ssrsServer/ReportService2010.asmx"

On the browser this returns "The resource cannot be found."

Any advises from where I should take a look? I believe I'm not able to see those resources in anyway, not like on IIS?


Petri

Help with Expression in Report Builder

$
0
0

Hello All,

Working with SQL Server 2016 and Report Builder.

In Report Builder, inside a Textbox I have the following expression shown below, that doesn't appear to be working. If I use the same expression/functions in an SQL Query, it works just fine.

The resulting output from this function shows the date of Sunday of the Previous week. So for example, today is 8/10/2020, so it should result in the Date"August 02, 2020". But, I get an error instead.

=format(DateAdd("week",-1,DateAdd("week",DateDiff("week",0,getdate()),0)) - 1, "MMMM dd, yyyy")

So basically, in Report Builder, I'm trying to show a date range. THe Report shows all the data from the previous week's Sunday through Saturday. So I'm trying to display that in the Report, something like"Results for:  August 02, 2020 to August 08, 2020".

The error in report builder, when I click Run, says:

The Value expression for the textrun ‘Textbox14.Paragraphs[0].TextRuns[0]’ contains

an error: [BC30451] 'getdate' is not declared. It may be inaccessible due to its protection level.


Any ideas what I'm doing wrong here?


Matt


How to get full email address info for SSRS 2005 Subscriptions from database (query results are truncated)?

$
0
0

We're going to change our SSRS 2005 server's email configuration in Production next week, and ahead of that, we'd like to have our Exchange team validate that the email addresses in the subscriptions will work with the new configuration (some may be legacy Lotus Notes address entries). I've created the query below, and the only problem with it is that the Description field results are mysteriously truncated. Looks like all I'll ever get is 55 characters. I've tried just selecting the Description field "plain", but the problem remains. I review the results, and I can see truncated lists of email addresses (eg John.Jones@mail.com, Jane.Smi). I've copied the results out of SSMS, pushed query results to grid, text, and file, but still the results are truncated. Why? Do I have to write something against the API's to get this info instead? Seems like I must be missing something. The results aren't truncated if I look at the subscription details in Report Manager, so clearly that text is being stored somewhere.

use ReportServer
SELECT
Report.Path as Report_Path_and_Name
      ,Replace(S.[Description], 'Send e-mail to ', '') as sub_Description
      ,[LastStatus]
,s.[ModifiedDate] as sub_Modified
      ,[LastRunTime]
  FROM [ReportServer].[dbo].[Subscriptions] s
inner join dbo.Catalog Report on s.Report_OID = Report.ItemID
where LastRunTime > '2008-12-01'
and (s.Description like '%Send e-mail to%'
or LastStatus like '%Mail sent%')

Thanks much!

formatting a text box with html

$
0
0

hi we run 2016 enterprise.  i once saw an ssrs textbox setting (I think) where the line feeds etc are controlled with html tags rather than carriage control. 

Can someone provide a link or clarification on the subject?  I'm looking too.

if we do go that route, can a text box expand to accommodate an unknown height of html controlled data?  what if the text box goes onto the next page? 

finally would line feeds in the column be just as good?  I think line feeds are 0x15.  its just as easy for us to go either way.  its been a while but if memory serves, one option is worse perhaps if the report is saved to word etrc.

How to get distinct value from a dataset column?

$
0
0
Hi,
I have a column in data set,which contain different values.
I want to extract distinct values from column in reporting services only (i.e without modifying my SP or SQL query
at database).

Gagan

Count Rows Of a filtered Tablix and show in a different Textbox (Outside Tablix)

$
0
0

Hi All,

I Have to Hide my Filtered Tablix based on rowcount.

At the same time A Seperate informational Textbox should also get hidden. I tried doing as specified by below link :

http://social.msdn.microsoft.com/Forums/is/sqlreportingservices/thread/4f8789cf-010e-4ae3-8368-10a4c177574f 

Steps I followed:

>> In Tablix took another hidden Cell (Let say Textbox_Test) and in expression wrote :countrow("Mytablix")

>>In seperate textboxI am trying to refer that Cell  as ReportItems!Textbox_Test.value

but my text box does not get tablix rowcount at all. Please suggest.

Thanks,

Priya


Group Subtotal for Top N Values in SSRS 2008

$
0
0

Dear All,

I am having one problem in calculating subtotal for the group filter to show top 2 values. Here is my requirement

 

Date set

 

ProductProduct SubcategoryAmount
MensShirts100
MensT Shirts50
MensPants150
MensTie20
MensPolo Shirt75
LadiesShirts80
LadiesT Shirts50
LadiesPants85
KidsShirts55
KidsPants70
Kidsshoes50

 i want to group by product and to show only top 2 product sub categories based on Amount value. So my output should be

 

 

ProductProduct SubcategoryAmountContribution
MensPants15060%
 Shirts10040%
 

Total

250100%
    
LadiesPants8551.50%
 Shirts8048.50%
 Total165

100%

    
KidsPants7056%
 Shirts5544%
 Total125

100%

 

Here contribution is nothing but Amount/Total

I used tablix to show the data. I added one group to group by product and in the detail group i filtered to show only top 2 values of product subcategory based on amount. it works fine and shows the correct data.

My problems are

1. the subtotal for the group is not for the filterd data, it is for all the data in the group(in m case, it should be 250 but it shows 395 for men.

i gone thru lot of forums and got the workaround to solve this issue like

i added two more rows in the group , in the first row text box(name is top2valuesamount)  i use =RunningValue(Fields!ItemNetSalesAmt.Value, Sum, "Nothing") to get the total amount for the filtered records, then i hide the row

in the second row i just show the value of the top2valuesamount, text box in the text box(Name is totaltop2valuesamount) i.e =reportitems!top2valuesamount.value

is there any other way to do this?

2. i get the total value for the filtered records. that is fine. But when i calculate the contribution values i am having some problem. I use this expression = Fields!ItemNetSalesAmt.Value/reportitems!Totaltop2valuesamount.value but i dont get the correct value. i understand that when the SSRS calculate this the value of the reportitems!Totaltop2valuesamount is the first value of the group. i tried changing the expression in to = Fields!ItemNetSalesAmt.Value/reportitems!top2valuesamount.value, but this time also it is not right. I understand that here the value of the reportitems!top2valuesamount is the runningvalue value.

I hope i am clear in my requirement.

Kindly help me to solve this issue.

Thanks in Advance.

Regards,

Thaya

 

 

 


DYNAMIC TABLES AND COLUMNS WITH SSRS

$
0
0

Hi All,

I have result from Query as below and I want to show them as mentioned below.I want to implement breakdown by Department first and then by name and then show the dynamic userItems and I want to restrict the columns as per max 9 or so.I was able to achieve by showing by showing userItems as rows but I want to show them as columns and make a restriction on number of columns.

OUTPUT from Query:---->

DepartmentNameuserItems(dynamic)
SalesRamPhone
SalesRamTablet
SalesRamBluetooth
SalesRamSpeaker
SalessurajDVD
SalesViratRadio
marketingVigneshTV
marketingVigneshComputer
marketingNareshHeadset

What I want to show in SSRS--->

DEP---Sales
                       userItem1         item2     item3                  item4
  Ram              phone               Tablet     Bluetooth         Speaker
   Suraj             DVD
Virat               Radio
DEP---marketing
Vignesh            TV                Computer
Naresh              Headset

Thank You in Advance and if needed i can share more Info regarding this

SSRS Role ID and TaskMask

$
0
0

Hello,

I need to find out who has access to what on SSRS.  From the User table, I can query something like the following.   

Questions:
1) What is Role ID?  Is this a 1:1 map to a user?
2) What is TaskMask?  Is this a 1:1 map to a specific item (ie folder/report)?
3) How do I find out the mapping (ie the actual user name or folder/report name)?

RoleIDRoleNameDescriptionTaskMaskRoleFlags
30429381-0F4C-45E9-9136-AB4FE71CCD71View FolderView folder structure and reports available (incl report definition) but can't run reports00000010000000000
DF7F6687-DF4E-4D2A-B1A8-B0917EA4E82CBrowserMay view folders, reports and subscribe to reports.00101010010001000
DF7F6687-DF4E-4D2A-B1A8-B0917EA4E82CBrowserMay view folders, reports and subscribe to reports.00101010010001000
30429381-0F4C-45E9-9136-AB4FE71CCD71View FolderView folder structure and reports available (incl report definition) but can't run reports00000010000000000
DF7F6687-DF4E-4D2A-B1A8-B0917EA4E82CBrowserMay view folders, reports and subscribe to reports.00101010010001000
DF7F6687-DF4E-4D2A-B1A8-B0917EA4E82CBrowserMay view folders, reports and subscribe to reports.

SSRS Expression: Using IIF / OR / AND

$
0
0

I am working with a report where I want to use an expression to control row visibility in Report Builder. The expression will determine if a name appears on a list or not. The conditions are as follows:

If the student received a Grade F they do not appear on the list. This part is easy:  =IIF(Fields!Grade.Value = "F", True, False)

However the list conditions are more complicated.

If the student receives a Grade F they do not appear on the list. 

However, if the student receives an F (no matter how many) and they get either an A, B, C, D grade they appear on the list. 

So my IIF statement is as follows:

=IIF(Fields!Grade.Value = "F", True, IIF(Fields!Grade.Value = "A" OR Fields!Grade.Value = "B" OR Fields!Grade.Value = "C" OR Fields!Grade.Value = "D" AND Fields!Grade.Value = "F",  False, False))

When I run the report, I get no errors and the report opens. However, the expression does not seem to be working. Does anyone have any suggestions as to why my logic is not working, but not erroring?

where should my barcode fonts be installed if i'm running vs on an rdp'd to machine

$
0
0

hi i'm running vs on a dev machine i rdp into after establishing vpn.

we are going to install barcode fonts but one of us thinks they need to be installed at the directory you see below on my local and the other one thinks on the machine i rdp into.

what is the real story?

C:\Windows\Fonts directory

newsletter style combine with regular report in one report

$
0
0

Hello !

We are using Microsoft SQL Server Reporting Services Designers Version 9.00.3042.00 and SQL 2005 and VS 2005

I have created multi pages newsletter style report that generates PDF on the fly and I need to include the cover letter on the first page of this report. The cover letter is a full page text without any layout columns and just a bunch of text boxes. I need to combine the cover letter and newsletter style report into one pdf file. The cover letter should appear only ones on the first page of the report. I tried to put my cover letter on the header of newsletter style report and hide it on all pages except the first but I still have the blank spaces left on all other pages and I can't rid of them. How do I produce a report that combines first page as text with no layout columns and multi pages newsletter style report or how do I rid of an empty spaces in the report header on pages other that the first page when the filed is hidden.

Any help will be appreciated.

Thank you.

Newsletter Style Sub Report

$
0
0

Has anyone found a way to have a sub report (or even in the main report) where some of the data is in a newsletter style and the rest isn't?

Typical example is a quotation where the body of the quotation is single column with a variety of groups and details, etc.  and then the end of the quote is the Terms and Conditions which are usually newsletter style and uber small font.  

This is very common in our industry so I'm sure someone has found a trick to it?


Sherry

Tablix--- Visibility property is not working fine, need a small help

$
0
0

Hi Friends,

I have small problem in my SSRS report.

Retirement is : Have 2 input parameters(parm1, parm2), 3 tablix in my report. Based on input parameters what i have to pass trough the inputs parameters. My tablix should have to show OR hide based on 2 scenarios.



Scenario 1: When i will enter the values in  parm1 then only tablix1 should have to shows remaining (2,3)tablix are in hide , using this expression (IIF(  Parameters!Parm1.Count > 0 and Parameters!Parm2.Count = 0 , TRUE,FALSE)) to show the tablix1


Scenario 2: When i will enter the values in  parm2 then only tablix2 should have to shows remaining (1,3)tablix are in hide , using this expression (IIF(  Parameters!Parm1.Count = 0 and Parameters!Parm2.Count > 0 , TRUE,FALSE)) to show  tablix2

Scenario 3: When i will enter the values in  parm3 then only tablix3 should have to shows remaining (1,2)tablix are in hide , using this expression (IIF(  Parameters!Parm1.Count > 0 and Parameters!Parm2.Count > 0 , TRUE,FALSE)) to show  tablix3


BUT in my report scenairo 3  is not working as expected. if we enter the values in both parm1, parm2 . Tablix1, Tablix3 is showing in in SSRS report. I want to hide tablix1, tablix2 tables, Only tablix3 should be visible. 

CAN ANYONE HELP ME how to fix the issue 










Table Explaination for dbo.catalog table in ReportServer database

$
0
0

Hello,

 

I am trying to look for the explaination for the columns in dbo.catalog table. Is there any place i have explainations for these tables?

 

For instance there is a column 'Type' in dbo.catalog table. But not sure what information it has - it has values like 1,2,3,4 .. Wanted to know what these values are.. Any idea on this?

 

Thanks, Uma

Cannot create a connection to data source 'PPY_DS'. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.

$
0
0

I am getting this error when I am running SSRS report from service account. I am able to open the report manually as well I can connect to database also credential stored in reporting server.

C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\LogFiles content are below:

processing!ReportServer_0-52!6a88!07/28/2020-06:17:09:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'PPY_DS'., ;
 Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'PPY_DS'. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
   at System.Data.OracleClient.OciHandle..ctor(OciHandle parentHandle, HTYPE handleType, MODE ocimode, HANDLEFLAG handleflags)
   at System.Data.OracleClient.OciEnvironmentHandle..ctor(MODE environmentMode, Boolean unicode)
   at System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName)
   at System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions)
   at System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OracleClient.OracleConnection.Open()
   at Microsoft.ReportingServices.DataExtensions.ConnectionExtension.Open()
   at Microsoft.ReportingServices.OnDemandProcessing.RuntimeDataSource.OpenDataExtensionConnection(DataSource dataSourceObj, OnDemandProcessingContext pc, CreateDataExtensionInstance createDataExtensionInstance)
   --- End of inner exception stack trace ---
processing!ReportServer_0-52!6a88!07/28/2020-06:17:09:: e ERROR: Data source 'PPY_DS': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'PPY_DS'. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
processing!ReportServer_0-52!6a88!07/28/2020-06:17:09:: e ERROR: An exception has occurred in data source 'PPY_DS'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'PPY_DS'. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
processing!ReportServer_0-52!6a88!07/28/2020-06:17:09:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
processing!ReportServer_0-52!6a88!07/28/2020-06:17:09:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
 Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'PPY_DS'. ---> System.Exception: OCIEnvCreate failed with return code -1 but error message text was not available.
   --- End of inner exception stack trace ---
chunks!ReportServer_0-52!6a88!07/28/2020-06:17:09:: w WARN: Rolling back shared chunk transaction for snapshot 'bc88e972-6a96-41cd-b134-02b39bdd7b63', Permanent=True.

Could you please help me with this error.

Thanks

Sandeep


Client found response content type of '', but expected 'text/xml'.

$
0
0

when I ran the ESP job I am getting error "Client found response content type of '', but expected 'text/xml'." but manually I am able to run the report.

Windows Server : 2003

<ReportServiceUrl>http://host/ReportServer/reportservice.asmx?</ReportServiceUrl> ( I have found out even if I make changes to this the error is not changing )

I have given access to account same as production.

Could you please help me.




Report Server Error: "The request failed with HTTP status 401: Unauthorized

$
0
0

Hello,

I am getting this error when I am running SQL Server Report.

The service account is Admin and able to open manually from the browser but when I am running from ESP or command prompt I am getting error "HTTP status 401: Unauthorized".

Other user is able to execute this report, I am not able to understand what is the issue with the service account.

Window Server version :2003

Could you please give suggestion, what I can do here.

Thanks

Sandeep

one aditional reporting services to SQL 2017

$
0
0

Hi to all,

I have one SQL server 2017 with 6 instances and one reporting services running.

Could I add one addition reporting services that will work with one of the SQL instances it has.

I mean, from a remote product I will connect to this reporting services but the one that it's already running is not the one I will configure as additional reporting service


Warm regards MeVs

Viewing all 10045 articles
Browse latest View live


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