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

Count total lines based on Distinct Value

$
0
0

Hello, 

I am very new to this. PLEASE HELP!

I am trying to create a total line that tells me how many lines contains the letter "N".

I have used the CountDistint function but that only tells me the number of distinct values in a range. 

With the information listed below I should have a return total of 2.

What is the best expression to use?

Thank you

Kyana Brooks


KYANA BROOKS Operations Manager


Failure sending mail: An error has occurred during report processing.Mail will not be resent

$
0
0

I am interested in finding out why this error occurs on SSRS servers:

Failure sending mail: An error has occurred during report processing.Mail will not be resent

Lol love the small text with Chrome after 10 years it's still not fixed

Ok back to the question.  We have programmers in accounting that know nothing about server maintenance, they write reports on Sharepoint and they work but occasionally fail sometimes.   The report server logs show absolutely nothing, the database contains nothing that indicates the reason.  The problem is not configuration, it's more like the report grew too large or it failed before it was sent etc... 

Regardless of the reason, there must be a log somewhere that shows what specifically and exactly resulted in this error:Failure sending mail: An error has occurred during report processing.Mail will not be resent

Does anyone know where I can find this log and or how to enable logging such that the log will show me the reason this failure occured?

SSRS Top Max Values

$
0
0

Hi,

How can we get max values via query

SELECT Top(2) MAX(Value) from table

the above query is not supported in SSRS

Could you please share which could be the suitable way to obtain maximum 2 values via select query in dataset/tablix

Set report variable in subreport, show variable value in report header

$
0
0

I have a report which has a subreport. This subreport shows all the ideas in a project, but shows only one idea per page. I created a report variable, CurrentIdeaName, and want to set this variable's value as each idea becomes visible in it's page.  Then I want to reference this variable in the report's header so I can use the Idea's number and name in the page title.

I created the report variable "CurrentIdeaName".

Then I created a code function:

Public Function SetIdeaName(ideaNumber as Integer, ideaName As String, val as Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.Variable) val.Value = "#" & ideaNumber & ": " & ideaName Return val.Value

End Function

The only way I can think of calling this function to set the variable's value is in a a textbox in the subreport.  So I set the textbox value to this expression:

=Code.SetIdeaName(Fields!Id_Number.Value, Fields!Id_Name.Value, Variables!CurrentIdeaName.Value)

Then in a textbox in the report header I set it's value to this expression:

=Variables!CurrentIdeaName.Value

When I run the report the textbox in the header is empty and the textbox in the subreport says "#Error".

As a test, I changed the code to this:

Public Function SetIdeaName(ideaNumber as Integer, ideaName As String, val as Microsoft.ReportingServices.ReportProcessing.OnDemandReportObjectModel.Variable)

val.Value =ideaName
Return ideaName
End Function
but the subreport textbox still shows "#Error", so obviously what I'm doing is flawed.

How can I make this work?

Thank you.

 

SSRS Tablix Format after deployment

$
0
0

Hi,

I have deployed a report on report server.

When i preview my report on report builder 3.0 it displays in accurate formatting.

Please refer the following snapshot:

AAs per the above image all columns are having same number of records but at the end the sizing and formatting has been tremendously changed.

Please help!

how can we do the proper formatting

SQL Server Mobile Report Builder: Titles are showing in design and preview but are missing from production

$
0
0

Using SQL Server Mobile Report Builder with number gauges.  

The titles started not to show in production even though they still show up in design and preview.

I tried setting the number format to currency and deploying to make sure I'm pushing to the right place and verified that.

When we initially launch many months ago, I don't remember us having this problem but now we have it and am wondering what is the fix to the problem.  Thanks in advance for your help.


Eric

How to give user defined url to SSRS instead of default

$
0
0

Dear,

I am trying to give a user defined url for ssrs reports.

like http://abc.com/reports instead of http://servername/reports. 

Added host entry in the drivers/etc file and url is resolving to the server ip

added this url in report url selecting hostname and providing the (url) abc.com.

After doing this, when try to access the url, keep on asking the credentials even after entering the correct credentials.

Br,

Shams

SSRS 2017 Performance/Unhandled Exception

$
0
0

I'm trying to fix a problem where we are getting high rendering times from SSRS 2017 at different points in the day.

Around the same time that we are experiencing rendering problems, not always - but often, I've found an event like this in the event log, and I was wondering if I could get some help interpreting what it is and solving it:

(I'm going to anonymise some server names, report names, etc, because - business - they'll be in <BRACKETS>).

The description for Event ID 1309 from source ASP.NET 4.0.30319.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

3005
An unhandled exception has occurred.
25/10/2018 4:54:04 PM
25/10/2018 5:54:04 AM
8109a934d3b74a23b191dde17ae0fb6d
74716
1
0
ReportServer_SSRS_0-55-131849016722735006
RosettaSrv
/ReportServer
C:\Program Files\Microsoft SQL Server Reporting Services\SSRS\ReportServer\
PRO-SSRS-01
4000
ReportingServicesService.exe
<CORPDOMAIN\SERVICE_USER>
COMException
This network connection does not exist. (Exception from HRESULT: 0x800708CA)
   at Microsoft.ReportingServices.HostingInterfaces.IRsHttpPipeline.GetAuthType()
   at ReportingServicesHttpRuntime.RsWorkerRequest.GetUserToken()


http://<HOST>/ReportServer/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=14.0.600.744&Name=Microsoft.Reporting.WebForms.Icons.SplitterHorizCollapseHover.png
/ReportServer/Reserved.ReportViewerWebControl.axd
172.17.6.115
False
<CORPDOMAIN\SERVICE_USER>
22
<CORPDOMAIN\SERVICE_USER>
False
   at Microsoft.ReportingServices.HostingInterfaces.IRsHttpPipeline.GetAuthType()
   at ReportingServicesHttpRuntime.RsWorkerRequest.GetUserToken()


SSRS Arrays in Custom Code

$
0
0

How can we return all the elements of array in custom code:

Below is the custom code which i am using:

Public Function Test_Array() As String
Dim Parafin_Tag(24) As String
Dim i As Integer
if i<24 then
i=i+1
end if
 Parafin_Tag(0) = "VIL_CP_PRFN_WT_R209A"
    Parafin_Tag(1) = "VIL_CP_PRFN_WT_R209B"
    Parafin_Tag(2) = "VIL_CP_PRFN_WT_R209C"
    Parafin_Tag(3) = "VIL_CP_PRFN_WT_R209D"
    Parafin_Tag(4) = "VIL_CP_PRFN_WT_R209E"
    Parafin_Tag(5) = "VIL_CP_PRFN_WT_R209F"
    Parafin_Tag(6) = "VIL_CP_PRFN_WT_R209G"
    Parafin_Tag(7) = "VIL_CP_PRFN_WT_R209H"
    Parafin_Tag(8) = "VIL_CP_PRFN_WT_R209J"
    Parafin_Tag(9) = "VIL_CP_PRFN_WT_R209K"
    Parafin_Tag(10) = "VIL_CP_PRFN_WT_R209L"
    Parafin_Tag(11) = "VIL_CP_PRFN_WT_R209M"
    Parafin_Tag(12) = "VIL_CP_PRFN_WT_R209A1"
    Parafin_Tag(13) = "VIL_CP_PRFN_WT_R209B1"
    Parafin_Tag(14) = "VIL_CP_PRFN_WT_R209C1"
    Parafin_Tag(15) = "VIL_CP_PRFN_WT_R209D1"
    Parafin_Tag(16) = "VIL_CP_PRFN_WT_R209E1"
    Parafin_Tag(17) = "VIL_CP_PRFN_WT_R209F1"
    Parafin_Tag(18) = "VIL_CP_PRFN_WT_R209G1"
    Parafin_Tag(19) = "VIL_CP_PRFN_WT_R209H1"
    Parafin_Tag(20) = "VIL_CP_PRFN_WT_R209J1"
    Parafin_Tag(21) = "VIL_CP_PRFN_WT_R209K1"
    Parafin_Tag(22) = "VIL_CP_PRFN_WT_R209L1"
    Parafin_Tag(23) = "VIL_CP_PRFN_WT_R209M1"
    Return Parafin_Tag(i)
End Function

Could you please correct me if i am wrong?

Sql server reporting service getting crashed

$
0
0

We have SQL server reporting service running on windows server 2008 environment. The service gets crashed from a week, though the service shows started state the ssrs url wont be avaialble

We tried the below fix.

   1. Click Start, click Run, type regedit, and then click OK.
    2. Locate and then click the following registry subkey:
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
    3. Right-click Control, point to New, and then click DWORD Value.
    4. In the New Value #1 box, type ServicesPipeTimeout, and then press ENTER.
    5. Right-click ServicesPipeTimeout, and then click Modify.
    6. Click Decimal, type the number of milliseconds that you want to wait until the service times out, and then click OK.

after that service gets restarted in every couple of minutes. We haven't added any new patches (before the issue) the SQL crash dump shows the garbage collection gets timeout.

SSRS Repeating an Image used as a border on each page of Report

$
0
0

I have an image which is molded (Round shaped) from the edges and client requires the border of the report as it is, so i used a rectangle and embed the image into rectangle (It is working fine for one page static report) but now i am having issue if the report increases from one page. How to repeat this rectangle on all the  report pages or else some other method to use this image as border in report as shown in the image attached.


How to deal with this join conundrum?

$
0
0

I've been struggling with this query a while.

I want to bring Casey back, despite not having any data in table 1. A score of NA would be fine.


Table A

Score                    Name                       ClassID

   1                         Steve                           7

   3                         John                             5  

   9                         Bob                              7 

Table B

 Name                       ClassID

 Steve                            7

  John                            5

 Casey                           7


Select * from TableA a
LEFT JOIN TableB b where a.ID = b.ID


Results

Score                    Name                       ClassID

1                            Steve                           7

9                            Steve                           7

3                             John                           5

1                            Casey                           7

9                            Casey                           7

1                             Bob                             7

9                             Bob                             7 

I understand why I'm getting the results, because that's a many-many join. I've also tried joining by Name. Everything looks fine, but then Casey gets left out.

Select * from TableA a
LEFT JOIN TableB b where a.ID = b.ID and a.Name = b.Name


Is there anything I can do? Thanks.



Month name in russian

$
0
0

Hi everybody.

I want to show month name in report in russian. I used expression: "=MonthName(Month(Parameters!date.Value))" and changed "Language" parameter at "Localization" to "ru-RU". However, I still get month name in English.

What did I do wrong? Or how to fix it?

Regards,

Yerkhan

Customised interval in horizontal axis.

$
0
0

Hello All,

I have a report where I see a bar for every week Thursday + Today if someone running the report on any other day then Thursday.

User want to see "Today" as axis name when required. I need to keep the same interval for dates but also need to see text "Today" always if a bar exist.

Please help.


Best Regards, Pragati



Is it safe to create new .RDLC report as a copy of existing .RDLC report?

$
0
0

Is it safe to create new .RDLC report as a copy of existing .RDLC report?

When I say "copy" I mean file copy/paste.

The reason I ask is that when you open .RDLC report as text you will see that it contains something that looks like unique report ID at the end of the file:

  <rd:ReportID>34154e6a-cb1b-483e-aa89-07fd8b77e73e</rd:ReportID>

So the concern is if I just copy the file it will have the same ReportID and I am not sure if it can present a potential problem.


Place different tables at different sheets

$
0
0

Hi everyone,

I'm designing reports in SSRS in two languages: russian and english. How can I put two identical tables in one report, but show only one them, based on language selection? 

Also, I want to place them in different sheets during export to Excel. I've searched for solutions, I get only when I use group and place different group at different sheet. How it can be done?

Regards,

Yerkhan

I loose data when I implement Recursive Parent approach

$
0
0

Hi

I am designing a report where I need to maintain parent child hierarchy. When I use recursive parent approach, I get correct display of data but I loose the data in column 3 and column 4. Only top rows are picked up.

This is the way(as in pic) I want to show my data. When I use Recursive parent approach I get data in this format but I can get only top row of data when grouping is done.

For Column 3 and Column 4 Employee1 will show only

Employee1                30,000           Text1        1. minimal expectations

Employee2                50,000            Text1       

and so on.

Once I group By EmployeeID and Recursive to parentEmployeeID level display just ignore rest of the rows for one empoyee.

Thanks!

Thanks!


Reports not being rendered properly from web farm

$
0
0

We have a web farm running on Microsoft's WebFarm Framwork where the reports are not rendered properly.  When we run from a standalone web server the reports are fine.  Is there a special configuration for them to run from the web farm?  I have included the outline of the infrastructure and links to the reports so you can see the results.

Web Farm 

Servers (1 gateway, 4 content)

  • OS - Windows Server 2012
  • IIS - Version 8

Configuration

  • Shared Content
  • Shared Config
  • Centralized SSL

SSRS Servers

  • OS - Windows Server 2012
  • SQL Server Reporting Services 2017

Url to test server: https://reports.efc-test.com/displayreport.aspx?id=C3ADC3B9C3B5C3B3C3A5C3B2C2BDC2B8C2B0C2B0C2B0C2B0C2B0C2B1C2B8C2ADC2B1C2B2C2B4C2B6C2B8C2B1C2B5C2B2C2B1C2B5C2A6C3A3C3B5C3B3C3B4C3AFC3ADC3A5C3B2C3A9C3A4C2BDC2B1C2B0C2B1C2B5C2A6C3B3C3A5C3ACC3A5C3A3C3B4C3A5C3A4C3B5C3B3C3A5C3B2C2BDC2A6C3B0C3A1C3B2C3ADC3B3C2BDC3B2C3B0C3B4C3A9C3A4C2A5C2B3C3A4C2B1C2A5C2B2C2B6C3A7C3B2C3AFC3B5C3B0C3A9C3A4C2A5C2B3C3A4C2ADC2B1C2A6C3B3C3B1C3ACC3B2C3A5C3B0C3AFC3B2C3B4C3B3C3ACC3AFC3A3C3A1C3B4C3A9C3AFC3AEC2BDC2A5C2B2C3A6C3A5C386C381C381C383C394C393C391C38CC392C3A5C3B0C3AFC3B2C3B4C3B3C2A5C2B2C3A6C2A6C3A4C3A9C3B3C3B0C3ACC3A1C3B9C3A4C3A1C3B4C3A5C3B3C2BDC2B8C2A5C2B2C3A6C2B2C2B0C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A5C2B7C3A3C2B9C2A5C2B2C3A6C2B1C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A6C3A5C3A6C3A4C3A2C3AEC3A1C3ADC3A5C2BDC2B1C2B0C2B1C2B5C39FC383C38FC38AC382C38EC38BC395C397C390C381C388C38AC386C39FC3A5C386C381C381C383C394

Url to web farm: https://efaactcentral.com/displayreport.aspx?id=C3ADC3B9C3B5C3B3C3A5C3B2C2BDC2B8C2B0C2B0C2B0C2B0C2B0C2B1C2B8C2ADC2B1C2B2C2B4C2B6C2B8C2B1C2B5C2B2C2B1C2B5C2A6C3A3C3B5C3B3C3B4C3AFC3ADC3A5C3B2C3A9C3A4C2BDC2B1C2B0C2B1C2B5C2A6C3B3C3A5C3ACC3A5C3A3C3B4C3A5C3A4C3B5C3B3C3A5C3B2C2BDC2A6C3B0C3A1C3B2C3ADC3B3C2BDC3B2C3B0C3B4C3A9C3A4C2A5C2B3C3A4C2B1C2A5C2B2C2B6C3A7C3B2C3AFC3B5C3B0C3A9C3A4C2A5C2B3C3A4C2ADC2B1C2A6C3B3C3B1C3ACC3B2C3A5C3B0C3AFC3B2C3B4C3B3C3ACC3AFC3A3C3A1C3B4C3A9C3AFC3AEC2BDC2A5C2B2C3A6C3A5C386C381C381C383C394C393C391C38CC392C3A5C3B0C3AFC3B2C3B4C3B3C2A5C2B2C3A6C2A6C3A4C3A9C3B3C3B0C3ACC3A1C3B9C3A4C3A1C3B4C3A5C3B3C2BDC2B8C2A5C2B2C3A6C2B2C2B0C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A5C2B7C3A3C2B9C2A5C2B2C3A6C2B1C2A5C2B2C3A6C2B2C2B0C2B1C2B8C2A6C3A5C3A6C3A4C3A2C3AEC3A1C3ADC3A5C2BDC2B1C2B0C2B1C2B5C39FC383C38FC38AC382C38EC38BC395C397C390C381C388C38AC386C39FC3A5C386C381C381C383C394

How to create a subscription for the main report which contains subreports in it in ssrs

$
0
0

Hi I have an report which contains the reports body having 3 Table data regions.

and I have an Reportdetials table

ReportIDReportCodeReportName
11A
22B
33C

here " ReportName"  is the report parameter contains these three A,B,C report in the parameter drop down selection

and the Month and Year parameter follows this report

I will create a subscription for 3 reports and repective month and year parameter in the report , I need an single export in excel contains these three subreports 

sheet1 : A report ,Sheet 2 :B report ,and Sheet 3 : C report I need like this my report export in excel

for the respective month and year parameter selection 

how do I create this kind of subscription in ssrs.


subscription

$
0
0

hello,
How is it possible to have a SSRS subscription to execute a report so that it gets run manually?
For example, Report1 is scheduled to be run daily at 9 am.
Instead of this to be run daily at 9 am automatically, I would like to manually execute the subscription because I am doing a check. This manual execution of the subscription runs fine using the subscriptionID... but I do NOT want to have the report to run daily at 9 am automatically also.
How do I get the subscription deleted?
Thank you


Viewing all 28687 articles
Browse latest View live


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