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

“An error occurred during local report processing. Object reference not set to an instance of an object.”

$
0
0

I am using to generate rdlc report on my windows application. I have the one main report and more than 30 sub reports, which will render based on dataset values. Everything is working fine, but some time i got the following error when try to generate the report.

"An error occurred during local report processing. Object reference not set to an instance of an object." This is not all the the times. Sometime i am getting these errors. I can't even figure it out. It would be great if you help to sort it out.

Log file shows, these following kind of errors.

2019-07-23 15:40:28.7647|ERROR|31|ReportServerDatabaseUnavailableException| RequestID = s_f3d17e92-0f8b-458e-bcb7-935b64f6dcca 
2019-07-23 15:40:53.9509|ERROR|31|ReportServerDatabaseUnavailableException| RequestID = s_9a6239fb-ad9c-4868-a964-9945cb0211a0 
2019-07-23 15:41:22.7403|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_2537a3e6-5822-41f7-b5dc-394c69f5c374 
2019-07-23 15:41:49.1221|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_858edb9b-5c0e-4c31-a666-9d8548cbf259 
2019-07-23 15:41:59.1346|ERROR|30|ReportServerDatabaseUnavailableException| RequestID = s_ecda0f7b-ced8-4757-80c6-4e1540dcd00e 
2019-07-23 15:42:25.1251|ERROR|27|ReportServerDatabaseUnavailableException| RequestID = s_0352387f-756d-494d-ba32-4075d27d4931 
2019-07-23 15:42:35.1383|ERROR|27|ReportServerDatabaseUnavailableException| RequestID = s_a51ea9e5-b670-49c0-bc8d-161dc8969198 

Thanks, Thineshbabu


Debug defaults to different report to the one I am working on?

$
0
0

I am working on a report where I want to see what values are getting assigned to the parameters.

I Place a couple of break points and hit debug and the debugger opens with a different report in context???

Any ideas?

SSRS 2012

Report Server cannot connect to its database error

$
0
0

Hi All,

I need help to resolve the below issue on an existing Report Server, I get this error when I try to login to the Report server, I looked up other threads for this issue and tried the following with no  luck.

1.)Restart RS Server services

2.)Restart SQL Server services

3.)Reset the password for the database account 

4.)Created a new user for the Reporting Services

5.)Also checked the user credentials and they do have the RSExecRole and public permissions.

6.)There are 2 errors in the logs,

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

-The report server was unable to validate the integrity of encrypted data in the database.


Sunny

Count the number of values (separated by comma) entered in parameter text box in ssrs reports

$
0
0

I am allowing the users to enter the values in the parameter textbox separated by comma.

For Example: ID: 245,257,234

But i want to restrict the number of values entered should be less than 25 ID's and should display a warning message. please help me with screenshots as i am new to SSRS

Also i want to count the number of values which users entered in the textbox in ssrs reports.Thanks in advance

Can create a report through Report Builder, but can't see it as a preview before

$
0
0

Hi weird case,

I can upload a report through the report builder and run it as usual, but can't preview it before...

Do you know why?

I added pics with the steps

1

23456789

SSRS 2017

$
0
0

Hello,

The question is, 

If I want to use SSRS 2017 REST API is it mandatory to upgrade SQL Server to 2017 or I can still using SQL Server 2014?

Thanks

Report Builder Expressions not passing to SSRS?

$
0
0

Good morning!

I created a report that pulls in check data.  Some of those checks were voided.  We want to create a strikethrough/linethrough on those voided checks.  There are 8 columns, and all need an expression to create the linethrough.

=IIF(Fields!Voided_Reversed.Value="Y", "LineThrough", "None")

I've put that as an expression for the TextDecoration in each column.  Every column has that same logic.

When I do a report preview, it works perfectly.  All columns have a linethrough if the Voided_Reversed field is "Y".

When I put that report in SSRS, it only does the linethrough on one column.  I've tried deleting the SSRS report and uploading the new version.  I also tried deleting the expression for the one column where the linethrough works to see if the linethrough would then work in a different column, but it didn't.

So, why is that expression working for every column in Report Builder, but only for one column in SSRS?  What can I do to fix this?

Thanks!


combine multiple calculated fields into one column for sorting

$
0
0

Hello, 

I created 5 calculated fields based on IF statements in order to group certain data groups.

The calculated fields name for example, BSGroup, IT1, IT2, IT3, IT4

I want to group these four fields/columns into one column and then sort it based on BSGroup (Cash, AR,) IT1, IT2, IT3, BSGroup (Liabilities & Equity)..

Thanks,


SSRS 2017 Errors on exporting to Excel or Word .xlsx, .docx

$
0
0

I cannot export in SSRS 2017 to EXCEL or WORD 2013 versions, EXCELOPENXML or WORDOPENXML.  2003 versions work fine in the environment when turned on.  This also happens in SSRS Report Builder.  There is something fundamentally wrong in the rendering.  The following are the types of errors I am seeing:

An Error occurred during rendering of the report.  (rrRenderingErrorr). In report builder

In SSRS:

library!ReportServer_0-2!1a5c!07/24/2019-14:50:26:: e ERROR: Report server dump occured. Exception: Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.TypeInitializationException: The type initializer for 'MS.Utility.EventTrace' threw an exception. ---> System.Security.SecurityException: Requested registry access is not allowed.
   at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
   at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
   at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue)
   at MS.Utility.EventTrace.IsClassicETWRegistryEnabled()
   at MS.Utility.EventTrace..cctor()
   --- End of inner exception stack trace ---
   at MS.Utility.EventTrace.EasyTraceEvent(Keyword keywords, Event eventID)
   at System.IO.Packaging.Package.Open(Stream stream, FileMode packageMode, FileAccess packageAccess, Boolean streaming)
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreambookModel.get_ZipPackage()
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.PartManager..ctor(XMLWorkbookModel workbookModel)
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.XMLModel.XMLStreambookModel..ctor(Stream outputStream)
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.ExcelApplication.CreateStreaming(Stream outputStream)
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.OpenXmlGenerator..ctor(CreateTempStream createTempStream)
   at Microsoft.ReportingServices.Rendering.ExcelOpenXmlRenderer.ExcelOpenXmlRenderer.CreateExcelGenerator(CreateTempStream createTempStream)
   at Microsoft.ReportingServices.Rendering.ExcelRenderer.MainEngine..ctor(CreateAndRegisterStream createStream, ExcelRenderer excelRenderer)
   at Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
   --- End of inner exception stack trace ---

Filteration duplicate value Problem

$
0
0

Hi,

 I am newibe in ssrs 2008 report. I create a one adhoc  report in report builder 3.0. In this report i include Year wisde filter . But Value shows  duplicate year.  How can i get a distinct year. Any formula is available.?

     My report filteraion currently showing  2007

                                                          2007

                                                          2007

                                                          2008

                                                          2008

Etc

How can i remove the redundancy?

Thanks

Dileep   

SSRS permission

$
0
0

We have the report server that has multiple folders under home directory in different categories.

Different folders have different users to browser reports.

In order for users to browse reports in a sub folder under home directory, do I need to also grant their permission to the home directory as browser?


SQLFriend

Function doesn't work when row or cell hidden

$
0
0
I am trying to do a Payroll report. The data is stored as hours worked with a payroll code and a roster code. There are several entries per employee. I wrote 2 functions. One that Initializes all the memory variables used for the various Payroll Code totals. And one that increments those totals based on the payroll code. The report group is on Employee ID so it groups each employees records. The Functions work properly and give me total hours for the various codes in the footer, however, I do NOT want to see the details in the end result. If I hide the details row the Increment Function is no longer called and provides no totals whatsoever. The same thing happens to the Initialize function. If I hide the cell, it never runs the function to initialize the variables for each employee and the previous totals carryover to the next. How can I get these functions to work and have them hidden at the same time? I can do this in Crystal Reports but the county is wanting to SSRS for other reasons. This would seem like a simple thing. This is an extremely important part of our process and needs to be addressed. Thanks.

Best Practices for SSRS Report with multiple-value Parameter BOTH in Report Manager Portal AND Subscriptions

$
0
0

So this has really thrown us for a loop.

So SSRS and Report Manager Portal we believe packages up a multi-valued Report Parameter as a comma-delimited list of values. Which is all fine and good and handled in the SQL Server Stored Procedure accordingly. However, when you have to define a Subscription for the same report and provide the values via a Data-driven Subscription is when we have problems.

We believe the work around is to manage this ourselves...meaning create and maintain a hidden parameter within the report and use an expression for the parameter "Default Values" to be "=Join(Parameters!ParameterName.Value,","). Then pass this Parameter to the actual Report Dataset and use a StringParser function within the SQL Server Stored Procedure to parse out the comma-delimited values.

This approach seems to kill two-birds with one stone. Allows the report to function and work within Report Manager Portal just fine and also allows you to pass a comma-delimited list of values via a Data-driven T-SQL query and satisfy the Subscription Parameter that way as well.

Can anyone confirm this and affirm our approach is good in regards to making our SSRS Reports as flexible as possible?

Thanks for your review and am hopeful for a reply.

report viewer upgrade

$
0
0

I was using sql 2014 and reporting services until now.
my report viewer on iis server is report viewer 2015 12.0.2402.15
in web.config it is version 12.0.0.0

Now I am using sql 2017

And I also want to use a newer version of report viewer that supportprinting inchrome/firefox.
I tried to set my web.condfig to 15.0.0.0 and i get
"
Report Viewer requires a standards compliant browser. Users of Internet Explorer 8 and earlier should switch to a modern browser, or if already using a modern browser target standards mode by adding the <meta http-equiv="X-UA-Compatible" content="IE=edge" > header tag to the host page."

Can someone explain me:

1. which report viewer version to install on iis

2. which version should be in web.config

3. which visual studio do I need to  develop rdl reports and deploy from

Thank you





Reconstructing RDL from the ReportServer database

$
0
0

In my shop we hired a contractor who build our SQL Server 2005 Reporting Services reports on his laptop. After a tiff between him and our manager, he left with the laptop and we no longer have the source code for these reports. We have backups, but not the latest.

 

These reports ARE deployed to our production server, but I need to know if it's possible to reconstruct the RDL for the reports from the database contents. I understand that the report contents are encrypted and I'm guessing the RDL is in the Catalog.Content column.

 

Is there a way to recover the RDL for deployed reports or do we have to resort to the legal system?


Hiding field column creates white space

$
0
0

Hello,

I have the following columns:

Acct Group  Acct # Acct Name Code  Unit Name Partner Name CustomerCode


I want to hide the columns based on specific requirements from the acct group field. For example, I only want to display the CustomerCode column when the Acct group equals "Accounts receivable". I am able to achieve by defining an if statement within the Field text box properties for Visibility: =iif(Fields!AcctGroup.Value <> "Accounts receivable", true, false)

When i try to hide based on the Column Visibility, column header, I am not able to acheive this.

In the end, I have these white spaces in page breaks.



Railway / Roadway representation in Stacked Bar Chart (Fixed scale : 1 inch = 50 ft Approximately )

$
0
0

Hi Everyone,

I'm trying to represent a linear data in the stacked bar chart. My sample data has almost 2000ft of data. I'm having difficulty expanding/ maintaining the x axis size. All the records get crunched into the same chart size. I'm looking for x-axis to represent 1" inch (or 95 pixels)  = 50ft ( as per data). Seeking your thoughts on how to get it.

First 16 records is almost 500 ft. But my report shows up all the 2000ft within 10inch wide report. Even 8000ft crunches into the same chart size. 

About the data: Think of it as a Road with start and end. Data has sequence number with startfootage, end footage & length of that each section and whats within that section like lamppost, etc..

Please find the sample data:

select * from 
(select 'Road' as Type,1 as SequenceNo,0    as SectionBeginFootage,  1.25as SectionEndFootage, 1.25  as SectionLength
union select 'Sewage' as Type,2 as SequenceNo, 1.25as SectionBeginFootage,  2.69as SectionEndFootage, 1.44  as SectionLength
union select 'Road' as Type,3 as SequenceNo, 2.69as SectionBeginFootage,  5.15as SectionEndFootage, 2.46  as SectionLength
union select 'Road' as Type,4 as SequenceNo, 5.15as SectionBeginFootage,  33.35as SectionEndFootage, 28.2  as SectionLength
union select 'Road' as Type,5 as SequenceNo, 33.35as SectionBeginFootage,  77.53as SectionEndFootage, 44.18 as SectionLength
union select 'Road' as Type,6 as SequenceNo, 77.53as SectionBeginFootage,  121.5as SectionEndFootage, 43.97 as SectionLength
union select 'Road' as Type,7 as SequenceNo, 121.5as SectionBeginFootage,  162.79as SectionEndFootage, 41.29 as SectionLength
union select 'Road' as Type,8 as SequenceNo, 162.79as SectionBeginFootage,  205.15as SectionEndFootage, 42.36 as SectionLength
union select 'Road' as Type,9 as SequenceNo, 205.15as SectionBeginFootage,  247.92as SectionEndFootage, 42.77 as SectionLength
union select 'Road' as Type,10 as SequenceNo, 247.92as SectionBeginFootage,  257.62as SectionEndFootage, 9.7   as SectionLength
union select 'Road' as Type,11 as SequenceNo, 257.62as SectionBeginFootage,  290.48as SectionEndFootage, 32.86 as SectionLength
union select 'Road' as Type,12 as SequenceNo, 290.48as SectionBeginFootage,  335.12as SectionEndFootage, 44.64 as SectionLength
union select 'Road' as Type,13 as SequenceNo, 335.12as SectionBeginFootage,  377.1as SectionEndFootage, 41.98 as SectionLength
union select 'Road' as Type,14 as SequenceNo, 377.1as SectionBeginFootage,  419.58as SectionEndFootage, 42.48 as SectionLength
union select 'Road' as Type,15 as SequenceNo, 419.58as SectionBeginFootage,  462.78as SectionEndFootage, 43.2  as SectionLength
union select 'Road' as Type,16 as SequenceNo, 462.78as SectionBeginFootage,  505.84as SectionEndFootage, 43.06 as SectionLength
union select 'Road' as Type,17 as SequenceNo, 505.84as SectionBeginFootage,  547.91as SectionEndFootage, 42.07 as SectionLength
union select 'Road' as Type,18 as SequenceNo, 547.91as SectionBeginFootage,  591.17as SectionEndFootage, 43.26 as SectionLength
union select 'Road' as Type,19 as SequenceNo, 591.17as SectionBeginFootage,  629.81as SectionEndFootage, 38.64 as SectionLength
union select 'Road' as Type,20 as SequenceNo, 629.81as SectionBeginFootage,  672.65as SectionEndFootage, 42.84 as SectionLength
union select 'Road' as Type,21 as SequenceNo, 672.65as SectionBeginFootage,  714.03as SectionEndFootage, 41.38 as SectionLength
union select 'Road' as Type,22 as SequenceNo, 714.03as SectionBeginFootage,  757.34as SectionEndFootage, 43.31 as SectionLength
union select 'Road' as Type,23 as SequenceNo, 757.34as SectionBeginFootage,  792.07as SectionEndFootage, 34.73 as SectionLength
union select 'Road' as Type,24 as SequenceNo, 792.07as SectionBeginFootage,  834.25as SectionEndFootage, 42.18 as SectionLength
union select 'Road' as Type,25 as SequenceNo, 834.25as SectionBeginFootage,  867.48as SectionEndFootage, 33.23 as SectionLength
union select 'Road' as Type,26 as SequenceNo, 867.48as SectionBeginFootage,  907.61as SectionEndFootage, 40.13 as SectionLength
union select 'Road' as Type,27 as SequenceNo, 907.61as SectionBeginFootage,  951.24as SectionEndFootage, 43.63 as SectionLength
union select 'Road' as Type,28 as SequenceNo, 951.24as SectionBeginFootage,  993.74as SectionEndFootage, 42.5  as SectionLength
union select 'Road' as Type,29 as SequenceNo, 993.74as SectionBeginFootage,  1038.4as SectionEndFootage, 44.66 as SectionLength
union select 'Road' as Type,30 as SequenceNo, 1038.4as SectionBeginFootage,  1081.92as SectionEndFootage, 43.52 as SectionLength
union select 'Road' as Type,31 as SequenceNo, 1081.92 as SectionBeginFootage, 1127.36as SectionEndFootage, 45.44 as SectionLength
union select 'Road' as Type,32 as SequenceNo, 1127.36 as SectionBeginFootage, 1171.09as SectionEndFootage, 43.73 as SectionLength
union select 'Road' as Type,33 as SequenceNo, 1171.09 as SectionBeginFootage, 1213.59as SectionEndFootage, 42.5  as SectionLength
union select 'Road' as Type,34 as SequenceNo, 1213.59 as SectionBeginFootage, 1258.09as SectionEndFootage, 44.5  as SectionLength
union select 'Road' as Type,35 as SequenceNo, 1258.09 as SectionBeginFootage, 1302.17as SectionEndFootage, 44.08 as SectionLength
union select 'Road' as Type,36 as SequenceNo, 1302.17 as SectionBeginFootage, 1346.83as SectionEndFootage, 44.66 as SectionLength
union select 'Road' as Type,37 as SequenceNo, 1346.83 as SectionBeginFootage, 1388.89as SectionEndFootage, 42.06 as SectionLength
union select 'Road' as Type,38 as SequenceNo, 1388.89 as SectionBeginFootage, 1432as SectionEndFootage, 43.11 as SectionLength
union select 'Road' as Type,39 as SequenceNo, 1432as SectionBeginFootage,  1473.74as SectionEndFootage, 41.74 as SectionLength
union select 'Road' as Type,40 as SequenceNo, 1473.74 as SectionBeginFootage, 1516.1as SectionEndFootage, 42.36 as SectionLength
union select 'Road' as Type,41 as SequenceNo, 1516.1as SectionBeginFootage,  1559.63as SectionEndFootage, 43.53 as SectionLength
union select 'Road' as Type,42 as SequenceNo, 1559.63 as SectionBeginFootage, 1643.04as SectionEndFootage, 83.41 as SectionLength
union select 'Road' as Type,43 as SequenceNo, 1643.04 as SectionBeginFootage, 1646.03as SectionEndFootage, 2.99  as SectionLength
union select 'Road' as Type,44 as SequenceNo, 1646.03 as SectionBeginFootage, 1681.58as SectionEndFootage, 35.55 as SectionLength
union select 'Road' as Type,45 as SequenceNo, 1681.58 as SectionBeginFootage, 1721.9as SectionEndFootage, 40.32 as SectionLength
union select 'Road' as Type,46 as SequenceNo, 1721.9as SectionBeginFootage,  1752.55as SectionEndFootage, 30.65 as SectionLength
union select 'Road' as Type,47 as SequenceNo, 1752.55 as SectionBeginFootage, 1764.87as SectionEndFootage, 12.32 as SectionLength
union select 'Road' as Type,48 as SequenceNo, 1764.87 as SectionBeginFootage, 1799.48as SectionEndFootage, 34.61 as SectionLength
union select 'Road' as Type,49 as SequenceNo, 1799.48 as SectionBeginFootage, 1805.48as SectionEndFootage, 6    as SectionLength
union select 'Road' as Type,50 as SequenceNo, 1805.48 as SectionBeginFootage, 1819.25as SectionEndFootage, 13.77 as SectionLength
union select 'Road' as Type,51 as SequenceNo, 1819.25 as SectionBeginFootage, 1827.73as SectionEndFootage, 8.48  as SectionLength
union select 'Road' as Type,52 as SequenceNo, 1827.73 as SectionBeginFootage, 1838.11as SectionEndFootage, 10.38 as SectionLength
union select 'Road' as Type,53 as SequenceNo, 1838.11 as SectionBeginFootage, 1849.14as SectionEndFootage, 11.03 as SectionLength
union select 'Road' as Type,54 as SequenceNo, 1849.14 as SectionBeginFootage, 1859.7as SectionEndFootage, 10.56 as SectionLength
union select 'Road' as Type,55 as SequenceNo, 1859.7as SectionBeginFootage,  1860.34as SectionEndFootage, 0.64  as SectionLength
union select 'ElectricLine' as Type,56 as SequenceNo,1860.34 as SectionBeginFootage, 1862.33as SectionEndFootage, 1.99  as SectionLength
union select 'LampPost' as Type,57 as SequenceNo, 1862.33 as SectionBeginFootage, 1864.21as SectionEndFootage, 1.88  as SectionLength
union select 'ElectricLine' as Type,58 as SequenceNo,1864.21 as SectionBeginFootage, 1865.17as SectionEndFootage, 0.96  as SectionLength
union select 'Road' as Type,59 as SequenceNo, 1865.17 as SectionBeginFootage, 1876.15as SectionEndFootage, 10.98 as SectionLength
union select 'Road' as Type,60 as SequenceNo, 1876.15 as SectionBeginFootage, 1885.78as SectionEndFootage, 9.63  as SectionLength
) a order by SequenceNo


Number of connections from a user/s

$
0
0

Hello,

The sql server connection max is set to 0 which means, the max allowed for SQL2k12 ent edition. The SSRS user connections are also limited by this number or do we need to specify a parameter/tag inside the config file for the SSRS?

Thanks.

Victor


Victor

Unexpected error encountered while saving Power BI...

$
0
0

I setup Power BI Desktop for Report Server on server ip: 192.168.199.11 and setup Power BI Desktop on my laptop.I have created report in Power BI Desktop  ,I want save it to Power BI Reporting Server(on server 192.168.199.11) but when I save have error "Unexpected error encountered". Please help me.Thanks all.

Create Filter Parameter of the multiple tables (tablix's) in the report

$
0
0
I have a report that has 4 tablixes in it, I need a parameter that will filter which of the 4 tables to show when end user selects and runs it.  I used straight-up tables, not sub-reports, is this incorrect?
Viewing all 28687 articles
Browse latest View live


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