Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all 24955 articles
Browse latest View live

REST API - Execute Actual Dataset Query

$
0
0

I'm 90% sure I have the answer to this but just want to confirm what seems to be a NEGATIVE answer to my questions. Looking through the REST API documentation, questions on this forum, various online documentation here's what I've concluded.

1) The current REST APIs provide NO way to execute the dataset (it's embedded SQL query) and return the actual data from the table in the dataset query. Is this correct?

2) What I see in the REST APIs is the capability to only do various "administrative" functions with SSRS. Is this correct?

Thanks for answering what may be a dumb question. If the above are true is there any plan by Microsoft to add to the REST APIs the capability for question #1?

Bob Siegel


Multiple condition containing Parameter condition for Sum

$
0
0

Hi,

I want to basically count any id which contains below conditions:

=Sum(iif((Fields!firstvalue.Value > 45) 
and (Fields!secondvlaue.Value = "Y")
and (Fields!startdate>= Parameters!STARTDATE.Value)
and (Fields!startdate <= Parameters!ENDDATE.Value)
and (Fields!EndDate >= Parameters!STARTDATE.Value),1,0))

I receive error.  

will appreciate your help

This SqlTransaction has completed; it is no longer usable

$
0
0

Hello,

I am receiving the error "This SqlTransaction has completed; it is no longer usable" when embedding an SSRS report in an iframe.  The report loads fine the first time, but errors after that.  Using SSRS version 14.0.600.1453.

I have looked at several forums regarding this error but have not found any solution.

Here is the error from the log file:

20-10:48:00:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: , Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: The report execution j4fv22yorfcud1jjd0k50245 has expired or cannot be found.;
library!ReportServer_0-1!2ca8!02/18/2020-10:48:00:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.ExecutionNotFoundException: The report execution j4fv22yorfcud1jjd0k50245 has expired or cannot be found.
   at Microsoft.ReportingServices.Library.DatabaseSessionStorage.WriteLockSession(SessionReportItem sessReport, Boolean bCheckVersion)
   at Microsoft.ReportingServices.Library.SessionReportItem.WriteLockSession(Boolean bCheckVersion)
   at Microsoft.ReportingServices.Library.RenderStrategyBase.LockSession()
   at Microsoft.ReportingServices.Library.RenderStrategyBase.ExecuteStrategy(OnDemandProcessingResult& processingResult)
library!ReportServer_0-1!2ca8!02/18/2020-10:48:00:: 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.;
library!ReportServer_0-1!2ca8!02/18/2020-10:48:00:: e ERROR: Transaction commit failed. Exception thrown: 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.InvalidOperationException: This SqlTransaction has completed; it is no longer usable.
   at System.Data.SqlClient.SqlTransaction.ZombieCheck()
   at System.Data.SqlClient.SqlTransaction.Commit()
   at Microsoft.ReportingServices.Library.ConnectionManager.CommitTransaction()
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Library.Storage.WrapAndThrowKnownExceptionTypes(Exception e)
   at Microsoft.ReportingServices.Library.ConnectionManager.CommitTransaction()
webserver!ReportServer_0-1!2ca8!02/18/2020-10:48:00:: e ERROR: Reporting Services 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.InvalidOperationException: This SqlTransaction has completed; it is no longer usable.
   at System.Data.SqlClient.SqlTransaction.ZombieCheck()
   at System.Data.SqlClient.SqlTransaction.Commit()
   at Microsoft.ReportingServices.Library.ConnectionManager.CommitTransaction()
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Library.Storage.WrapAndThrowKnownExceptionTypes(Exception e)
   at Microsoft.ReportingServices.Library.ConnectionManager.CommitTransaction()
   at Microsoft.ReportingServices.Library.SessionReportItem.ThreadNoLongerUseThisSession()
   at Microsoft.ReportingServices.Library.ReportExecutionBase.InternalExecuteReport()
   at Microsoft.ReportingServices.Library.ReportExecutionBase.Execute()
   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
   --- End of inner exception stack trace ---
   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
   at Microsoft.ReportingServices.Library.ExecutionDisposerProxy.ExecuteReport()
   at Microsoft.ReportingServices.Library.RenderReportAction.PerformExecution()
   at Microsoft.ReportingServices.Library.RenderReportAction.Render()
   at Microsoft.ReportingServices.Library.StreamRequestHandler.RenderReport(SessionfulClientRequest sessionManager)
   at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderReport(SessionfulClientRequest sessionManager)
   at Microsoft.ReportingServices.Library.StreamRequestHandler.PerformStreamedOperation(StreamedOperation operation)
   at Microsoft.ReportingServices.Library.StreamRequestHandler.RenderItem(ItemType itemType)
   at Microsoft.ReportingServices.Library.StreamRequestHandler.ExecuteCommand()
   at Microsoft.ReportingServices.WebServer.ReportServiceHttpHandler.RenderPage()

SSRS expression: iif string then associated date field

$
0
0

Hi everyone,

I tried all kinds of variations of the following in my ssrs expression:

=iif(Fields!varchar.Value = "ABC20",
Fields!StartDate.Value,Nothing)

It always yields the Nothing clause or it shows as #Error when debugging.

The data type of StartDate is Date (Format= yyyy-mm-dd). Your help in resolving this is much appreciated.

Thanks,

Crash B


SSRS Windows Auth not authenticating, how to fix??

$
0
0

SQL Server 2017 with Report Services and Analysis Services.

Created and installed local certificate for internal usage.

Configured reporting services to know about internal certificate, certificate is installed to computers via Group Policy and the site is trusted via Group Policy.

<Authentication>
<AuthenticationTypes>
<RSWindowsBasic/>
<RSWindowsNegotiate/>
<RSWindowsKerberos/>
<RSWindowsNTLM/>
</AuthenticationTypes>
<RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>
<RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>

    <authentication mode="Windows" />
    <identity impersonate="true" />

Despite all these settings, people are still being prompted to log in again and again upon accessing https://reports.domain.local/reports

We want people within domain.local to not have to log in, this is Windows Authentication...they can click 'Remember my credentials...' but this does not persist across sessions, people still have to put in passwords.

The SPNs all exist, if they are needed.

I don't know that we need to do anything with Windows Credentials for Windows Authentication to work?? I have not seen anything to this effect...

Thank you, Tom


Missing Relationship Pane in Query Designer

$
0
0

Hi all,

Has anyone encountered a missing relationship pane within the Report Builder Query Designer (there is nothing between the 'selected fields' and 'Applied Filters' panes.

This does not appear a common problem online although I can find no way of establishing a relationship between my datasets to report against multiple datasets in a single Tablix.

Any help would be most appreciated!

Thank you,

Andrew

Nested IIF statement in SSRS report

$
0
0

=IIF(Fields!SALES_TYPE.Value=Transfer, "Transfer Order", IIF(Fields!SHIP_TYPE.Value="", "No Carrier", Fields!SHIP_TYPE.Value))

I feel like I"m using the correct methodology in the above If then else statement in my SSRS report, but I get the following error message.  Any help appreciated!  Error Msg:

The GroupExpression expression for the tablix ‘Tablix1’ contains an error: [BC30201] Expression expected.

Subscription with sensitive information

$
0
0

Hi All,

Currently i send report to a subset of users an excel sheet (downloaded from SSRS Report) and send an encrypted email. Is there a way to do the same thing using subscriptions. When i create an email subscription to a person , will it be sent encrypted?

If that is not feasible, what would be the best way to automate the report?

Thanks


determining the difference between values in the same column (Microsoft Report Builder)

$
0
0

I'm trying to find the change in two values in the same column, sharing a value in a separate column. 

I was able to find an expression to do this, however I was not able to set it as a calculated field because it included the previous function. 

Is there any way around that?

Thanks

Object reference not set to an instance of an object.

$
0
0

SharePoint 2013, SQL Server 2012 SP 4

Greetings. We're running SSRS integrated in SharePoint. There are two times when I get this message:

  1. I can open a report and it runs as expected, until I click the arrow for it to go to page 2.  
  2. When I attempt to manage a Subscription for that same report. 

I see this error all over the web, but not for this specific scenario. Any ideas?


Thanks in advance! ChrisRDBA

Charting activity as a Gannt: Almost there

$
0
0

I'm almost right where I want to be. Data and chart look like:

I cant for the life of me figure out how to get each entry to align and display as one long line. I know its something stupid.

Thanks for any help you can offer! 



Dude!

Cannot Access sharepoint list from Report builder

$
0
0

Hi,

I am site admin on my sharepoint site. I am using RDP to logonto the domain. I opened report builder and when i enetered my credentilas to create a data source from the sharepoint list i am getting error message. I can access the site from the web by typing in the url , please need help

System.Web.Services.Protocols.SoapException: An error occurred when accessing the specified SharePoint list. The connection string might not be valid. Verify that the connection string is correct.  ---> Microsoft.ReportingServices.DataExtensions.SharePointList.SPDPException: An error occurred when accessing the specified SharePoint list. The connection string might not be valid. Verify that the connection string is correct.  ---> System.Net.WebException: The request failed with an empty response.
   at Microsoft.ReportingServices.Library.ReportingService2010Impl.TestConnectForDataSourceDefinition(DataSourceDefinition DataSourceDefinition, String UserName, String Password, String& ConnectError)
   at Microsoft.ReportingServices.WebServer.ReportingService2010.TestConnectForDataSourceDefinition(DataSourceDefinition DataSourceDefinition, String UserName, String Password, String& ConnectError)

rs.exe Unable to connect to remote host.

$
0
0

Greetings. I'm trying to test out rs.exe to migrate my SharePoint SSRS environment over to a Power BI Report Server. I've installed the PBIRS box on my local laptop for this test, and I have admin rights on it. Anyways following this link, I'm trying to use rs.exe to do this for me. 

Here's whats happening:

rs.exe -i ssrs_migration.rss -e Mgmt2010 -s https://mySSRSSharePointBox/_vti_bin/reportserver -v st="bi" -v f="Reporting Services/Database Services/PowerBIMigrationTest" -u domain/username -p myPassword -v ts=http://myLaptopName/ReportServer -v tu="domain/username" -v tp="myPassword" 

Retrieve and report the list of items that will be migrated. You can cancel the script after step 1 if you do not want to start the actual migration.

Retrieving schedules:

Retrieving catalog items. This may take a while.
Report: https://mySSRSServer/bi/Reporting Services/Database Services/PowerBIMigrationTest/Database Tables.rdl

--Migration Source--
Protocol: https
Server name: myServer
Mode: SharePoint integrated
Location: /bi/Reporting Services/Database Services/PowerBIMigrationTest

--Migration Target--
Protocol: http
Server name: myLaptop
Mode: Native
Location: /

Press <Enter> to start migration of items listed above or <Ctrl>+<C> to cancel.

Migrating Report: https://mySSRSServer/bi/Reporting Services/Database Services/PowerBIMigrationTest/Database Tables.rdl
Unable to connect to the remote server

--- END OF OUTPUT ---
The command completed successfully

Any ideas?


Thanks in advance! ChrisRDBA

ReportService2010 Web Service Can't Upload Resource File with Big Size

$
0
0

Dear All,

Currently, I'm in the middle of a project implementation. I have to create a simple Console Application program that can send resource file (eg. *.mdb, *.xls, *.img, and other files beside *.rdl) with estimated size between 500 MB-2 GB to the SSRS.

In order to do that, I found a way that you can send any files from the ReportService2010 web service that the SSRS have by default.

the program was completed. and after it's done, i tested it first with file less than 50 MB. at first attempt, the program errors and the message is"maximum length request exceeded". but I'm able to fix it by configuring the web.config file and setmaxRequestLength to 2 GB inside the <httpRuntime> Attribute.

the program was working fine until I'm uploading file with size more that 700 MB. the error message was different. this time the error message said that"the operation has timed out" with upload time never exceeded 1:40 minutes.

the next thing I do is extending the timeout operation. I'm not finding any clue in the forum. but i found it myself that you can set the timeout operation in the ReportService2010 web service by setting theReportService2010.Timeout property to the value you want. and I set it to3 hours.

and after exactly 3 hours has passed. the operation is still timed out.

I have no idea how to solve this issue, is there anything I can work on to make this work?

Thanks for your answer, I appreciate any answers given.

Best Regards,
Chaidir Ali Assegaf

Pass several values from one parameter to dataset?

$
0
0

Hi,

I have a parameter for departments in my report. The parameter has the following descriptions:

  • TE/PD (value ...)
  • PD (value 1620)
  • TEA (value ...)
  • TEE (value 1610)
  • TEEL (value ...)
  • TEK (value ...)
  • TEM (value ...)
  • TES (value ...)

The user is only allowed to choose one value at the moment. The departments are built from cost units, and one department can have several cost units, i.e. PD = 1620 and 1630 or TEE = 1610, 1611, and 1612.

The problem is how do I have to integrate the parameter in the where clause in my dataset? I have a column named department in the dataset which contains each cost unit (i.e. 1620, 1611, ...).

My statement looks like this:

				where 
					s.project = @Project
					and s.department in (@Department)
					and s.external_status in ('P', 'V')
					and s.status_drawing != 'Drawing cancelled'
					and s.planned_availability_month != 'Drawing not scheduled

This solution does not work, because I cannot assign several values to one parameter value (TEE should have 1610, 1611 and 1612, but I can only assign one value).

Any ideas how to solve my problem?

Best regards
Patrick



SSRS Report Settings for Datamax I-4206 Printer

$
0
0

Looking for design specs for a Datamax DMX I-4206 label printer for my SSRS report.  I've searched the internet extensively, and found nothing so far.  I'm looking for settings such a height, width, margins, padding, etc.

I'm developing the label report (RDLC), so don't have access to the printer.

Thanks

Use SSRS Report Builder 3.0 to add Word Index Fields

$
0
0

Good morning,

I am using report builder 3.0 to make reports from Epicor. The reports contains part numbers and a bunch of part specific data. The parts are sorted in order of their due date on the report. I need to add an index with alpha-sort part numbers listing the page each part appears on. Normally I render reports into PDF. There are a few reasons I am looking at Word for this functionality.

1. Report builder does not let me access the page number outside of the page headers/footers. So I can't design a table with the page numbers and part numbers in SSRS report builder.

2. PDFs do not have indexes. I can create a linked table of contents, but again these end up getting sorted by due date, so it is very difficult to look up which page a specific part number appears on.

2. Word has a great index creation tool, but it must be done more or less manually.

After a lot of back and forth over at epiusers.help, I found that creating this index is not a trivial task. See the link for more history. (Go search "SSRS Report in PDF - How to Include a Page Index" on that site to find the related post.)

My goal is to have the { XE } index field flags added at the report builder level. I tried editing my part number field to include that XE flag, but since Word didn't create the flag, it is just text in the Word doc.

Can Word index field tags be added to a field in SSRS report builder? If so, how?

Is there another better way to add an index (not a table of contents) to a report?

Thank you for your time.

Nate


Error:A custom role cannot contain both system-level and non-system-level tasks in the same role definition.

$
0
0
Hi
Am balaji.
am using SRs Report explorer using sql 2008 Reporting Service.
I have created a proxy in my application and am accessing it.
I have a UI where am adding a new user and associating the Roles to that particular report.
While doing it am getting this kind of error.
For ex:if i add SOCPAC\balaji.narasimhan and associate all the roles am getting this kind of error
That is hown below.
Can you plz tel me the method to trouble shoot this problem
Thanks
Regards
N.Balaji

A custom role cannot contain both system-level and non-system-level tasks in the same role definition. You must specify different roles for each category of tasks. ---> Microsoft.ReportingServices.Diagnostics.Utilities.MixedTasksException: A custom role cannot contain both system-level and non-system-level tasks in the same role definition. You must specify different roles for each category of tasks.

SSRS 2017 licensing issue with SQL217

$
0
0

We recently received an error from SSRS:
"The service is not available.  The evaluation period for this instance of Microsoft SQL Server Reporting Services has expired.  A license is no required."

From research on the good ole Internet, I have found 
"SSRS is part of the SQL Server package (assuming Standard or better Editions) and you do not need additional licensing if installed on the same server as the engine. The key should be the same as your SQL Server key - it's all part of the same suite."

After running "SELECT @@VERSION" shows I am licensed for:
"Microsoft SQL Server 2017 (RTM-CU16) (KB4508218) - 14.0.3223.3 (X64)   Jul 12 2019 17:43:08   Copyright (C) 2017 Microsoft Corporation  Standard Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor)".

I've even tried to update the SSRS build from 14.0.7116.41940 to 14.0.7255.2754, but I get the error:
"Error: Evaluation period has expired. Please upgrade to different edition before attempting to upgrade again."

Checking the logs I see"
Setup: Product currently installed. Based on version 14.0.7116.41940 this is a MajorUpgrade
Setup: Existing install with instanceId 'SSRS' has SKU 'SsrsEvaluation'"

Any idea of how to fix this issue, short of wiping the server and reinstalling SQL and SSRS?


Passing multi-value Parameters to "Go to Report"

$
0
0

I have a report that takes two parameters, year(s) and status both of which are multi-value.  I then setup a go to report link on a value that brings up another report and working as expected.  I want to setup a link back to the main report passing back in the originally selected values but this isnt working.  I set them up as parameters on the second report and displaying them but when the user clicks to go back to main via a go to report link I setup, the parameters are not selected.  

Report A - Year(s) and Status - Both multi-value

Report B - linked from A and passes in a unique ID.  I placed a go to report link back to A passing in Year(s) and Status but when A renders nothing is selected and user is forced to reselect their options. 

Thanks for any assistance

Viewing all 24955 articles
Browse latest View live


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