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

how to disable the link to subreports depending upon value

$
0
0

Hi,

We have a table in ssrs reports where we are showing failed, success and cancelled status. for come condition.

now for failed we are going to subreports as we are passing some parameter from parent report.

but for success and cancelled we don't want to go that subreport.(problem is its going to the subreport)

this status are coming in the same cell depending some condition.

any body has idea how to do it


simanta


Expression Question for SQL Server Reporting Services 2008 R2

$
0
0

I am trying to form an expression that will give me the est. hours for a specific project type.  Project Type is a field in the data set as well as est.hrs.  There are no calculations needed.  The hours is listed under the field name"Est.Hours". So I've been trying to us an IIF expression.  IIF(Fields!ProjectType.Value=Landscaping, "", Fields!Est.Hours.Value).  It is not working.  It renders "0" and it should render "10".  What am I doing wrong?  

account issues - invoke file through ssrs hyperlink

$
0
0

hi there - i have hyperlinks in a column in ssrs report (in tablix) which point to some server where a dump of documents reside..the address in every hyperlink has a doc id appended which helps locate that doc and so clicking this link on ssrs report invokes the respective doc from that server..

 

now this works fine if the ssrs report runs with the windows logged in user and the same user is also set up on that document server where ssrs hyperlink points to..and this was in dev env..

 

going ahead in a controlled env, there would only be one system a/c which will be set up on that doc server and regardless of who the logged in windows user is who runs the report; access to the docs on that doc server will only be given to that sys a/c..so i passed this same sys a/c (which is set up on that doc server) in the data source in report mgr --> credentials stored securely in report server..and thought that these credentials will be picked while navigating to that doc server and the doc would be opened..but this doesn't seem to happen and it doesn't invoke the document...says invalid credentials..so i think it's picking my logged in credentials here and not the ones of the sys a/c that i entered in data source...(pls note here, the doc server url doesn't contain the report server / report manager url components..it's a different url and is used to only open the doc..so i don't think i can pass user credentials to that url like &dsu:Datasourcename=username&dsp:Datasourcename=password..may be i am wrong and i can pass? but don't think that's secure even if it's an option?)

 

alternatively, i thought this could be achieved by changing the execution account to this system a/c, under reporting services config mgr..but then we only have ssrs client tools installed..so can't change server settings..and just for this one requirement, nobody would accept my request to change the execution account...also don't know if changing exec account is even a solution for this?

 

i hope the question is clear..please give some work arounds..i'm stumped and not getting required help anywhere..

 

note: as another work around, i asked if a group can be set up on that doc server..and when all the users accessing the report are added to the group, they can open the doc after navigating from ssrs report...but the idea giving access to a group was rejected...they can only give access to this sys a/c...

Report Builder Can't Connect after IP Change

$
0
0

I can write the queries that I need to but continually run into issues with SRS and its Report Builder

Someone moved the report server onto another LAN and it has a new IP.  All the reports can still connect to the data source and so work just fine.

When I launch Report Builder 2 from the Report Server/Report itself, it pops up that "connection failed" and follows up with "Unable to connect to the server that is specified in the URL"

Basically I need to configure it to point to itself I guess but that seems to not be happening.  The changes were already in the report manager when I went to check them.  I have no idea how long it's been this way.

I've attached a pic to show the successful connection to report server, but bad from report builder.  Also the configuration of the report server. 

I found posts related to proxy but that can't possibly help b/c the thing is looking for an IP that doesn't exist!  It's own has changed.


IE 11 Issue with fixed Column Header in SSRS Report

$
0
0
I am using the Report Viewer 2012 for the SSRS Reports and in the IE11 i am not able to get the fixed header while scrolling the report viewer. It is displaying as Scrolling for entire report viewer but not the table part.

How can i resolve that to fix the headers while scrolling the grid rows part only and not the entire report viewer.

Issues in restoring ReportServer DB from SQL 2005 to SQL 2008 R2

$
0
0

Hello,

I am trying to upgrade reporting services for my project from SSRS 2005 to SSRS 2008 R2. I have already taken backup of ReportServer and ReportServerTempDB databases and the encryption keys in Reporting Services Configuration Manager.

The database is also restored successfully in SQL Server 2008 R2. Since reporting services was not installed in SQL Server 2008 R2, I have installed it separately and noticed that "Install but do not configure report server" was the only option available during the installation process.

After this, when I open Reporting Services Configuration Manager to change the report server DB, and select the restored ReportServer DB, the report mode is showing as "unknown" instead of "Native". Due to this, I am unable to restore SSRS.

It would be great if someone can guide me on what is missing and how it can be corrected.

Thanks,


Harshad ----------------------------------------------------------- Please mark as answer if the post helped you.

ReportServerStorageException Timeout Expired

$
0
0

Hi all

I have had an odd outage with my production servers and trying to work out what happened.  We have two SSRS instances in a mirrored and load balanced configuration running SQL 2008 (R1) on Server 2003.  They each have Dual Xeon processors with 4GB ram.  Last night every report request and subscription started failing resulting in me getting called out.  When I logged on to the primary server ReportingServicesService.exe was churning away at 100%  CPU even though no jobs were running at that instant.  I restarted the service and CPU returned to normal and reports started being issued again.

When I looked in the SSRS log file it was full of instances the error message below which is normally thrown on a time out.  However, the reports that were timing out take about 20 seconds to run in normal usage and our execution time out is set to 30 minutes for some of our longer reports.  I've checked the SQL server log and the windows application and system logs and there are no other errors indicated.    Does anyone have any ideas to help me work out what happened please?  I've put some log extracts below.

library!WindowsService_22!970!12/14/2014-22:05:06:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;
chunks!WindowsService_22!970!12/14/2014-22:05:06:: w WARN: Rolling back shared chunk transaction for snapshot '2d19a9e3-8cae-4d23-a43f-8fdc1b23c86f', Permanent=True.
notification!WindowsService_22!970!12/14/2014-22:05:06:: e ERROR: Error occured processing notification. An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database.

library!WindowsService_22!ec8!12/15/2014-00:05:08:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database., ;
chunks!WindowsService_22!ec8!12/15/2014-00:05:08:: w WARN: Rolling back shared chunk transaction for snapshot 'de3cc1ba-d468-4078-9906-321401804aae', Permanent=True.
library!WindowsService_22!ec8!12/15/2014-00:05:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
library!WindowsService_22!ec8!12/15/2014-00:05:08:: e ERROR: Schedule 40bd9808-bd8a-4000-96d9-42a0a1d4077e failed. Error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.<ExecuteNonQuery>b__0()
   at Microsoft.ReportingServices.Library.SqlBoundaryWithReturn`1.Invoke(Method m)
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Library.Storage.WrapAndThrowKnownExceptionTypes(Exception e)
   at Microsoft.ReportingServices.Library.SqlBoundaryWithReturn`1.Invoke(Method m)
   at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()
   at Microsoft.ReportingServices.Library.CancelableSqlCommand.ExecuteNonQuery()
   at Microsoft.ReportingServices.Library.SegmentChunkDbInterface.IsSegmentedChunk(Guid snapshotId, Boolean isPermanent, String chunkName, Int32 chunkType)
   at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Boolean rawStreamRequested, ConnectionManager connectionManager, Boolean supportReadWrite, WriteOptions updateMode, Boolean isForUpgrade, String& mimeType)
   at Microsoft.ReportingServices.Library.ServerSnapshot.GetChunk(String name, ReportChunkTypes type, Boolean supportReadWrite, WriteOptions updateMode, String& mimeType)
   at Microsoft.ReportingServices.Library.ServerSnapshot.GetChunk(String name, ReportChunkTypes type, String& mimeType)
   at Microsoft.ReportingServices.Library.ReportSnapshot.Microsoft.ReportingServices.ReportProcessing.IChunkFactory.GetChunk(String chunkName, ReportChunkTypes type, ChunkMode mode, String& mimeType)
   at Microsoft.ReportingServices.Library.ReadOnlyChunkFactory.GetChunk(String chunkName, ReportChunkTypes type, ChunkMode mode, String& mimeType)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.DeserializeKatmaiReport(IChunkFactory chunkFactory, String chunkName, Boolean keepReferences, GlobalIDOwnerCollection globalIDOwnerCollection, IDOwner parentIDOwner, ReportItem parentReportItem, Boolean processUsingCachedData)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.DeserializeKatmaiReport(IChunkFactory chunkFactory)
   at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.GetAllDataSources(CatalogItemContext reportContext, IChunkFactory getCompiledDefinitionFactory, OnDemandSubReportDataSourcesCallback subReportCallback, DataSourceInfoCollection dataSources, Boolean checkIfUsable, ServerDataSourceSettings serverDatasourceSettings, Boolean& needsUpgrade)
   at Microsoft.ReportingServices.Library.RSService.ProcessingGetAllDataSources(ReportProcessing repProc, CatalogItemContext reportContext, ReportSnapshot intermediateSnapshot, DataSourceInfoCollection thisReportDataSources, Boolean checkIfUsable)
   at Microsoft.ReportingServices.Library.RSService.GetAllDataSources(ReportProcessing repProc, BaseReportCatalogItem report, ReportSnapshot intermediateSnapshot, Guid reportID, Boolean checkIfUsable)
   at Microsoft.ReportingServices.Library.RSService.GetAllDataSources(BaseReportCatalogItem report, Boolean checkIfUsable, Boolean useServiceConnectionForRepublishing, ReportSnapshot& compiledDefinition)
   at Microsoft.ReportingServices.Library.RSReportContext.RetrieveAllDataSources(Boolean checkIfUsable, Boolean userServiceConnectionForRepublishing)
   at Microsoft.ReportingServices.Library.CreateSnapshotExecutor.CreateSnapshot(Boolean unattended, Boolean permanent, Boolean isForHistory)
   at Microsoft.ReportingServices.Library.UpdateExecutionSnapshotAction.InternalUpdateSnapshot()
   at Microsoft.ReportingServices.Library.UpdateExecutionSnapshotCancelableStep.Execute()
   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
   at Microsoft.ReportingServices.Library.UpdateExecutionSnapshotAction.PerformActionNow()
   at Microsoft.ReportingServices.Library.RSSoapAction`1.Execute()
   at Microsoft.ReportingServices.Library.ReportExecutionSnapshotScheduleEventHandler.PerformActionHandler(ICatalogQuery catalogQuery, ArrayList reportActions)
   at Microsoft.ReportingServices.Library.ScheduleFireEventHandlerBase.HandleScheduleEvent(ICatalogQuery catalogQuery, String eventData, PerformEventActions handleFunction)

Calling a report from another report based on condition

$
0
0

Hi there! I am relatively inexperienced in SSRS (working with Visual Studio 2008 and SQL Server 2008 R2), so I'm hoping you might be able to help me out.

I have already developed a report (A) and this calls another report (B). It is working perfectlig. What I want to do is that report B should be called based on a condition, if the condition is false then a notification should be displayed to the user.

Do you have any sample codes?


Sedso


Conditional DateDiff

$
0
0

I'm using SSDT 12 and I'm trying to calculate the difference in days between a value in my database and the year 2050. I know I'll need to use the DateDiff command but I'm not sure how to go about the expression. The values in the database are integer values ranging from 0 to something like 10000000000. 

Here's the expression so far:

=SWITCH(
Fields!DaysToFull.Value <= (DateDiff("y",Fields!DaysToFull.Value,2050)), DateAdd("d",Fields!DaysToFull.Value,Now),
Fields!DaysToFull.Value > (DateDiff("y",Fields!DaysToFull.Value,2050)), "> 2050"
)

If the value is less than the number of days between now and 2050 then I need to display the date then (e.g. 60 would be the date in two months) and if the number of days exceeds the year 2050 then I need to display the text "> 2050".
Also the I need to format the date as dd/mm/yyyy but I think I can do that.

Any ideas how I could go about this? Thanks in advance everyone.
Adam

DateDiff in SSRS 2005

$
0
0

Is there any way to find the number of working days between 2 dates.  I would also like to exclude bank holidays too.

Thanks

An error occurred during local report processing.The definition of the report '' is invalid.The definition of this report is not valid or supported by this version of Reporting Services. he report definition may have been created with a later version of R

$
0
0

Hi,

I am trying to create rdlc file programmatically. Using Memory Table as dataset. Here is my code

' For each field in the resultset, add the name to an array listDim m_fields AsArrayList  m_fields = NewArrayList()  Dim i AsIntegerFor i = 0 To tbdataset.Tables(0).Columns.Count - 1      m_fields.Add(tbdataset.Tables(0).Columns(i).ColumnName.ToString)  Next i  'Create Report 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition' Open a new RDL file stream for writingDim stream AsFileStream  stream = File.OpenWrite("D:\MyTestReport2.rdlc")  Dim writer AsNewXmlTextWriter(stream, Encoding.UTF8)  ' Causes child elements to be indented  writer.Formatting = Formatting.Indented  ' Report element  writer.WriteProcessingInstruction("xml""version=""1.0"" encoding=""utf-8""")  writer.WriteStartElement("Report")  writer.WriteAttributeString("xmlns"Nothing"http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition")  writer.WriteAttributeString("xmlns:rd""http://schemas.microsoft.com/SQLServer/reporting/reportdesigner")  writer.WriteStartElement("ReportSections")  writer.WriteStartElement("ReportSection")  writer.WriteElementString("Width""11in")  writer.WriteStartElement("Body")  writer.WriteElementString("Height""5in")  writer.WriteStartElement("ReportItems")  writer.WriteStartElement("Tablix")  writer.WriteAttributeString("Name"Nothing"Tablix1")  writer.WriteElementString("Top"".5in")  writer.WriteElementString("Left"".5in")  writer.WriteElementString("Height"".5in")  writer.WriteElementString("Width", (m_fields.Count * 1.5).ToString() + "in")  writer.WriteStartElement("TablixBody")  ' Tablix Columns  writer.WriteStartElement("TablixColumns")  ForEach fieldName In m_fields      writer.WriteStartElement("TablixColumn")      writer.WriteElementString("Width""1.5in")      writer.WriteEndElement() ' TableColumnNext fieldName  writer.WriteEndElement() ' TablixColumns' Header Row  writer.WriteStartElement("TablixRows")  writer.WriteStartElement("TablixRow")  writer.WriteElementString("Height"".25in")  writer.WriteStartElement("TablixCells")  ForEach fieldName In m_fields      writer.WriteStartElement("TablixCell")      writer.WriteStartElement("CellContents")      writer.WriteStartElement("Textbox")      writer.WriteAttributeString("Name"Nothing"Header" + fieldName)      ' writer.WriteAttributeString("CanGrow",  True)' writer.WriteAttributeString("Keeptogether", True)      writer.WriteStartElement("Paragraphs")      writer.WriteStartElement("Paragraph")      writer.WriteStartElement("TextRuns")      writer.WriteStartElement("TextRun")      writer.WriteElementString("Value", fieldName)      writer.WriteStartElement("Style")      writer.WriteElementString("TextDecoration""Underline")      writer.WriteElementString("PaddingTop""0in")      writer.WriteElementString("PaddingLeft""0in")      writer.WriteElementString("LineHeight"".5in")      ''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)      writer.WriteEndElement() ' Style      writer.WriteEndElement() ' TextRun      writer.WriteEndElement() ' TextRuns      writer.WriteEndElement() ' Paragraph      writer.WriteEndElement() ' Paragraphs      writer.WriteEndElement() ' TexBox      writer.WriteEndElement() ' CellContents      writer.WriteEndElement() ' TablixCellNext  writer.WriteEndElement() ' TablixCells  writer.WriteEndElement() ' TablixRow'writer.WriteEndElement() ' TablixRows          Do not close Rows tag here colse it after details'End of Headers'Details Rows'writer.WriteStartElement("TablixRows")         Since Rows tag in header is not closed not need to open fresh tag  writer.WriteStartElement("TablixRow")  writer.WriteElementString("Height"".25in")  writer.WriteStartElement("TablixCells")  ForEach fieldName In m_fields      writer.WriteStartElement("TablixCell")      writer.WriteStartElement("CellContents")      writer.WriteStartElement("Textbox")      writer.WriteAttributeString("Name"Nothing, fieldName)      '  writer.WriteAttributeString("CanGrow", True)'  writer.WriteAttributeString("Keeptogether", True)      writer.WriteStartElement("Paragraphs")      writer.WriteStartElement("Paragraph")      writer.WriteStartElement("TextRuns")      writer.WriteStartElement("TextRun")      'writer.WriteElementString("Value", fieldName)      writer.WriteElementString("Value""=Fields!" + fieldName + ".Value")      writer.WriteStartElement("Style")      writer.WriteElementString("TextDecoration""Underline")      writer.WriteElementString("PaddingTop""0in")      writer.WriteElementString("PaddingLeft""0in")      writer.WriteElementString("LineHeight"".5in")      ''writer.WriteElementString("Width", "1.5in")''writer.WriteElementString("Value", fieldName)      writer.WriteEndElement() ' Style      writer.WriteEndElement() ' TextRun      writer.WriteEndElement() ' TextRuns      writer.WriteEndElement() ' Paragraph      writer.WriteEndElement() ' Paragraphs      writer.WriteEndElement() ' TexBox      writer.WriteEndElement() ' CellContents      writer.WriteEndElement() ' TablixCellNext  writer.WriteEndElement() ' TablixCells  writer.WriteEndElement() ' TablixRow  writer.WriteEndElement() ' TablixRows'End of Details Rows  writer.WriteEndElement() ' TablixBody  writer.WriteStartElement("TablixRowHierarchy")  writer.WriteStartElement("TablixMembers")  writer.WriteStartElement("TablixMember")  ' Group  writer.WriteElementString("KeepWithGroup""After")  writer.WriteEndElement() ' TablixMember' Detail Group  writer.WriteStartElement("TablixMember")  writer.WriteStartElement("Group")  writer.WriteAttributeString("Name"Nothing"Details")  writer.WriteEndElement() ' Group  writer.WriteEndElement() ' TablixMember  writer.WriteEndElement() ' TablixMembers  writer.WriteEndElement() ' TablixRowHierarchy  writer.WriteStartElement("TablixColumnHierarchy")  writer.WriteStartElement("TablixMembers")  'writer.WriteStartElement("TablixMember")ForEach fieldName In m_fields      writer.WriteStartElement("TablixMember")      writer.WriteEndElement() ' TablixMemberNext' writer.WriteEndElement() ' TablixMember  writer.WriteEndElement() ' TablixMembers  writer.WriteEndElement() ' TablixColumnHierarchy  writer.WriteElementString("DataSetName""tbdataset")  writer.WriteEndElement() ' Tablix  writer.WriteEndElement() ' ReportItems  writer.WriteEndElement() ' Body  writer.WriteStartElement("Page")  ' Page Header Element  writer.WriteStartElement("PageHeader")  writer.WriteElementString("Height""1.40cm")  writer.WriteStartElement("ReportItems")  writer.WriteStartElement("Textbox")  writer.WriteAttributeString("Name"Nothing"Textbox1")  writer.WriteStartElement("Paragraphs")  writer.WriteStartElement("Paragraph")  writer.WriteStartElement("TextRuns")  writer.WriteStartElement("TextRun")  writer.WriteElementString("Value"Nothing"ABC CHS.")  writer.WriteEndElement() ' TextRun  writer.WriteEndElement() ' TextRuns  writer.WriteEndElement() ' Paragraph  writer.WriteEndElement() ' Paragraphs  writer.WriteEndElement() ' TextBox  writer.WriteEndElement() ' ReportItems  writer.WriteEndElement() ' PageHeader  writer.WriteEndElement() ' Page  writer.WriteEndElement() ' ReportSection  writer.WriteEndElement() ' ReportSections' DataSources  writer.WriteStartElement("DataSources")  writer.WriteStartElement("DataSource")  writer.WriteAttributeString("Name"Nothing"tbdata")  writer.WriteStartElement("DataSourceReference")  writer.WriteEndElement() ' DataSourceReference  writer.WriteEndElement() ' DataSource  writer.WriteEndElement() ' DataSources'DataSet  writer.WriteStartElement("DataSets")  writer.WriteStartElement("DataSet")  writer.WriteAttributeString("Name"Nothing"tbdataset")  writer.WriteStartElement("Query")  writer.WriteElementString("DataSourceName"Nothing"tbdata")  'writer.WriteElementString("CommandText", Nothing, "/* Local Query */")  writer.WriteElementString("CommandText"Nothing"TableDirect")  writer.WriteEndElement() ' Query'Fields  writer.WriteStartElement("Fields")  ForEach fieldName In m_fields      writer.WriteStartElement("Field")      writer.WriteAttributeString("Name"Nothing, fieldName)      writer.WriteElementString("DataField", fieldName)      writer.WriteElementString("rd:TypeName", fieldName.GetType.ToString)      writer.WriteEndElement() ' FieldNext  writer.WriteEndElement() ' Fields' rd datasetinfo  writer.WriteEndElement() ' DataSet  writer.WriteEndElement() ' DataSets  writer.WriteEndElement() ' Report' Flush the writer and close the stream  writer.Flush()  stream.Close()  'Convert to StreamDim myByteArray AsByte() = System.Text.Encoding.UTF8.GetBytes("D:\MyTestReport2.rdlc")  Dim ms AsNewMemoryStream(myByteArray)  'Supply Stream to ReportViewer  ReportViewer1.LocalReport.LoadReportDefinition(ms)  ReportViewer1.LocalReport.Refresh()

When I open rdlc in designer I get following error

"Data at the root level is invalid."

When I run the aspx I get following error

  • An error occurred during local report processing.
  • The definition of the report '' is invalid.
  • The definition of this report is not valid or supported by this version of Reporting Services.
  • The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas.
  • Details: Data at the root level is invalid. Line 1, position 1.

Can anybody guide me?

     

Comparatif in the same dataSet

$
0
0

Hi everybody

I have a report that contain 1 Dataset, but 4 tables.

Difference between tables is in the filter of the tablix.

The data contains infos from this year and last year, 2 tables this year, 2 tables  last year.

Now the 5th table should contain comparatif between the 2 years.

Can I query a Dataset????? Help.

"free design" on report body

$
0
0

Hi,
Few days ago I found accidentally a MSDN tutorial explaining how to make a "free design" into the body so you could add several texboxes, and other stuff (rectangles,...)

and make it work as you were using rows but with completly free design like when we used to with old nav report.

any1 knows where is is?

thanks!

Accessible Reports for JAWS Screen Reader

$
0
0

Hi there,

I'm developing some Reporting Services reports to be deployed in SharePoint (Integration Mode). However about 30% of my user base are blind and therefore use JAW screen reader to access these reports. The only solution I found online was to add an HTML render extension with accessibletablix enabled. This solution implies that users will have to export the report to HTML4.0 to have access to the accessible reports. This solution is however not working because all reports using grouping are read in a very inconsistent way by JAW reader after it is exported to HTML4.0. 

I therefore decided to create accessible version of each report to make JAWS read the report in a moderately accessible way (Although not the best). The problem is that even with the accessible version, users still have to export to HTML4.0, which is definitely not a good solution in terms of user experience. Is there a way to enable the accessibletablix in the report such that the default report view in SharePoint will be accessible without the need to export to HTML4.0?

Are there some tips on creating accessible report with basic groups?

Thanks 

Dan

 

Set Parameters in SSRS report

$
0
0

I tried to setup 2 new parameters ((@InvoiceStartDate and (@InvoiceEndDate) into my SSRS reports.  Below is the query, I have included these 2 new parameters.  When I ran the report, I have entered the invoice date from '04/01/2014' to '07/30/2014'.  However ,  the data output show as in the column header as '04/2010', '04/2011', '04/2012', '04/2013' , '04/2014'.  But my date input did not include Year 2010, 2011, 2012, 2013'.  why the data output show so many years?  Did I do something wrong? please help

Select

Invoice Date,

Invoice Year,

Invoice Quarter,

Invoice Month,

Billing Qty,

Billing Amount,

From Table Name

Where  ([Invoice Date] Between (@InvoiceStartDate) and (@InvoiceEndDate))

order by [Invoice Date]


Josey Tang


I have two text boxes at the bottom of my report design...one seems to export to Excel fine while the other does not

$
0
0

I have two text boxes at the bottom of my data Tablix...each has a different font and both are OUTSIDE the Tablix. Textbox76, which is a disclaimer, which appears above Textbox64 does not seem to want to export to Excel as its own row. However Textbox64 which appears underneath it seems to export and display in Excel just fine. I did check the obvious and look at the Hidden property and both are set to Hidden = False.

So why would my one Textbox line export and appear fine within the Excel export but the other one would not?

I hope this isn't too vague and I hope there's a simple explanation. My first thought is to include both sets of text within one Textbox...but if I don't have to do this then all the better.

Thanks for your review and am hopeful for a reply.

SSRS and SSMS show different results with identical queries

$
0
0

I've searched the forums and found similar issues, but nothing quite like what I've experienced. Here goes:

I'm runnning SSRS on SQL Server 2014, designing in Visual Studio 2013 Premium.

I have the following query, designed in SSMS. Normally I use parameters, but for the initial design I hard code them all in to ensure I get the correct data:

SELECT ESXACCTR.LEVEL_5 AS 'AcctNum', ESXACCTR.LEVEL_5 + '  ' + ESXACCTR.ACCT_TITLE AS 'Account', ESXTRANR.DOC_DATE, ESXTRANR.DOC_DESC, ESXTRANR.DOC_REFERENCE, 				CASE ESGTRAND.DEBIT_CREDIT WHEN 'C' THEN ESGTRAND.AMOUNT * - 1 ELSE ESGTRAND.AMOUNT END AS AMOUNT, ESGBUDPD.AMOUNT_3 AS 'Requested Budget', 				ESGBUDPD.AMOUNT_6 AS 'Approved Budget'
FROM ESXTRANR INNER JOIN
ESGTRAND ON ESXTRANR.TRAN_DOC_NO = ESGTRAND.TRAN_DOC_NO AND ESXTRANR.DOC_YEAR = ESGTRAND.DOC_YEAR INNER JOIN
ESXACCTR ON ESGTRAND.ACCT_ID = ESXACCTR.ACCT_ID AND ESGTRAND.DOC_YEAR = ESXACCTR.ACCT_YEAR INNER JOIN
ESGBUDPD ON ESXACCTR.ACCT_ID = ESGBUDPD.ACCT_ID AND ESXACCTR.ACCT_YEAR = ESGBUDPD.BUD_YEAR
WHERE (ESXTRANR.DOC_YEAR = 2015) AND (ESXACCTR.LEVEL_1 = '100') AND (ESXACCTR.LEVEL_4 = '428') AND (ESXACCTR.LEVEL_5 = 53372)

In SSMS this returns two rows, as expected. I copy the query into SSRS, and I only get one row. This is what I've done to troubleshoot so far:

  • I've logged into SSMS using the same local SQL account AND logged into SSRS using an admin account, to ensure it's not a permissions issue.
  • I've downloaded the RSD file from the server and confirmed that the query matches
  • I've opened the RSD file locally from my TFS repository and confirmed that the query matches
  • I've deployed the project to make sure it's not something wonky with my local environment; no change.

Any ideas? I can share the RSD file if you think it may help.

Thanks!

Linking drillthrough report that exist in sub-folder

$
0
0

Hi,

I have deployed report on Report server and  wanted to show one report only and hide drillthrough report in subfolder. but I'm not able to simple link drillthough report by saying "/Drill Through Report/=iif(Fields!SCHOOL_TYPE_CD.Value = 6, nothing, iif(Fields!SCHOOL_TYPE_CD.Value = 7, "Suspension Summary zone" , "Summary Suspension System Detail")) "

i have condition specified so that not everything is clickable in the report. 

any ideas how to make this drillthough report to work in sub-folder?

Issue to refresh parameter dropdown lists

$
0
0

I have a report with 6 ID parameters which make 6 dropdown lists (multiple value selections). The default values are all of the values from 6 tables. When I selected one value from the dropdown list 1, all other dropdown lists were refreshed. But when I went back to the dropdown list 1 and checked "(Select All)" the other dropdown lists (2 to 6) did not select "(Select All)" although they were refreshed. Any help will be appreciated. 

Thanks.


Bugs in SSIS?

Report server error

$
0
0

Hi,

In report server log file we are seeing the below error but unable to identify the exact root cause.During this time we didn't see any error in UI side as well.

Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout or low disk condition within the database.;
 Error in getting session data: Expired Session: SessionID
i INFO: LoadSnapshot: Item with session: SessionID, reportPath: , userName: ENT\servername not found in the database.

I have verified there is no problem with connection string and please let me know what will be the issue at this time.

Here is my configuration

Report server is configured in one server.

Database is configured in another server.

Thanks,

Vijay

Viewing all 20764 articles
Browse latest View live


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