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

SSRS Reporting Server

$
0
0

The request failed with HTTP status 401: Unauthorized.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[WebException: The request failed with HTTP status 401: Unauthorized.]
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +192
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +51
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +12
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.ProxyMethodInvocation.Execute(RSExecutionConnection connection, ProxyMethod`1 sql16Method, ProxyMethod`1 katmaiMethod, ProxyMethod`1 yukonMethod) +566
   Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +241
   Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId) +24
   Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession() +121
   Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +66
   SSRSReport14.ViewReport.ViewReport_Init(Object sender, EventArgs e) +626
   System.Web.UI.Control.OnInit(EventArgs e) +95
   System.Web.UI.Page.OnInit(EventArgs e) +13
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408

Does anyone knows what is the cause of mentioned error? 


SSRS - Sending Encrypted emails using Office365

$
0
0

Hi!

We are trying to configure our SSRS-server to send encrypted emails using O365.

My question is what protocol should we be using Pop3/IMAP/SMTP?

Have anyone tried this? Can you pls direct me to a good article?

Regards/J

SMTP - Office 365 Message Encryption (OME)

$
0
0

Hi!

Is it possible to send enccrypte emails(OME) when using SMTP (smtp.office365.com) for sending the emails fom a mail enabled server?

Regards/Jean

couldn’t found a ‘like’ operator for multi-select parameter fetchxml

$
0
0

Hi guys, I’m building a report using SSRS with fetchxml query and i’m facing a problem since yesterday.

I couldn’t found a ‘like’ operator for multi-select parameter

Here is my need:

I have a multi-select parameter called @Process_Stage with values (1. Qualify, 2. GO / NoGO, 3. Solution GO, 4. Offer and 5. Close) that I pass to my fetch raquest

<link-entity name="saft_ceopportunitypresalesprocess" from="bpf_opportunityid" to="opportunityid" alias="process" ><attribute name="activestageid" /><filter type="and"><condition attribute="activestageidname" operator="contain-values" value="@Process_Stage"/></filter></link-entity>

For example, I need to get a result wether the process stage is equals to ‘4. Offer’ or ‘4. Offer (fast track)’ and so on

Hope I was clear enough

Thank you guys in advance ;)

Report builder 3 charts question

$
0
0

Hello

when I add data labels to a column chart I get a bunch of little arrows that I want to get rid of.

I did a search and found the following

  • In the chart data select the value you want to edit and then in the properties expand the the labels section and then expand the subsection titled Smartlabels. Under this group there will be a property called'CalloutLineStyle' which will be set as solid change the value to 'None', this will remove the arrows from the data labels. You will need to change this property for all the values you have in your chart.

but I cannot find any option for Smartlabels or Calloutlinestyle.

Any help would be appricated

Thank you

SSRS Switch Expression for Background Color Not Working

$
0
0

I am using this expression to change the background color in the BackgroundColor property of a column value:

=SWITCH(Sum(Fields!QA_Pass.Value) < .95,

"Red", Sum(Fields!QA_Pass.Value)>= .95, "Green", Sum(Fields!QA_Pass.Value)= 0, "White")

BUT:  zeroes are still showing red, and values < .95 are showing green.  HELP!  Thanks.


A. Wolf

Report builder 3 charts question

$
0
0

Hello

I am new to report builder.

when I turn on data labels I get the labels at the top of the columns I want but I also get another set of numbers across the bottom of the columns, which I cannot see how to get rid of, please see red arrow in image below, thank you in advance for any assistance

SSRS report runs a long time on Power BI Report Server and eventually fails with "The status code returned from the server was: 0" error

$
0
0

We are running Power BI Report Server (March 2018 version), and we have an SSRS report created that was running just fine on Report Server before changing the stored procedure behind the report. After changing the stored procedure (mostly just to reformat the code using CTE statement instead of nested queries), the report runs for a long time and eventually fails with the following error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0

It doesn't make sense to me why changing the underlying stored procedure would cause a problem like this because I can run the stored procedure directly in the database, and there is no performance problem.

Also, I can open the report in Report Builder, and then open the dataset and run the stored procedure there, and it returns immediately with the data.

Any pointers for how to troubleshoot the cause of this error would be much appreciated. I've looked at some logs on the server too, but they don't seem to have any useful info as to what is causing this error. I've also searched the forums and internet in general for this basic error, but can't seem to find a good direction for resolution.


OData exception occurred: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. Subbscription creation

$
0
0

I am trying to create a subscription for a report in SSRS 2016.  WHen I go to Mange report and click subscription I get a message 'An error has occurred.  SOmething went wrong.  Please try again later.  In the log files I found the following error:

Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!40!12/06/2018-13:37:52:: e ERROR: [ac6ffwmz]: OData exception occurred: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SetConnectionProtocol()
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod()
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.ListExtensions(String extensionType)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapRS2010Proxy.<>c__DisplayClass41.<ListExtensions>b__40()
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapAuthenticationHelper.ExecuteWithWindowsAuth[TReturn](SoapHttpClientProtocol soapClient, IPrincipal userPrincipal, Func`1 func)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapAuthenticationHelper.ExecuteWithCorrespondingAuthMechanism[TReturn](SoapHttpClientProtocol soapClient, IPrincipal userPrincipal, Func`1 func)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapRS2010Proxy.ListExtensions(IPrincipal userPrincipal, String extensionType)
   at Microsoft.ReportingServices.Portal.Repositories.SystemService.ListExtensions(IPrincipal userPrincipal, ExtensionType extensionType)
   at Microsoft.ReportingServices.Portal.ODataWebApi.V1.Controllers.ReportServerInfoController.ListExtensions(ExtensionType extensionType)
   at Microsoft.ReportingServices.Portal.ODataWebApi.V1.Controllers.ReportServerInfoController.DeliveryUIExtensions()
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext().

Any suggestions?

where did my page #'s go

$
0
0
Hi , I think after following the suggestions at https://social.msdn.microsoft.com/Forums/en-US/d7fc9922-207f-49e9-a225-e2cb63f51377/disappointed-in-behavior-when-saving-report-to-excel-and-pdf?forum=sqlreportingservices my interactive page #'s became just one page.  per that post I squished some stuff so the report would save and print in/from PDF appropriately.  The report is basically a master that calls a multi matrix sub once for each salesman.  I did try "page break after" on the last sub matrix but got really weird results, ie 3 pages interactively for 6 salesmen.  any thoughts?  i'm happy with the page numbering shown on pdf though.

Page Break - Based on Section or Group of Attribute

$
0
0

Hi All,

I need the insights for developing the below pagination report in SSRS. 

I have rows and column as Region, State, City, Store, Manager ID, Revenue, Profit %.

Pagination Report Layout

Header --> Header 1  (Need to repeat on each page)

Title 1 ---> Region 01 - State 01 - City 01  (Page break to be happen based on this group)

Table 1 ---> Store - Revenue - Profit %  (Store will based on Title 1 Group - it should be also to be repeat on all the Page, based on Table 2 overflow)

Table 2 ---> Store - Manager - Revenue - Profit % (Detail table of Store, Manager will be based on Title 1 Group)

Ex:

Page 1

Header 1

Title: Region 01 - State 01 - City 01      (Page break to be happen based on Group)

Table1: Store 01, 02 , 03 - Revenue - Profit   (Need to repeat on all the page based on above Group & Stores)

Table2: Store 01 - Manager 01 / 02 / 03 .... - Revenue - Profit % (Detail table, while over flow it should contain header, Title, Table1

Page 2

Header 1

Title: Region 01 - State 01 - City 01

Table1: Store 01, 02, 03 - Revenue - Profit %

Table2: Store 01 - Manager 04/05/06 - Revenue - Profit %

Provide your suggestion 


Power bi custom visuals use json file

$
0
0

Hello! I develop Power BI Custom visuals that contains custom map. This map is generate with topojson help. How I can use json file in myvisual.ts file? Is it possible?

My code:

let topojson = (<any>window).topojson;
let d3 = (<any>window).d3;
module powerbi.extensibility.visual {

    export class Visual implements IVisual {
        private target: HTMLElement;
        private updateCount: number;
        private settings: VisualSettings;
        private textNode: Text;

        constructor(options: VisualConstructorOptions) {
            console.log('Visual constructor', options);
            let width = window.innerWidth;
            let height = window.innerHeight;

            let svg = d3.select("body").append("svg").attr("width", width)
                .attr("height", height);

            d3.json("Regions.json", function (error, world) {
                if (error) {
                    // На случай, если карта не загрузилась 
                    console.log(error);
                    return;
                }


                svg.append("path")
                    .datum(topojson.feature(world, world.objects.RegionsMRSK))
                    .attr("d", d3.geoPath(d3.geoMercator()));
            });
        }

Facing error while creating datasource in ReportServer using Powershell

$
0
0

Hi,

I am facing error while creating a data source from powershell using CreateDataSource method. Below is the set of code and error:

        $rdsf = [System.IO.Path]::GetFileNameWithoutExtension($rdsfile);
        $RdsPath = $SourceDirectory+"\"+$rdsf+".rds"
        [xml]$Rds = Get-Content $RdsPath;

        $ConnProps = $Rds.RptDataSource| where {$_ | get-member ConnectionProperties};

        $type = $ssrsproxy.GetType().Namespace
        $datatype = ($type + '.DataSourceDefinition')
        $datatype_Prop = ($type + '.Property')
    
        $DescProp = New-Object($datatype_Prop)
        $DescProp.Name = 'Description'
        $DescProp.Value = ''
        $HiddenProp = New-Object($datatype_Prop)
        $HiddenProp.Name = 'Hidden'
        $HiddenProp.Value = 'false'
        $Properties = @($DescProp, $HiddenProp)

        $Definition = New-Object ($datatype)
        $Definition.ConnectString = $ConnProps.ConnectionProperties.ConnectString
        $Definition.Extension = $ConnProps.ConnectionProperties.Extension
        if ([Convert]::ToBoolean($ConnProps.ConnectionProperties.IntegratedSecurity)) 
        {
            $Definition.CredentialRetrieval = 'Integrated'
        }
 
    $NewDataSource = $ssrsproxy.CreateDataSource($rdsf, $dataSourceFolder_Final ,$IsOverwriteDataSource, $Definition, $Properties)

ERROR: 

Cannot convert argument "Definition", with value: "SSRS.DataSourceDefinition", for "CreateDataSource" to type "SSRS.DataSourceDefinition": "Cannot convert the "SSRS.DataSourceDefinition" value of type "SSRS.DataSourceDefinition" to type 
"SSRS.DataSourceDefinition"."
+     $NewDataSource = $ssrsproxy.CreateDataSource($rdsf, $dataSourceFo ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument


Thanks,

Usha.


Few SSRS Export with CSV(No Header) is not working on 2016 and output file is empty, this used to work fine on 2005.

$
0
0

Few SSRS Export with CSV(No Header) is not working on 2016 and output file is empty, this used be worked fine on 2005.


Please see below "CSB (No header)" Xml configuration details.


<Extension Name="CSV (No Header)" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
 <OverrideNames>
    <Name Language="en-us"> CSV No Header</Name>
 </OverrideNames>
 <Configuration>
    <DeviceInfo>
       <NoHeader>true</NoHeader>
       <Encoding>ASCII</Encoding>
       <ExcelMode>False</ExcelMode>
    </DeviceInfo>
 </Configuration>
 </Extension>


SSRS Seems to be getting confused during processing

$
0
0

Greetings,

      I created a Stub-Check-Stub report for SSRS that uses a group to allow 10 lines per stub before doing a page break into an overflow check. 

I have a group expression as follows that determines if a page break occurs or not

IIf(Code.DidCheckNumberChange(Fields!Calc_DspCheckNum.Value, RowNumber(Nothing)), Ceiling(RowNumber(Nothing)/10), Ceiling(((10 +Code.GetCurrentRowCount ) - RowNumber(Nothing))/10))

     In testing all seemed to be working well.  However, now that the report is in production we're seeing strange occurrences in large check runs where some of the checks with multiple stub lines will print one line then page break and print from 1 to n lines on the next page.  The link below contains a PDF that shows the issue. 

    It almost seems if SSRS is getting confused with the row number as it relates to the check.  The one drive link includes the .RDL file for inspection as well.  Any ideas or suggestions would be greatly appreciated.

SSRS PDF and RDL File

Thanks


Lou Davis Software Engineer E2B Teknologies


How to use "NOT" in an expression?

$
0
0

I'm writing a visibility expression and I'm getting an error. I know the expression I'm using in the IIF statement is correct. 

=IIF(NOT IIF(WeekDay(Today()) <> 2, 
IIF(Fields!forderdate.Value=Today() 
OR Fields!forderdate.Value=DATEADD("d", -1, Today()),"**",""), 
IIF(Fields!forderdate.Value=Today() 
OR Fields!forderdate.Value=DATEADD("d", -1, Today()) 
OR Fields!forderdate.Value=DATEADD("d", -2, Today())
 OR Fields!forderdate.Value=DATEADD("d", -3, Today()),"**","")), True,False)

A conversion of the varchar data type to datetime produced a value outside of range.

$
0
0

HI

I have the sql code:

ALTER proc [dbo].[test]
(
@f varchar(50)
)
as
begin
set language spanish;
select CONVERT(datetime,@f)
end

It is executed by a SSRS, and I can see in profiler that it executes the statement: [dbo].[test] '2016-10-20'

It should fails since the language of the procedure is spanish.

When the SSRS executes the procedure it works fine but when I run in SSMS it fails and my session in SSMS is in English.

Force dynamic content in to a single (or fixed no of) page

$
0
0

Hello,

I have a simple report showing some data with respect to each day of a selected year (year is the parameter for the report).

Data should be shown in a way which, data of each month should be presented in a single table and 4 such table (or 4 months) should fit in to a single A4 paper when exported and printed.

Basically the layout is static something similar to below:


In a single table (for each month) first two columns are the date (1, 2, .. 30 or 31) and the second column is the week day.

Rest of the 4 columns are some numbers obtained by evaluating an expression. Data source is a stored procedure with all these column data.

My question is how to design the layout in a way which 4 tables are grouped in to a single page. So the whole report will be just 3 pages?

What I have done so far is added a table with 12 cells (2 columns X 6 rows) and repeated the following table with a filter in each to show only data from a particular month.


then I set the 'Keep Together' property to TRUE in each inner table. 

This partially works. when I export to PDF it comes as I want but with a blank page after each page with data. So my report has 6 pages (3 with data, 3 blank).

When I export to Word or Excel it is a completely different story and tables are scattered over multiple pages with different row heights in tables.

Please help on this.

Thanks a lot.

SSRS 2016 Report Server - reset security of the report folder to Home when adding user

$
0
0

Hello,

Recenlty we have migrated SQL and SSRS 2014 to 2016 version. It was not an upgrade. We have installed the brand new instance of SQL and SSRS on separate VM then we have attached the ReportServer and ReportServerTmp databses from the 2014 instance.

We have one folder with our reports with customized security for 320 users. To manage users we use ReportingService2010 library, but we have noticed slow performance when adding user, it takes over 1 minute to add user in this way, when in 2014 version it was 15-20 seconds.

Second thing, when we use Report Server Portal to add a user to our report folder, after few seconds it removes all existing users and reset the security (customized) the the parent folder (Home).

Any help woudl be appreciated.

Thank you!

Pawel

Looking for a documentation reference for a data-driven subscriptions...

$
0
0

Greetings!

I would like to create a table for an email data-driven subscription. I need to know the official names of the report output formats for the subscription, and I have not found a documentation reference (which should be part of the subscription documentation).

For example, if I want to use the "PDF" format or the "Excel" output format what would I use in a OutputFileFormat column value?

Thank you for the help!

-George Squillace


---------------- GeorgeS, aka "SQLPadawan"

Viewing all 20764 articles
Browse latest View live