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

SSRS API v2.0 \DataSources Add New

$
0
0

Anyone able to shed light on adding a new DataSource using the API endpoint?  While the swagger docs show the expected properties, there is no indication of required or not and the exceptions don't easily tie back to identify what's being expected.

https://app.swaggerhub.com/apis/microsoft-rs/SSRS/2.0#/DataSources/AddDataSource

I've been able to identify that this error: Expected parameter 'Prompted User Credentials' is missing

is raised when the "CredentialsByUser" object (or one of it's child properties isn't set).  The standard defaults for when you don't want to prompt the user to login would be NULL and default boolean value would be False... but yet it's still required

"CredentialsByUser"= @{
  "DisplayText"= $null;
  "UseAsWindowsCredentials"= $false;
};

I'm currently fighting against the error: Expected parameter 'User ID' is missing which I suspect is in reference to the "ParameterValues" property.  I already have the "CredentialsInServer" UserName and Password set which are indicated as being where the SQL Server creds should be set for the connection string (btw plain text pwd is bad mmmkay).  

The ConnectionString doesn't currently have creds included in it only the Data Source and Initial Catalog as my expectation is that the "CredentialsInServer" will be used.  Do I need to add a placeholder in the ConnectionString?  Something else?

{
  "Id": "01234567-89ab-cdef-0123-456789abcdef",
  "Name": "string",
  "Description": "string",
  "Path": "string",
  "Type": "Unknown",
  "Hidden": true,
  "Size": 0,
  "ModifiedBy": "string",
  "ModifiedDate": "2017-04-13T15:51:04Z",
  "CreatedBy": "string",
  "CreatedDate": "2017-04-13T15:51:04Z",
  "ParentFolderId": "01234567-89ab-cdef-0123-456789abcdef",
  "ContentType": "string",
  "Content": "string",
  "IsFavorite": true,
  "IsEnabled": true,
  "ConnectionString": "string",
  "DataSourceType": "string",
  "IsOriginalConnectionStringExpressionBased": true,
  "IsConnectionStringOverridden": true,
  "CredentialsByUser": {
    "DisplayText": "string",
    "UseAsWindowsCredentials": true
  },
  "CredentialsInServer": {
    "UserName": "string",
    "Password": "string",
    "UseAsWindowsCredentials": true,
    "ImpersonateAuthenticatedUser": true
  },
  "IsReference": true,
  "Subscriptions": {
    "Id": "01234567-89ab-cdef-0123-456789abcdef",
    "Owner": "string",
    "IsDataDriven": true,
    "Description": "string",
    "Report": "string",
    "IsActive": true,
    "EventType": "string",
    "ScheduleDescription": "string",
    "LastRunTime": "2017-04-13T15:51:04Z",
    "LastStatus": "string",
    "ExtensionSettings": {
      "Extension": "string",
      "ParameterValues": {
        "Name": "string",
        "Value": "string",
        "IsValueFieldReference": true
      }
    },
    "DeliveryExtension": "string",
    "LocalizedDeliveryExtensionName": "string",
    "ModifiedBy": "string",
    "ModifiedDate": "2017-04-13T15:51:04Z",
    "ParameterValues": [
      {
        "Name": "string",
        "Value": "string",
        "IsValueFieldReference": true
      }
    ]
  }
}


Unable to bind a new certificate in SSRS 2008 R2

$
0
0

Hi

I've had a SSL wildcard certificate successfully in use, unless it had to be replaced because of its age.

Now I've imported a new certificate, but unfortunately I'm unable to set it up in the SSRS Configuration Manager Console (Web Service URL / Report Manager URL), because "We were unable to create the certificate binding". 

 

Here is the Error Message: 

 

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070520

 ---> System.Runtime.InteropServices.COMException (0x80070520): A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)

   --- End of inner exception stack trace ---

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.CreateSSLCertificateBinding(String application, String certificateHash, String ipAddress, Int32 port)

   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.CreateSSLCertificateBinding(UrlApplication app, String certificateHash, String ipAddress, Int32 port)

 

I've also deleted the existing bond in the netsh console with "netsh>http delete sslcert ipport=0.0.0.0:443", but this still doesn't fix the issue.

Thanks in advance

Unable to bind a new certificate in SSRS 2008 after old certificate expired and renewed it again

$
0
0

Hi All,

We had an issue today. Certificate which was attached to SSRS on port 443 (port 443 to access report from external network and port 80 is to access report on internal/domain network) got expired and after renewal, we got new certificate. We were trying to attach the certificate and we were getting binding error. 

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070520

---> System.Runtime.InteropServices.COMException: A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)

   --- End of inner exception stack trace ---

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.CreateSSLCertificateBinding(String application, String certificateHash, String ipAddress, Int32 port)

   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.CreateSSLCertificateBinding(UrlApplication app, String certificateHash, String ipAddress, Int32 port)

and neither internal nor external link was working. 

To Make internal link work you got to follow below steps. Using CMD command you got to delete the URL and Modify config file to remove deleted URLs.  After doing this exercise, Inter Link on port 80 started working but still we had an issue with External link on port 443 and that was because we were not able to attach the certificate to SSRS. 

After digging it we found that certificate was provided without Private key and it was not as . pfx.

We requested our certificate provider to give us certificate with suffix .pfx and also provide the PRIVATE KEY. Then You got to attach this certificate to IIS on port 443 and then restart IIS and next come back and try attaching to SSRS and it went well. 

Steps to follow: 

http://sqlvandalism.com/2017/03/13/what-to-do-when-you-get-errors-binding-ssl-certificates-to-reporting-services/

 

https://stackoverflow.com/questions/34372139/configure-ssrs-for-ssl

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8b78f6ca-d4db-4de1-a642-6223aa0252e7/unable-to-bind-a-new-certificate-in-ssrs-2008-r2?forum=sqlreportingservices


Thanks Shiven:) If Answer is Helpful, Please Vote


SSRS 2008 Toolbar button greyed out/disabled

$
0
0

Hi Guys,

I'm trying to use Report Viewer control to view a remote report. The report is displayed fine however, none of the icons in the toolbar are enabled including the Export Option. What am I doing wrong ? Any pointers are greatly appreciated.


SSRS Report XML export Issues

$
0
0

Hi Experts,

I have below issues in SSRS ,Kindly do the needful.

When we export an SSRS report as an XML, the generated XML report has fully qualified internal domain name of the reporting server.

We need to come up with a solution , wherein the generated XML should contain only the report data without the details of the reporting server.

Regards,

Sharma


Column not summing in report builder

$
0
0

Hello
I have produced a report in report builder. Most weeks the report runs ok,however when
the report crosses into a new month e.g. Jan to Feb. it seems to split on the number of referrals whereas it should be a total number.
Within my SQL code it shows the split with the Year-month.
See example attached.

In report builder template my number of breaches is a summed and so is the reason for breach.

I have tried to sum my number of referrals but it is giving me 17 as the top line and then 184 as the bottom.
Are there any expressions i can use to give me the correct sum which would be 63

Open JSON stored in Postgres table to SSRS

$
0
0

Hi everybody!

I'm new to reporting services and I want to understand is it posssible or in which way I need to search solution for my task.

I have rows with json data in table that is stored in Postgres database.

Is there a way to extract data from this fields using SSRS to build report on them?

I will be very grateful for any hint in which way to move!


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)


Recommendation to migrate complex script mdx to dax

$
0
0
I need to migrate script MDX to DAX.

The script is very complex. Is there any recommendation how to start? How to deal with parameter? Many select unde select how to do the same way within dax.



    SELECT {un, 
           lib} 
    ON 0 , 
           [Vitesse par Tranche de mois].[Vitesse par Tranche de mois].[Vitesse par Tranche de mois].members 
    ON 1 
    FROM   ( 
                  SELECT STRTOSET(@dcr) 
                  ON 0 
                  FROM   ( 
                                SELECT STRTOSET(@circ) 
                                ON 0 
                                FROM   ( 
                                              SELECT {STRTOTUPLE(@datedebut):STRTOTUPLE(@datefin)} 
                                              ON 0 
                                              FROM   ( 
                                                            SELECT STRTOTUPLE(@vitesse) * STRTOSET(@reseau) * STRTOSET(@region)
                                                            ON 0 
                                                            FROM   [test]) ) ) ) 
    WHERE  ( 
                  STRTOSET(@gestionnaire),STRTOTUPLE(@datefin) ,LINKMEMBER(STRTOTUPLE(@datefin),[Mois Publication].[Mois de publication]) ,[Perimetre Ebusiness].[Périmètre E-Business].&[O] , ( - { [Origine_Marketing].[Entree Parcours].&[SiteAgent] } ) ,[EOptant].[EOptant].&[1] )

SSRS barcodes

$
0
0

SSRS displays Code39 font properly using 2008 and 2016.  When I used 2008, clicking the PRINT PREVIEW icon, the barcode would continue to display properly and I could then choose a printer.  Using 2016, PRINT PREVIEW automatically goes to PDF and the barcode does not appear as a graphical image, but is instead resolved to the underlying characters in a readable font.

Is there any way to bypass going to PDF?  If not, can I install a different PDF printer? 

I've tried using two different third party barcode generators. 

ID Automation kind of works, but it seems to require a larger area or else it distorts the image.  This is generally not a problem with regular reports as I can accommodate larger cells.  Haven't figured out how to print on a 2.8" label without distortion.

Also tried Neodynamics.  When I passed it the asterisk delimited character strings that worked with Code39 fonts using SSRS 2008, the generated barcode displayed was not scannable from any scanner.  When I remove the asterisk delimiters and pass it to Neodynamics, the barcode is scannable from my generic handheld scanner, but cannot be processed by the handheld scanners on the floor that are looking for different formats depending on what screen the user is on. 

Has anyone had success with either of these third party barcode vendors or any others? 

Thanks in advance.

Database downgrade detected

$
0
0

I am setting up a new Server and doing a backup restore of the ReportServer db and ReportServerTempdb. Restore works fine, restored encryption key fine. I'm sysadmin and have done this many times, but this stops me dead. When attempting to connect to the web service I get the Service is not available.

The line in the log reads... Database downgrade detected. The database schema version is newer than service schema version. I'm not using anything weird like a Power BI report server, just straight up SSRS , SQL version  

Microsoft SQL Server 2017 (RTM-GDR) (KB4505224) - 14.0.2027.2 (X64)  on both machines. Where do I find and fix the "different" schemas?

Thank you.


Paul J. Ilacqua

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

How to create an extra field in tablix for grouping codes in row

$
0
0

Hello

I need to get total by the code from 100 to 999 are earning and from 1000 to 9999 deduction, I union both queries and I  got

this, I would like to add a field that allow me to separate those code 

I would kie to have a report like this :


RDLC Showing Totals of Previous Pages At Header

$
0
0

Hi,

I have a sql statement that gets the price and names of products in receipts. More than one product may be bought in a single receipt. I created a table to select all the receipts. I need to get monthly total, daily total and grand total of all receipts and also the sum of a single receipt. I added three groups to the table; for one total of receipt, one for daily total, one for monthly total (from inner to outside).  

so my reports looks like this


receipt 1           01.01.2013

product1           10$

product2           20$

product3           30$

receipt total      60$

receipt 2           01.01.2013

product1           11$

product2           22$

product3           33$

receipt total      66$

Daily Total        126$

receipt 3           02.01.2013

product1           15$

product2           25$

receipt total      40$

Daily Total        40$

Montly Total     166$


receipt 4           02.02.2013

product1           50$

receipt total      50$

Daily Total        50$

Montly Total     50$

Grand Total      216$

Numbers of receipts in a page is not constant, even if a receipt has too many products, its rows may be splitted into several pages.

My reports works fine. But I should print in the header, the sum from first record till the last record in the last page. 

I've read the thread,

http://social.msdn.microsoft.com/Forums/is/sqlreportingservices/thread/1e46ee76-bcb5-4541-9627-6fef5ebef060

But it does not work. When i write down the code (Last(ReportItems!textbox12.Value)) in the header, even if it is supposed to add till the last record in the last page but it adds the values in the current page!


Thanks in advance...

I want to fix page wise total amount on last page in rdlc report?

$
0
0

1-Open the report code window by clicking Report Menu-->Report Properties, and the click on the code tab

2-Add the below code in the code-window

Public Shared PageTotal As System.Collections.Generic.Dictionary(Of Integer, Decimal)
Public Shared Function Total(ByVal Item As Integer, byval Amount As Decimal) As Decimal
If PageTotal Is Nothing Then
PageTotal = New System.Collections.Generic.Dictionary(Of Integer, Decimal)
End If
If Not PageTotal.ContainsKey(Item) Then
PageTotal.Add(Item, Amount)
End If
Return Amount
End Function
Public Shared Function GetTotal(ByVal Item As Integer) As String
if Item=1 then return ""
Return PageTotal(Item-1).ToString()
End Function

3-On the report footer, replace your present expression with the below =Code.Total(Globals!PageNumber,Sum(Reportitems!Credit.Value))

4-On the page header, add a text box and enter below expression =Code.GetTotal(Globals!PageNumber)

But when we update in value after that this show old value on header.

Please help me



SSRS - One parameter menu to filter every Fields

$
0
0
Hi SQL experts !

I am getting used to report developments under SSRS (2012, moving soon to 2016), but I have one insolvable problem.

To make it quick, my job is to migrate reports from Hyperion Interactive Reporting (know as BRIO) to SSRS. That one functionnality I am in trouble with was existing in BRIO, but I can't manage to do the same with SSRS.

Here is an example of an old report :




The user can choose to filter any fields he wants, with an operator of his choice. He can do that on the number of fields he wants, the selected filters are stored and shown at the right (it's in French btw, sorry for that). Then, he asks for execution and the tables will appear, with all the filters selected.

I was already in trouble making that same kind of filter working only one time, because of the operator. My solution was to create 3 parameters, including one with operators, and write all the possible cases in my SQL Stored Procedure.

Here is how it actually looks in SSRS for now, and an idea of my code :


(I have 3 parameters on the left to create that filter, but they only work one time. They can't store a first filter, then a second, etc... and apply all of them when I ask for the report's display)



(I did cut the request with [...] to show you the IF with @operator, and the @ColName < @ValueToFilter in the end, it's not a mistake)


This is a very annoying situation, my actual reports are obviously not functionnal but I can't find any idea. Is there a way to do the same with SSRS ? Using multiple times the same parameters, or letting the users filter on the fields they want before of even after execution ? I couldn't find any proper way to do it anywhere on the net.


Thank you by advance for you help or ideas and greetings from Paris,


Robin

Custom Security Sample for SSRS 2019?

$
0
0

Hello,

We have been using the code that was posted on this url:
https://github.com/microsoft/Reporting-Services/tree/master/CustomSecuritySample2016
when implementing custom authentication for SSRS 2016.
We need to switch to SSRS 2019 now, but can't find any documentation on how to do the same thing on this version.
We are curious whether this possibility is still available for SSRS 2019 and if yes, how to achieve it.

Can someone help?

Is there a font hierarchy in SQL Server Reporting Services?

$
0
0

In our .rdl reports the `Arial MS Unicode` font is used. It's not installed with Windows Server 2019 anymore, as Microsoft stop paying for [it][1]:

> When Microsoft included Arial Unicode MS with earlier versions of
> Office, Microsoft paid a licensing fee to The Monotype Corporation,
> which is the copyright holder for the font. Someone at Microsoft
> decided it was no longer worthwhile to continue paying that fee, so it
> was removed from the Office package.

The license [cost][2] is pretty high for a single server with few cores - more then 7 000 $ per year.

So, we decided to use as alternative a new font family - [Google Noto Fonts][4] - it's free and support more characters then `Arial MS Unicode`.

The issue is that the fonts for different languages comes in different files and the files are of different types and cannot be unified. Also, as I am understanding there is no need to unify these files as in `PDF` the font is embedded and can increase dramatically the file size.

So, my idea is to install all of the fonts on the machine and let the SQL Server Reporting Services to embedded only the needed ones. So, by default all text with have font `Nato Sans`. 

The issue is when a text cannot be visualized by `Nato Sans`, for example some `Punjabi`: 

    ਤੇਜ਼ ਭੂਰੇ ਲੂੰਬੜ ਆਲਸੀ ਕੁੱਤੇ ਨੂੰ ਛੱਡ ਦਿੰਦਾ ਹੈ 

instead `Nato Sans Gurmukhi`, different font is used - `Raavi`. 

I am wondering is there any setting controlling how fonts are selected in case the current one is not installed on the machine or not able to visualize the corresponding text?

The general idea is to install all `Nato` fonts and tell the reporting services to use them - in this way, all the reports will have fonts from the same family and the fonts will be embedded only when needed. 

Note, the issue is generally in PDF files only, because in Excel or Word documents, there is no font embedding and the program is looking for fonts from the client machine.



  [1]: https://answers.microsoft.com/en-us/office/forum/office_365hp-word/arial-unicode-ms-font-missing/3d389ec7-dfaa-4002-adfd-5b1491cea8a1/
  [2]: https://www.fonts.com/font/monotype/arial-unicode
  [3]: https://i.stack.imgur.com/7Erta.png
  [4]: https://www.google.com/get/noto/

SSRS Combined Column and line chart

$
0
0

Hi All,

I have a requirement to have a combined column and line chart in same graph for one category field in database.

My database structure is like this

Month   category value

Jan          a                20

Jan          b               30

Jan          c               40

Feb         a              30

Feb          b            40

Feb           c            60

I am population value on y-axis month on x-axis(category group) and category as series group. How can I pick category "c" as line chart while "a" and "b" are column chart. can this be achived on chart without changing source dataset  Thanks for your help


SSRS 2016 Very Slow For some Users

$
0
0

Good mornings all,

reports are very slow slow to show for some users , it take alot of time to show the initial page (Even no query just some forms and text),  when i try with my credentials on his computer it works fast, my account isn't sql server admin or dbadmin or something like that

Client Os:  Win 7 32bit,  I5 processor, 8gb RAM, Firefox 72(last)

Server Os: Widows server 2016 (HP DL160 G6) 16GB RAM, INTEL XEON

Sql: Sql server 2016

Hope find some help,

Thanks


Viewing all 24955 articles
Browse latest View live


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