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

HiveODBC driver connection with Report Builder(SSRS)

$
0
0

Hi 

I need help for HiveODBC driver connection with Report Builder(SSRS). I have install ODBC driver in my system . ODBC driver successfully connected with Hive  and now i tried in Report Builder (SSRS). But i am not getting  Hive ODBC driver connection name.can you please help me how to connect SSRS with Hive. Please find below attached files.



Thanks In advance


The report server cannot open a connection to the report server database.

$
0
0

Hello,

I am getting this error when connecting to the report server database.  

The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable)

Also in Event Viewer I am receiving 

Event ID 129

the encrypted value for dsn in the rsreportserver.config file cannot be decrypted

Does anyone know how to resolve this?  Running SQL 2008R2.

How to convert number to time format(HH:MM:SS) in ssrs

$
0
0

Hi,

I tried this expression its worked

=Format(DateAdd("s", Fields!MySecondsField.Value, "00:00:00"), "HH:mm:ss")

But my problem is,

I want to calculate the total time,i did like this

got error like #Error

=sum(Format(DateAdd("s", Fields!MySecondsField.Value, "00:00:00"), "HH:mm:ss"))

is it right way?

can any one help me?

Seperate the report pages based on a field

$
0
0

Hi,

I was wondering if anyone could help me with my SSRS\SQL Server Report builder report please? Im trying to seperate the report onto different pages and repeat both tables on all page.

Table 1 shows the customer detail and table 2 shows the product detail relating to table 1

Trim String

$
0
0

 

In my report, i  have a TextBox which retrieve the result from the database.I am using this code :

 

=Fields!Category.Value.ToString().Trim(

" ").TrimEnd(",").TrimStart(",")

 

But i am encountering a problem,wherein,when the value contains '&' (ex. Jog & Hop)

the result became Jog&Hop.

What could be wrong with my trim???

Thanks!!

need help with percentages

$
0
0

Hello All,

I am creating a report where i get  the total count of employees (example :500) , then within the report i need to calculate the percentage of ages of people. Different groups and locations . using tsql i get the count in SSMS and using case statements i can get the percentages, when i used the same sql in SSRS  and when i change the parameters of the age group i am not getting the related values.

when i add the plain sql w/o calculations in ssrs and add a calculated field as count , instead of 500 its showing just one , how can i use over(partition by) in ssrs?

Thanks

SSRS Chart Novice and how can I display the Sales Person associated with sold items over time

$
0
0

So I know I want Days across the X-Axis. And I want the Item Sold Quantity on the Y-Axis. And the items then as each column bar. What I'd really like are the Sales Person then associated with those items sold over time then. Would this entail like a separate Dataset then for each Sales Person? Or if I have my aggregate counts...like...

SalesPersonName | Item | DateSold | Quantity

Can I somehow group by SalesPersonName and provide multiple Column Bar-Charts by Each Sales Person and their sold items over the month and each day in the month?

I am brand new to Charts in SSRS having never used it before. I have done plenty of Tablix Reports...this is my first hack at a Column Bar-Chart.

Any help and guidance would be GREATLY appreciated and if there are any good YouTubes or educational web sites that may help me, please let me know.

Thanks in advance for your help and guidance.

How can I use a variable for a Operator?

$
0
0

Maybe this is impossible but I would like to be able to set the Operator (=, >=, <=) using a variable.

such as 

Where DATEDIFF(Year,ShipDate.ShipDate00,GETDATE()) @Operator @AgeInYears

Where @Operator could be = and AgeInYears could be 5

Like I said could be impossible. 


SSRS previous

$
0
0

I'm trying to calculate the date difference from one row to the next but I would like to group it according to its unique key but its not keeping it within the unique key group.  

Eg. =iif(previous(Fields!action_date.Value) is nothing, nothing, datediff(“d”,previous(Fields!action_date.Value),  Fields!action_date.Value))

it works well for items with the unique key group but if that row is below another record group it will pull values from the date value prior to it.  

 

Error in report

$
0
0

Hi,

I made a fresh installation of VS2012 and SSRS tools and connected it with my TFS, but I'm facing a problem with a report (.RDL)

When I try to preview it it prompts me this error:

Error while loading code module: 'UtilsFunctions, Version=1.0.0.0,.... 

Details: Could not load file or assembly 'UtilsFunctions' or one of its dependencies. The system cannot find the file specified

How can I check which files are the report using?


Regards

The feature: "Scale-out deployment" is not supported

$
0
0

We have removed the Reporting Services from the other SQL server. Uninstalled/reinstalled Reporting Services on our SSRS server, however, we continue to receive the following error:

  • The feature: "Scale-out deployment" is not supported in this edition of Reporting Services. (rsOperationNotSupported)

We have checked the name in the SSRS server and it shows only the current reporting services server. Any assistance would be appreciated.

SSRS 2016 page height limited by content height, affects background colour

$
0
0

Hi

We are migrating our reports from SSRS 2008R2 to 2016 and have noticed an issue.

In 2008, when we set a  Report>>Page>>BackgroundColor property, the background colour was seen on the entire screen when viewing the report through a browser.

In 2016, it seems the colour only extends to the height of the report content. So if the content was not high enough, you'd see a white background instead.

I deployed a simple, identical report to our two environments to demonstrate.

2008R2, the teal footer shows the page footer/end of content:

2016, after the teal footer there is white:

<edit - I can't add images yet - you can easily replicate this by deploying any report with a page background colour and not enough content height to fill the screen>

The key difference here appears to be the style of container VisibleReportContent131_ct109 (2008R2) and VisibleReportContentReportViewerControl_ct109 (2016), where there used to be an inline style="HEIGHT: 100%" css rule in 2008R2, but not on 2016.

When I manually added that css rule through the DOM Explorer in 2016, I was able to get the desired result of having the container stretch to the bottom of the screen and have the background colour applied.

I have tried to no avail:

* Changing the interactive size to 0cm on height
* Consume white space true & false
* Changing page sizes 

Could I please ask whether this is a bug, or some advanced config I'm missing, and whether there is a workaround for this?

Thanks
Ed

Divide two columns based on another column expression ssrs

$
0
0

I am trying to sum two columns and divide them based on values from another column in an expression. No matter how I write it I get an error. I have to do it on the front-end and not the back-end.

Example:

If FieldA > 0

Then

SUM(FieldA) / Sum(FieldB)

else

do nothing

end

how to export SSIS / SSRS report to password protected excel file

$
0
0

I have a situation where i have to send out ssrs reports which should be converted into excel (Password protected / encrypted)

to a subscribed email .

Please Suggest me!!

SSRS Datasource Losing Connection to DB2

$
0
0

I am very new to SSRS. I currently have a datasource on an instance that after about 24 hours drops its connection to db2. After restarting SSRS service the Test Connection will complete but by the next day it is failing again. I checked its config vs a dev instance that is functioning properly and they are the same. Any ideas on why this connection keeps breaking. Below are some of the errors I see in the log files. 

extensionfactory!15dc!02/07/2019-09:02:37:: e ERROR: Exception caught instantiating DB2 report server extension: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. 
   at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.CreateExtensionObject(Extension extConfig, Boolean typeOnly).
extensionfactory!15dc!02/07/2019-09:02:37:: e ERROR: Exception caught instantiating SQLPDW report server extension: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.
   at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
   at Microsoft.ReportingServices.DataExtensions.SqlDwConnectionWrapper..ctor()
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.<>c__DisplayClass2.<CreateExtensionObject>b__0()
   at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.<>c__DisplayClass1.<Run>b__0(Object state)
   at System.Security.SecurityContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
   at Microsoft.ReportingServices.Diagnostics.RevertImpersonationContext.Run(ContextBody callback)
   at Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.CreateExtensionObject(Extension extConfig, Boolean typeOnly).

processing!11c0!02/07/2019-09:02:48:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'DS_MORE'. ---> System.Data.Odbc.OdbcException: ERROR [HY000] [IBM][CLI Driver] SQL1042C  An unexpected system error occurred.  SQLSTATE=58004

ERROR [HY000] [IBM][CLI Driver] SQL1042C  An unexpected system error occurred.  SQLSTATE=58004

   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at Microsoft.ReportingServices.DataExtensions.OdbcConnectionWrapper.Open()
   at Microsoft.ReportingServices.Diagnostics.DataExtensionConnectionBase.<>c__DisplayClass5.<OpenConnection>b__4()
   --- End of inner exception stack trace ---;


SSRS parameters through post method

$
0
0
Hi Team,

I want to send parameters through Post method instead of Passing a Report Parameter Within a URL

since i have a lengthy parameters, want to avoid below approach Passing a Report Parameter Within a URL and use post method.

//server/reportserver?/Sales/Northwest/Employee
 Sales Report&rs:Command=Render&EmployeeID=1234

once i clicked on view report button it should post parameters to the report server and report should open in new tab.

In view report button click event , have to set report url and report name ,parameters(dynamically).

Above approach is possible?If not let me know another approach for using post method.

If it is possible please suggest how to achieve this functionality through mvc code.

Note: Here i wont use any ReportViewer.

is it possible to have a parameter where the user selects which set of parameters to use with report

$
0
0

As the title says, is this possible? if it is links or pointers would be appreciated.

SQL Server 2017 Reporting Services with System Center 2016

$
0
0
Are they supported? When I attempt an installation it tells me that it is an incorrect version. Will Reporting Services 2016 work with SQL 2017?

Lookup function returns first record, but I want the last.

$
0
0

Hi,

I have two SharePoint lists defined as Datasets in SSRS. 

List 1| Dataset 1 - Project Information - Contains one item.  

List 2 | Dataset 2 - Project Status Reports - Contains multiple items. 

These lists are joined by primary/foreign key called site_id that create a one to many relationship: 

Project Information 1 - N Project Status Reports 

In SSRS I am trying to create a table using Dataset 1 that pulls the ONLYthe last status report from Dataset 2.  

Using Lookup function, I appear very close, however, it returns the first status report and not the last.

If you can advise I would greatly appreciate it. Thanks. 


Help with creating report

$
0
0

Hi

I am trying to create a report using SQL Report Builder to pull out stats from help desk database

I have not used report builder before and am struggling to get to grips with how to achieve my requirements

I want to show per help desk person a COUNT of calls opened and closed in a set time period - say a week

I'm at a loss as to when to specify what I need in the SQL query, or when to use expressions in the table etc

I can do a query to pull out a count of all tickets per help desk person e.g.

SELECT
  Work_Order_List.ID
  ,Work_Order_List.Status
  ,Work_Order_List.Assignee
FROM
  Work_Order_List

So do I then amend this query to specify date range

AND

Status e.g. Closed, Resolved, In Progress etc

OR do I do that in table in designer as a an expression

OR do I add it as a calculated field in my dataset

All help appreciated

Once worked out basics think I will then be okay


Darren Rose

Viewing all 28687 articles
Browse latest View live


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