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

Swapping Total columns in SSRS report

$
0
0

Hi all,

I am trying achieve my desired result as follow in SSRS rdl report. However, I can't get the grouping correctly and the nearest I can get is still not okay (misalignment of the table) I was putting tablix inside matrix table to get the SUM Total Column. Do you have any idea how can I achieve it correctly?

My requirement is almost same with him :https://community.dynamics.com/crm/f/117/t/161546





Line height or line spacing in SQL Reporting Services 2008 R2 when using SQL Server Business Intelligence Development Studio

$
0
0
I have tried various places and options to set the line-height field in a (sub) report.
Nothing I do seems to change my preview.
I use textboxes in a rectangle on a body.

I want an Arial 10pt font to have a standard settiing of 14 pt.

When exporting to Word or pdf also no luck.
Can somebody please assist?

Rebuild Model in SQL 2016 SSRS

$
0
0

I have some clients who had report models and now have upgraded to SQL2016.  This still all works but all of the options such as Regenerate/Rebuild the report model are gone. Supposedly you can now do this via an API but I've searched the web without any success on how to do this.

The clients have added new columns in their DB's and of course these new columns would not be accessible via the model. Yes we need them to move away from this legacy tech and move towards SQL statements (which I much prefer). 

Thanks 

SSRS Sub reporting

$
0
0

Hi,

I have created 5 sub reports.

how can i assign those to a single page means

one sub report on one single page?

SSRS Column wise totals

$
0
0

Hi ,

I am having two datasets in my report.

I am accessing one column from the other dataset in the main tablix of the report via lookup function which works completely fine.

Now,I want to view the total sum of the column values which i have populated in the main dataset.

When i try to add insert total it shows me disabled?

how can we achieve it?

a deployment problem - visual studio

$
0
0

Hi,

Today in the morning I have created an empty report. I added a text box to it, it shows "test" using an expression (="test") and I added a reference to a sample dll. It works in VS, I can upload the report from SSRS (2016) using upload button but not from visual studio. During the deployment I always get en error. Anyone came across anything similar?

Error:The definition of the report '\Report1.rdl' is invalid.

VS2017 version: 15.8.2

SSDT version: 15.7.1

SSRS version: 13.0.4522.0

The sample library content:

using System;
using System.Text.RegularExpressions;
using System.Net;

namespace ssrsLibraries
{
    public class rmfSSRS
    {
        // function search for given string in youtube and returns
        // requires assert permission
        public static string getFirstLink(string searchedStr)
        {
            string loadedPage = string.Empty;
            try
            {
                // regex for searching youtube results
                Regex youtubeRegex = new Regex(@"https://www\.youtube\.com/*");

                // require access to web
                var youtubePerm = new WebPermission(NetworkAccess.Connect, youtubeRegex);
                youtubePerm.Demand();

                // search and download the result
                WebClient myWebClient = new WebClient();
                var searchURL = "https://www.youtube.com/results?search_query=" + searchedStr;
                loadedPage = myWebClient.DownloadString(searchURL);

                // return first result i exists
                Regex firstLinkRegex = new Regex("(?<=(href=\"))/watch[?].*?(?=\")");
                Match m = firstLinkRegex.Match(loadedPage);
                if (m.Success)
                    return "https://www.youtube.com" + m.Value;
                else
                    return "https://www.youtube.com";
            }
            catch (SystemException e)
            {
                // i error return youtube homepage
                return e.Message;
            }

        }
    }
}

Best,

Rafael


Rafal


Make parameters accept blanks

$
0
0

Hello -

For some reason, I cannot get my parameters to accept blank values.  I have the box checked to accept nothing and I still get the messages that come up and require a value to be supplied in the drop down.  How annoying!  

Any help will be greatly appreciated.

Thanks!

Juniormint

Intermittent mail sending failure - net_io_connectionclosed

$
0
0

I am using:
SQL Server 2012 (Service Pack 2 - Business Intelligence Edition)  11.0.5058
.Net Version 4.5.1 (378675)
Windows Server 2012 R2 Standard
Exchange Server 2010 R2 (Hosted on a seperate server)

I am getting the following error in the Reporting Services log intermittently for reports:

emailextension!WindowsService_15!7cc0!10/16/2014-06:05:33:: e ERROR: Error sending email. Exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
notification!WindowsService_15!7cc0!10/16/2014-06:05:33:: i INFO: Notification d4b91fc4-0cc5-464a-a927-af8c24e4fcc8 completed.  Success: True, Status: Failure sending mail: Failure sending mail., DeliveryExtension: Report Server Email, Report: Missed NDD Despatch, Attempt 0


They try to send the mail via an exchange server that is hosted on a separate server, the report server email is set up as:

<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
                <MaxRetries>3</MaxRetries>
                <SecondsBeforeRetry>900</SecondsBeforeRetry>
                <Configuration>
                    <RSEmailDPConfiguration>
                        <SMTPServer>****.****.****</SMTPServer>
                        <SMTPServerPort>
                        </SMTPServerPort>
                        <SMTPAccountName>
                        </SMTPAccountName>
                        <SMTPConnectionTimeout>
                        </SMTPConnectionTimeout>
                        <SMTPServerPickupDirectory>
                        </SMTPServerPickupDirectory>
                        <SMTPUseSSL>
                        </SMTPUseSSL>
                        <SendUsing>2</SendUsing>
                        <SMTPAuthenticate>
                        </SMTPAuthenticate>
                        <From>****.****@****.****</From>
                        <EmbeddedRenderFormats>
                            <RenderingExtension>MHTML</RenderingExtension>
                        </EmbeddedRenderFormats>
                        <PrivilegedUserRenderFormats>
                        </PrivilegedUserRenderFormats>
                        <ExcludedRenderFormats>
                            <RenderingExtension>HTMLOWC</RenderingExtension>
                            <RenderingExtension>NULL</RenderingExtension>
                            <RenderingExtension>RGDI</RenderingExtension>
                        </ExcludedRenderFormats>
                        <SendEmailToUserAlias>True</SendEmailToUserAlias>
                        <DefaultHostName>
                        </DefaultHostName>
                        <PermittedHosts>
                        </PermittedHosts>
                    </RSEmailDPConfiguration>
                </Configuration>
            </Extension>

I have starred out some details for anonymity. I have other servers with a matching configuration file as above (although on a 2008 version of SSRS) that never have this problem.

The issue is intermittent and doesn't affect one specific report and on some occasions the retries work however quite often they don't work at all. I have had the network guys here monitor the port to see if the mail is even leaving the server and apparently the failed attempts do not register any data in wire shark. I don't believe this to be a size issue with the reports as they aren't supposed to deviate much.

Any help would be much appreciated.

Dave T


Adding date to filename in report subscription

$
0
0

My company sends reports on a daily basis to our customers. Now I want to save all the sent reports on disc with the date in the filename. I have set up a subscription which daily saves the files where I want them. However, I haven't  found a way to add the date easily. I already have a parameter when creating the report, it is called Date. Does anybody know if I can use a parameter or something else?

 

Thank's

SSRS Report Re usabilty

$
0
0

Hi,

How can  we re-use the reports in SSRS

Suppose I am having two users and both have a report with the same content/data but the columns or tablix increase/decrease in any of them.In this case, do we need  to create a new report from scratch or is there any other way to reuse the already created report?

Also,

I have created a report consisting of 10 columns in one tablix. Suppose, if one of my user wants to view only 8 columns how can i handle this within a report?Do i need to create a separate report for individual user?

Please suggest a best suitable solution to handle such situations while dealing with the SSRS reports

Thanks in advance!

Regarding calculating percentages in SSRS

$
0
0

Hi Everyone,

I am looking for a way to calculate percentages of an inner row group in SSRS. I have also a column group which is a year .

The issue is when I use the inner row group as the dataset scope, it finds percentages but counts data of all the years in the denominator pertaining to the inner group instead of just counting data pertaining to the inner group for each year  separately.

=Count(Fields!X.Value) /Count(Fields!X.Value,"InnerGroup").

I am looking for a way to drill down to calculate the count of the inner group within each year where year is also a column group.

The issue here is because I am having an inner row group as wells a column group. Is there a way to calculate the percentages?

A solution to this will be greatly appreciated.Thanks!


Write multiple IIF statements in SSRS Expresion

$
0
0

I want to write multiple IIF statements in an Expression ,i tried this one but i got the error 

=IIF(Fields!faulttype.Value Like "Coolant" and countdistinct(Fields!fault.Value) =1 ,
       Fields!lastdate.Value  ,
            IIF(Fields!faulttype.Value Like "Coolant" and countdistinct(Fields!fault.Value) =2 , Max(Fields!lastdate.Value)," ")))

Error 

The Value expression for the textrun ‘lastdate.Paragraphs[0].TextRuns[0]’ contains an error: [BC30205] End of statement expected.

Can anyone help me on this ----------------------------



SQL Reporting Services Page Numbering

$
0
0
Dear All,

I am facing a problem to give page numbering in to my Report of Sql Reporting services. Normaly My report Comes with Page number correctly with the Lanscape mode in Preview and in ie also. And My report width has nearly 8.5 in so it could be advisable to view and print by and landscape mode of Ms Excel by the user while the time of the user exporting the Reprt. but the page number does not comes correctly according to the Landscape as well as portrite of excel. how could we enable page numbering while exportin the document.
What i do to solve the issue.

Thanks in Advance,
VasanthaPrabakaran.T

SSRS export to PDF - item with the same key has already been added

$
0
0

I have a report with quite a few subreports, but only have an issue with two. In both the Visual Studio IDE and through the Report Server web interface, I get an error. Through the IDE, i get this error: 

An error occurred during local report processing.
An error occurred during rendering of the report.
An error occurred during rendering of the report.
An item with the same key has already been added.

I have confirmed the two reports by toggling them on and off, one by one, until the report exports to PDF. The subreports are embedded into a table and each row group has its visibility toggled by an expression. All expressions work on all other subreports, it's only these two that do not work. What could be causing the error? It's a very straightforward report, no special formatting or non-standard fonts. I don't know how to find the error log (ActivityLog.xml didn't have the details in it) that would help diagnose the issue.

This is on a SQL Server 2014 Reporting Services SP2 CU10. My IDE is Visual Studio Enterprise 2015 Update 3.

SSRS Report Using Stored Procedure

$
0
0

Hi ,

I have created a dynamic report which consist of multiple record wise calculations.

Can i avoid such calculations using a stored procedure? If yes,How can we perform dynamic run time calculations in stored procedure?

How can we create a temporary table using stored procedure and access the same in the SSRS?

Please help!


subreport fails if main report does interactive sorting

$
0
0

I've been reading a lot of posts on this subject. I understand that the issue is due to the fact that the subreport is only rendered once. So after the main report is sorted on another column, the cell with the subreport produces an error.

What I want to know is whether or not this is considered a defect. And if it is a defect, is it fixed in another version?

I am currently running SSRS SQL2008R2 SP2 (20.50.4000.0)


Jo Lee

Direct *Export to excel* button in SSRS report, is possible?

$
0
0

Hello,

Our users want to have a export to excel button in the report. We have only the dev portal, the one comes as default with it, they do not like it. Is this possible to have a *export to excel* control (button) integrated in our report?

Appreciate your reply!

Error Message when trying to open reports on the SCCM 2012 console and IE browser (SQL Server 2008 R2)

$
0
0
I have finally have reporting services up and running. A list of all built-in reports have been populated under Monitoring>Reports but when I click on them I get the results shown in the screen shot attached. Below is the error I get when I try to open any report from my IE browser. I have confirmed SSRS is running on my SQL server. I actually had to start it in order to get the list of reports to populate becasue it was stopped. An error has occurred during report processing. (rsProcessingAborted) Cannot impersonate user for data source 'AutoGen__5C6358F2_4BB6_4a1b_A16E_8D96795D8602_'. (rsErrorImpersonatingUser) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad password Attached Images

Phil Balderos

Size Limit for Dataset Query in Report Designer

$
0
0
I was working on the SSRS Report Designer and was trying to copy and paste a huge SQL query from SQL Management Studio (like I always do) to the dataset window.

This method usually works, but for this extremely long SQL query with nested SELECTs and JOINs, it seems as though the Report Designer dataset query window limits the number of characters including carriage returns I can input in it.

When I paste my SQL query from
SQL Management Studio, it seems to paste only three quarters of the query, and thereafter I am not able to manually key in anything else or even make a line feed in the dataset query window.

Is there a limit to the number of characters I can key in here ? If so, is there any workarounds or configurations I can try ?

Kenny

SSRS 2016 - Mobile Reports - Deployment Issue

$
0
0

I have mobile reports designed, tested and deployed under SSRS 2016 (Development Edition) Report Manager.

When these mobile reports are saved/uploaded to Production environment, the servername or guid of shared dataset ( metadata.xml and sources.xml) are not updating. It is a BIG ISSUE.

How to deploy these mobile reports then?

sources.xml





Viewing all 10045 articles
Browse latest View live


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