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

add SSRS SharePoint Integrated Mode to an existing SQL Server cluster

$
0
0

Hi,

I am running two node active passive SQL Server Cluster. SQL Cluster is being used for SharePoint. Now i need to install and configure Reporting Services SharePoint Integrated Mode. 

Please guide me steps to install and configured.

Thanks.


iffi


CAN or MUST be: Report Builder and Report Viewer in SCOM 2016 Deployment?

[BC30201] Expression expected error and Custom parameter layout was removed from the report. warning

$
0
0

I am using a stored procedure for a report

 

alter PROCEDURE [dbo].[Test1]@DateBegin Date 

, @DateEnd Date
--, @DateActivity Date
, @EProfileID nvarchar(50) 
AS
BEGIN
SET NOCOUNT ON;
SELECT EProfileID
, TopicDesignator
, MIN(FORMAT(ActivityDate, 'd', 'en-us'))AS FirstDate
, MAX(FORMAT(ActivityDate, 'd', 'en-us'))AS LastDate
,  MAX(FORMAT((@DateBegin), 'd', 'en-us')  + ' - '+  FORMAT((@DateEnd), 'd', 'en-us'))  AS DateRange
, SUM(ContactHours)AS TotalHours
FROM OVID.OVID.vwCPEActivityDataBase
WHERE ActivityDate between @DateBegin 
 AND    @DateEnd
AND EProfileID = @EProfileID
GROUP BY  EProfileID
, TopicDesignator
ORDER BY  TopicDesignator

END --Create Procedure

GO

The stored proc runs without error, but the report will not build, with the error

SeverityCodeDescriptionProjectFileLine
Error[rsCompilerErrorInExpression] The Value expression for the textrun ‘DateRange.Paragraphs[0].TextRuns[0]’ contains an error: [BC30201] Expression expected.

The report is being built in SSDT 2016, but compiling to conform to 2012

I am also getting a warning

SeverityCodeDescriptionProjectFileLine
WarningCustom parameter layout was removed from the report. SQL Server 2014 Reporting Services and earlier do not support custom parameter layout.

which is completely bewildering


Sandy Shin

Issue MS Report Builder running Oracle Stored procedure

$
0
0

Hello,

I'm facing a very strange issue which popped up suddenly with a customer I'm working with. The customer is using MS REPORT BUILDER 3.0 to run an RDL report file for the last 2 years, the reporting tool connects to Oracle through oracle client. Suddenly the customer is not able to run the report even though :

1-the connection test is successful so I don't think I have a connection issue

2-the procedures are running fine from the Oracle DB Side so there is no errors in the store procedures themselves 

when they click run report  they get the error: 

---------------

internal .net framework data provider error 30.

query execution failed for dataset "DataSet1"

an error has occurred during report processing 

an error occurred during local report processing .

------------

when i try to play around with the dataset query , I get the error in the screenshot attached which I believe is more detailed. 

I've tried to reinstall MS Report builder and .NET Framework didn't help .

hope someone can help me with this. thanks 

error

Limiting non-admins to only their row

$
0
0

I have a dashboard for doctors. It will show results for one doctor at a time. If the user viewing the report is an admin, I want to allow that user to select which doctor he or she wants to view. If the user is an ordinary user, that user can see only his or her results.

This is the approach that I am considering.  I have two tables:  Users and Doctors. 

The key of the Users table is the Active Directory login for the users who have access to the report.  There is a column called DashboardRole.  If A is in the DashboardRole column then the user is an admin.  I have a derived column IsAdmin which basically is:  CASE WHEN DashboardRole like '%A%' then 1 else 0 end as IsAdmin.  In addition, the Users table has a DefaultDoctor column that is a foreign key to the pk of the Doctor table

I am putting both tables into Shared Datasets and am considering caching each of the datasets.

I added a filter in my report on the Users dataset, where Fields!UserName.Value =User!UserID

That should return either one or no rows.

Next I have two internal parameters:  IsAdmin and DefaultDoctor which have as defaults the values from the Users dataset.  These can either be empty or they can have a value.

Finally, I have the following filter on my Doctors dataset: =Parameters!IsAdmin.Value = 1 ORELSE Fields!DoctorKey.Value = Parameters!DefaultDoctor.Value

I have a Doctor parameter.  It has available values from the Doctors dataset. It gets its default value from the Users dataset.

Here are my three key scenarios for the Doctor parameter:

User is admin:

The Available values for Doctor is a list of all Doctors.  The default Doctor is the DefaultDoctor in the user table.

User is not admin

The Available values for Doctor is just the DefaultDoctor associated with that user.  The Doctor parameter has the value of the DefaultDoctor.

User is not in system
There are no available values for Doctor and no default.  The user does not have access to any of the data.

My question:  What are the holes in this proposed approach?  Can you think of a way around this security?  Outside of changing my base tables, can I change the data in the shared datasets somehow, without being an elevated SQL User?


Russel Loski, MCSE Data Platform/Business Intelligence Twitter: @sqlmovers; blog: www.sqlmovers.com

Formatting help

$
0
0

SSRS 2008R2.

I have a vendor performance report showing purchases by line over a given date.

I would like to add headings above the data rows instead of the top of the report and in the footer I would like to count total number of lines and total number of late lines.

SSRS Query Designer MDX Operator Filter Expression

$
0
0

Hey Everyone,

I have a 2016 SSAS Tabular data model i'm using as a data source for creating datasets, for my SSRS Mobile dashboards. I built my dataset and it comes back with my result set. 

I have 2 questions. I create a calculated Member column that basically says, IF this other column = "Last Invoice Date", put "Last Invoice Date" as the value, otherwise, put a different column's value in, "FiscalMonthLastDay": 

IIF([Invoice Date].[Relative Date].CurrentMember.MEMBER_CAPTION ="Last Invoice Date","Last Invoice Date",[Invoice Date].[FiscalMonthLastDay].CurrentMember.MEMBER_CAPTION)


I don't know much about MDX.. When i drag that new field in, its creating extra rows in my results. I added before & after screen shot (erased some sensitive data). I can't figure out how to get it to not show the extra rows?

Before:

After:


My 2nd question is, i would then like to filter my data set to only where this new calculated member matches another column. So I am doing the MDX operator in the filters section and thought something like this would work, but i can't get it to (its the same formula as above): 


If anyone knows where to get some good examples of how this MDX operator is used, that would be great ! Let me know if i should cross post this in the SSAS forum. 

Thanks ! 




SSRS 2008R2 conditional countrow

$
0
0

I have a report that lists purchases from various vendors. I note Due Date and Received Date. I have a column that prints the word "LATE" when RDate>DDate. How can I count the rows that are late in the footer?

Thanks!



Power BI reports in SQL Server Reporting Services - Viewing in Web Browser

$
0
0

Hi, I am testing the technical preview of Power BI reports in SQL Server Reporting Services and trying to publish to the SSRS server configured during the setup but I cannot save to the reporting server. I keep receiving an error stating 'This URL is not a valid Report Server'. I was able to upload the PBIX file manually to the server via the UI on SSRS but I can't get the reports to open in a web browser. When I click on them, it forces me to open Power BI Desktop. If I use a workstation or server without Power BI Desktop I receive an error about an unknown file type.

So, how do I publish to SSRS via Power BI and how do I open the reports with a Web Browser?

Thank you in advance for your help!!

Jason

SSRS - Issue with Page Break

$
0
0

I have an issue with page break in SSRS 2008, the scenario is:

I have a rectangle with one grid and two textbox inside, and I also have a footer with several fields that I want to show only in the first page. The rectangle with the fields inside are in the first page above the footer.

What I want to do is show the rectangle with the fields inside of it only if the grid has data, and if it has data I want to show the grid in the second page of the report. So the report will have the header and the footer in the first page, and the grid in the second page.

To acomplish that, I set the page break disable expression to only apply the page break if the grid that is inside of it has data, and I set the visibility of the grid to an expression with the same condition. but the thing is that when the grid do not has any data the rectangle and the grid do not appear, but the footer in the first page disappear also.. I tried several approaches but I could not found any solution for that. Can anybody help me with this?

Fixed width report in SSRS

$
0
0

Hi,

Is there a way to create a fixed width report like below.
9999999|   121|  01012017|John        |Doe                  

I've tried canGrow="false" and Width for the text box in the Tablix, nothing helped me. Still the report looks below
9999999|121|01012017|John|Doe 

Thanks in advance


IE 11 expands the page to ridiculous widths when resizing an ASP.NET page with the ReportViewer control

$
0
0

I've found something odd and I'm hoping someone can help me find a workaround. I have an ASP.NET page with the 2016 ReportViewer control on it. At the top of the page, I have:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

The ReportViewer control is set up this way:

<rsweb:ReportViewer ID="StandardReportViewer" runat="server"
	ShowFindControls="false"
	ShowPrintButton="false"
	ShowZoomControl="false"
	ShowRefreshButton="false"

	ProcessingMode="Remote"
	AsyncRendering="true"
	SizeToReportContent="true"
/>

I'm loading reports into the control through the code behind where I set the report server URL, path, params, credentials, etc. Nothing is set there that affects the display of the report.

I'm using SizeToReportContent='True' because the ReportViewer has a bug in it where it sets the control height to 0 if you use a percent (in the previous version, you could set Height="100%" and avoid all this nonsense.) Setting a fixed height doesn't work because it puts double scrollbars on the right, forcing the user to scroll both the report and the page.

The problem I've run into is this: When I open the page in IE 11 or Firefox, the SSRS report loads and everything is fine. However, once the parameters are set and the View Report button is clicked, the page width doubles or triples, which pushes the View Report button a good foot or two off the right side of the window. Even worse, if you resize the window by dragging the window edge, the width of the page increases even more... It's hard to measure, but it looks like the width grows to at least a dozen feet or more.

Chrome doesn't do this. However, we have a huge number of IE users, and although we can suggest they use Chrome, we can't force people to not use IE. Unfortunately, our IE users are also our less sophisticated users, so they often don't see the scrollbar at the bottom of the window. All they see is that the View Report button has disappeared.

Has anyone seen this before, and is there a fix for it?

Thank you!

SSRS 2016 with Always Encrypted

$
0
0
Hello,
‌‌I am attempting to display Always Encrypted columns in cleartext through an SSRS 2016 report.  SQL 2016 is on SP1 CU1, .NET Framework 4.6.2 is installed, and I'm using the latest version of SSDT.  Both the SQL engine and SSRS are on the same server and the Always Encrypted certificate is in that server's certificate store under both Current User - Personal and Local Computer - Personal.  The data source connection for the report is using .Net SqlClient Data Provider with Column Encryption Setting enabled.  I can see the correct cleartext values through the report preview in SSDT but after the report is built and published to SSRS, the report doesn't show any data at all for encrypted columns (the columns are blank for each row).  For the report credentials, I've tried Windows accounts (local admin and sysadmin rights), and SQL accounts (also with sysadmin rights).  From the searching I've done, there is limited information on this setup so far but the few things I've found, including from a MS rep, seem to indicate that this should work.  Has anyone implemented this successfully?  Any general thoughts/suggestions?

Continually prompted for shared data source creds

$
0
0
I have multiple SSRS reports that are utilizing the same shared data source.  The data source is set up to prompt users for creds.  The reason for this is because the database being accessed has views which use these SQL creds for data level security.  When browsing these reports on the Report Portal, I get prompted for every report I hit - even when drilling down from one report to another.  Shouldn't there be a way for the creds to be stored during a report browsing session?  Am I missing something?  Thanks ahead of time for any advice/tips you may have for me.  

SQL 2016 Mobile Report Publisher reports behave properly in "Preview Mode", but return empty charts when viewed in browser.

$
0
0

I have been having a horrible time for weeks now trying to get these dashboards to work properly,  and hope someone can help me identify the root cause of this really weird, report-breaking behavior:

 

  1. I create a single Datasource using SQL login that is successful.


 

 

  1. I create a set of shared datasets using that data source that all work as well.

They all connect to the same SQL Server and usestored procedures with parameters, but each of those parameters have default values specified in the dataset that allow me to preview the data successfully in the report portal's shared dataset interface.

 

  1. I then create multiple dashboards that use these datasets and they work BOTH in PREVIEW mode AND in the BROWSER. -  SUCCESS!  at this point the reports are functioning the way they are supposed to…

 

  1. I then try to make any number of minor changes to an existing functioning report, and it just breaks everything.

 

These changes include:

 

-- Simply changing a chart type from an stacked area chart to a stacked bar chart.

-- Creating a drill-through from one mobile report to another

-- Changing a parameter setting on a drill-through to a mobile report.

 

Once I make the change and save the report, the reportCONTINUES TO FUNCTION IN PREVIEW MODE:

 


 

But with the identical parameters being sent to the datasets, that same report returns the following when viewed in a browser:

 


 

It is behaving in the browser as if there are simply no results for the dataset, but there areor else it would not be working in preview mode.

 

What's worse is that it cannot be fixed simply by backing out the change.

Setting the chart type back to what it originally was, or removing the drill-through completely from the mobile report does not correct the "empty set" behavior illustrated above.

 

The only thing that can fix it is to upload the latest backed-up functioning version of the report and try again, hoping it doesn't break again (because the behavior does not seem to be consistent.  Sometimes it will break…sometimes it will work at which time I will immediately save a new local backup copy).  

 

Additionally, in the case of this behavior occurring due to adding a drill-through: I have found that AN ENTIRE SET OF LINKED DASHBOARDS can be broken in the manner described above just by changing ONE of the reports.

 

This has been something I have been trying to work-around for WEEKS now, thinking it had something possibly to do with a bad installation, non-optimal OS, bad SSRS configuration, etc.  

 

But we have had this occur now across multiple hardware configurations, two different operating systems, every conceivable authentication option available in SSRS and I am out of ideas of what to try.  I have already scrapped and rebuilt from scratch dozens of reports trying to workaround this issue.

 

I can verify there are NO filters in place on any of the datasets.

The browser returns no errors.

The SSRS Log returns no errors.

 

It behaves as if it is working just fine…except for the part where it displays nothing on the screen but a bunch of empty chart placeholders.


Migrating RDL files from SQL Server 2008 R2 to SQL Server 2016

$
0
0

Hi

I am planning to migrate about 400 RDL files from SQL 2008 R2 Reporting Services to SQL Server 2016 Reporting Services. Both environments are configured as SharePoint Integrated mode  I intend using RS.exe to perform the migration. However, I am not sure if the RS.exe scripts can be made to updates the schema of the RDL files during the migration? Does anyone have any experience upgrading SSRS reports schema from 2008 R2 to 2016?

Cheers

Rick


Rick Rofe

SSRS 2016 Web Portal: Hide Menu Options from regular users

$
0
0

Hello,

I am in the process of implementing an SSRS 2016 solution across my environment, but before I can do that I need to "lock down" what users see when they click on a folder and a report.  

Is there a way to control or customize the popup menu that appears when they click on the ellipsis of a report ?

Right now they can see "Add to Favorites", "Open" and "Manage".  The "Manage" selection opens more options: Properties, Parameters, and History Snapshots.  

I need them to ONLY see "Add to Favorite" and "History" when they click on the ellipsis.

Regular users have been assigned the "View Report" role at the report level and "View Folder" role and the folder level.

See screenshot attached... I would really appreciate your feedback.

Thanks-
LVF

In SSRS Report's using MDX Quary's how to handle Between operator,i want to get data b/w the fromdate and todate parameter but it is not working,how to slove?

$
0
0
Working Only matching dates (EX:select "26/11/2016" showing data,if we select "27/11/2016" or "25/11/2016" not showing data 

SELECT NON EMPTY { [Measures].[LeadCount] } ON COLUMNS, NON EMPTY { ([DimAccount].[Industry].[Industry].ALLMEMBERS * [DimAccount].[CreatedDate].[CreatedDate].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_VALUE, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( STRTOMEMBER(@FromDimAccountCreatedDate) : STRTOMEMBER(@ToDimAccountCreatedDate) ) ON COLUMNS FROM [ClientCursor]) 

HTML5 rendering extension in SQL2016 SP1 not available via SOAP API (ReportExecution2005.asmx)

$
0
0

Hello,

Reporting Services support a new HTML5 rendering extension since SQL Server 2016 SP1.

The extension is listed correctly in rsreportserver.config (as it is by default). When calling  reportExecutionService.ListRenderingExtensions() the HTML5 extension is not contained within the list. When using "HTML5" in the format parameter of reportExecutionService.Render() an exception is thrown stating the extension does not exists.

The same when directly accessing it by an URL http://localhost/ReportServer_SQLEXPRESS?/MyReport&rs:Command=Render&rs:Format=HTML5&rc:Toolbar=False&rc:HtmlFragment=True

an error message is returned (rsRenderingExtensionNotFound).

The weird thing is that http://localhost/ReportServer_SQLEXPRESS/Pages/ReportViewer.aspx?/MyReport&rs:Format=HTML5 works. But i guess that the ReportViewer.aspx changes something internally.

Does anyone have an idea why this is so or if there is a way to get HTML5 output.

Return all rows from SharePoint Dataset matching MultiValue Parameter

$
0
0

Hi,

I have a need I can't figure out how to do simply. I am reporting against SharePoint 2013 and need to return any values from a SharePoint multivalue field that match an SSRS multivalue parameter.

For example:

In SharePoint the multivalue Field is Country.

In SSRS, the multivalue parameter is the same. We would like this to return all SharePoint rows where /any/ of the countries are from the multivalue parameter match any of the SharePoint entries. For example, if a user selects UK and US in the parameter, it would return:

Row 1, US, UK

Row 2, UK

Row 3, US

Row 4, UK, US, Germany

Any suggestions? I've tried everything I can think of to no effect. I can get this individually by various methods (contains, InStr, etc) but can't figure out a way to compare all values.

Viewing all 28687 articles
Browse latest View live


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