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

Question about authentication

$
0
0

Greetings,

I'm new to SQL server.  We have a reporting services based web site.  I'm having a problem that, when I try to log in as "admin", whether I'm successful or not depends on what URL I'm using.  For example, I bring up the site on URL http://reportsqa2.abc.com, and enter the "admin" login and its password, I get in successfully and it takes me into the "Report.aspx" page.  If I bring up the site on the host specific url, http://qa2host.abc.net, and enter the login and password, nothing happens, it redisplays the login page.  Note, there is no error, like there is if I enter a bad login and/or password; just nothing happens.


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/

IIF with InStr and LEFT -1 Causes #Error in SSRS 2008R2

$
0
0

Hello,

I'm using IIF with InStr to test for a "/" in a field on a report.  The left function works fine unless I try to subtract 1 from it.  This code works fine:

=IIF(InStr(Fields!WellCompName.Value,"/")=0, Fields!WellCompName.Value, left(Fields!WellCompName.Value,InStr(Fields!WellCompName.Value,"/")))

But this code causes the True condition to yield #Error in the report when I add the -1 to the end of the left function:

=IIF(InStr(Fields!WellCompName.Value,"/")=0, Fields!WellCompName.Value, left(Fields!WellCompName.Value,InStr(Fields!WellCompName.Value,"/")-1))

I do need -1 to remove the "/" but it doesn't work with IFF and LEFT.

Thanks

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

SSRS 2016 / 2017 : Behaviour of Date - Parameters passing to Oracle has changed

$
0
0

Hi,

i´m trying to switch from SSRS 2008 (i know, old :-) ) to SSRS 2017 (PowerBI Report Server). I took some of my old reports and simply deployed them to the new server, which - in general - worked fine.

But i have a report that has two parameters defined as Date/Time, and a query to Oracle (using Oracle DataProvider, not OLE DB) and in this query calculating the difference between the two parameters:

SELECT 
:DateTo as DATE_TO,
:DateFrom as DATE_FROM,
:DateTo - :DateFrom as secs
FROM DUAL

This report works fine in SSRS 2008, but fails when trying to convert the "secs"-field to a number in SSRS 2017. Cause: The "secs" get returned as "1.00:00:00" for example in SSRS 2017 but simply as "1" in SSRS 2008.

I tracked this down to find that the bind variables (:DateTo/:DateFrom) get passed to Oracle as DATE in SSRS 2008 but as TIMESTAMP in SSRS 2017. I can successfully resolve the issue by doing either

TRUNC(:DateTo)  - TRUNC(:DateFrom) as secs or

CAST(:DateTo AS DATE) - CAST(:DateFrom AS DATE) as secs

but i would prefer a solution that removes the necessity to change every report with this problem and do some kind of "server-wide switch to old behaviour".

My issue seems to be the same as discussed here:

https://developercommunity.visualstudio.com/content/problem/106170/vs2017-and-ssrs-problem-with-date-parameter-and-or.html

and here 

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/96265d57-09a6-42fa-b41a-a406aee9068d/ssrs2016-datetime-parameter-problem?forum=sqlreportingservices

but there are no real answers there, so i would like to ask again:

Is there some kind of switch (config-file, startup parameter, whatever) that can be used to set that Date-Parameters get passed to Oracle as DATE and not TIMESTAMP in SSRS 2016?

Thank you

Markus

SSRS2016 - Date/Time parameter problem

$
0
0

Hi,

In SSRS2016, there is a date/time parameter (Parameter Name: fromdate) in report. When I choose, 8/10/2016 (10-Aug-16) in fromdate parameter, I see following value under Parameters field of report server view: ExecutionLog3

fromdate=8%2F10%2F2016%2012%3A00%3A00%20AM

for the same report, in SSRS2008R2, I see following value under Parameters field of report server view: ExecutionLog3

fromdate=08/10/2016 00:00:00

This SSRS2016 behavior for date/time parameter’s value is causing error while executing query.

Thanks,

Aftab


Aftab Ansari

SSRS Subscription settings and error logs

$
0
0

i have SSRS 2016  up and running but i can not get subscriptions to work.

the config tool lets me enter the settings, i am fairly sure i have them right.

the portal UI gives an error message that "something went wrong" ,  no details are given.

in the logs i see an "OData Error" that may be related but no details that i can use to diagnose the problem.

here is the log:

OData exception occurred: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SetConnectionProtocol()
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod()
   at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.ListExtensions(String extensionType)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapRS2010Proxy.<>c__DisplayClass41.<ListExtensions>b__40()
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapAuthenticationHelper.ExecuteWithWindowsAuth[TReturn](SoapHttpClientProtocol soapClient, IPrincipal userPrincipal, Func`1 func)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapAuthenticationHelper.ExecuteWithCorrespondingAuthMechanism[TReturn](SoapHttpClientProtocol soapClient, IPrincipal userPrincipal, Func`1 func)
   at Microsoft.ReportingServices.Portal.Services.SoapProxy.SoapRS2010Proxy.ListExtensions(IPrincipal userPrincipal, String extensionType)
   at Microsoft.ReportingServices.Portal.Repositories.SystemService.ListExtensions(IPrincipal userPrincipal, ExtensionType extensionType)
   at Microsoft.ReportingServices.Portal.Repositories.SystemService.PopulateLocalizedExtensionNames(IPrincipal userPrincipal, List`1 subscriptions)
   at Microsoft.ReportingServices.Portal.Repositories.CatalogItemRepository.GetSubscriptions(IPrincipal userPrincipal, String itemPath)
   at Model.ReportRepository.LoadSubscriptions()
   at Model.Report.get_Subscriptions()
   at lambda_method(Closure , ReportRepository )
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Web.OData.Query.Expressions.SelectExpandBinder.Bind(Object entity)
   at System.Web.OData.Query.SelectExpandQueryOption.ApplyTo(Object entity, ODataQuerySettings settings, IAssembliesResolver assembliesResolver)
   at System.Web.OData.Query.ODataQueryOptions.ApplySelectExpand[T](T entity, ODataQuerySettings querySettings)
   at System.Web.OData.Query.ODataQueryOptions.ApplyTo(Object entity, ODataQuerySettings querySettings)
   at System.Web.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)
   at System.Web.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
   at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext().
Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!7!05/17/2017-10:33:20:: i INFO: [1za3itxg]: 192.168.111.149: GET /api/v1.0/CatalogItemByPath%28path%3D%40path%29 - Response 500 - 0:00:01.2108206

so what the heck does that mean and how do i fix it ?

can we get more information in the logs ?  what is the real problem ?

Cannot access folder contents in the report builder

$
0
0

Hi All i am SysAdmin and Sysuser in the report manager settings, but when i click on the browse , i get the message "You are  not allowed to view this folder. Contact your administrator to obtain the necessary persmissions"

Any idea as why a sysadmin , sysuser cannot browse?

Thanks


https://genesis-open.com/live/

$
0
0
https://genesis-open.com/
https://the-genesisopen.com/

https://genesis-open.com/live/
https://the-genesisopen.com/live/

how to repeat rows on every page in rdlc.

$
0
0

Rows to be repeated are part of a group .For non -grouped rows we usually follow this---Click Advanced mode--Static row--Press F4(i.e. Properties)

then

Set following property.

RepeatonNewPage=true,
KeepWithGroup=After,

KeepTogether=False,

 

But this does not work well with grouped row . Can anyone suggest some way to repeat grouped row on every page as well.

 

Migrate query from MDX to DAX

$
0
0

I have the following query with MDX. Can I do the same with DAX?

with 
member TxRealMeilleurQuartile  as ([Measures].[Tx_Real_Meilleur_Quartile_])
member RatedetransformationQuartile  as ([Measures].[Rate_de_transformation_Quartile_],[Bon Envoi].[Bon Envoi].&[True])
member RatedetransformationQuartile_2  as ([Measures].[Rate_de_transformation_Quartile_],[Bon Envoi].[Bon Envoi].&[True])
select{ 
RatedetransformationQuartile 
,TxRealMeilleurQuartile
,RatedetransformationQuartile_2
  } on 0



from [tEST]
 WHERE (
 {strtotuple(@DateDebut):strtotuple(@DateFin)} 
,[Perimetre Ebusiness].[Perimeter E-Business].&[O]
,{[MER_Publication].[Detail Type Visiteur].&[Prospect],[MER_Publication].[Detail Type Visiteur].&[Client direct]}
, ( - { [Origine_Marketing].[Entree Parcours].&[SiteAgent] } )
,( { [Gestionnaire].[Region].&[NE], [Gestionnaire].[Region].&[O], [Gestionnaire].[Region].&[SE], [Gestionnaire].[Region].&[SO], [Gestionnaire].[Region].&[IDF] } )
,linkmember(strtotuple(@DateFin),[Mois Publication].[Mois de publication]) 
)

SQL Server Reporting Services - FQDN you are not allowed to view this folder

$
0
0

I can access to reporting service by http://hostname/reports

Because i want to implement SSL certificate, i need to configure SSRS to work with FQDN

so in Reporting Server Configuration Manager for Web portl URL i set Host Header name, same for Web Services URL

Then configured service account (under which SSRS is running) as per https://blog.andycook.com/sql/2019/11/13/ssrs-fqdn/

When trying to login with service account i'm getting

to http://host.example.com/reports


SQL Server Reporting Services - FQDN you are not allowed to view this folder - SOLVED

$
0
0

I can access to reporting service by http://hostname/reports

Because i want to implement SSL certificate, i need to configure SSRS to work with FQDN

so in Reporting Server Configuration Manager for Web portl URL i set Host Header name, same for Web Services URL

Then configured service account (under which SSRS is running) as per https://blog.andycook.com/sql/2019/11/13/ssrs-fqdn/

When trying to login with service account i'm getting

to http://host.example.com/reports



Refreshing issue for SSRS

$
0
0

Hi,

I have a report and I have used &rc:Toolbar=false in the url.  When I have toolbar set to false then if I use the F5 key or Windows Internet Explorer refresh icon, the data does not get refreshed but if I enable the toolbar use the report refresh icon (button) or Windows Internet Explorer refresh or F5 key, then data gets refreshed.  Is there something I am doing wrong?

Thanks for any help.

Is there any impact of Chrome 80 bug on SSRS services?

$
0
0
Is there any impact of Chrome 80 bug on SSRS services?

Avoid Report Server authentication with reports embeded via iframe

$
0
0

Hello,

Is it possible to avoid to enter windows credentials to connect to a report server?

We are trying to embed reports in a custom application, via iframe.

Custom application is located in "ServerA.enterprise.net" and database / report server are located in "ServerB.enterprise.net". 

We tried also to install SSRS in ServerA.enterprise.net but authentication windows is still being prompted.

Line with Markers Chart Legend is Repeated.

$
0
0

Hi everyone, 

I have a report that is made up of a Stacked Column Chart (This shows types of products sold each month) with an overlaying Line with Markers Chart (this shows the total sales of all products for each month). 

The problem that I am experiencing is with Legend entry for the Line with Markers chart, I am using the Circle Marker type, so need for this Legend to be visible so that this shape to appear in the legend this causes a duplication because the total sales appears in the legend the same number of total products. I have adjusted my dataset so that the total number of sales appears in the same column, (disabling the Line with Markers chart legend) but i am unable to change the shape of the Legend entry so that it matches what is on the chart.

Any advice on how i can stop duplication of the Line with markers chart legend? I have noted that creating a custom legend is a possibility, however I am unsure if this will accommodate the circle marker as I have not seen that in the shapes available in SSRS. 

I am using Reporting Services 2019.


SSRS 2012 Running Against SQL Server Express 2019

$
0
0

We are using SSRS 2012 and Report Builder 2012 to run and create reports off of our application's database which is currently located on an instance of SQL Server Express 2012.

If we move our application database to a new instance of SQL Server Express 2019, will the 2012 reporting products be able to run against the 2019 database server?

Moving to SSRS 2019 is not an option, as it will not install on a domain controller.

John

SSRS API v2.0 DataSet POST - Description

$
0
0

Based on the /DataSets API (https://app.swaggerhub.com/apis/microsoft-rs/SSRS/2.0#/DataSets/AddDataSet)

The POST body is supposed to look like the following

{
  "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,
  "HasParameters": true,
  "QueryExecutionTimeOut": 0
}

But when passing in the Description property it doesn't get set on the newly updated DataSet (which does get created) on the server.  First off, are the APIs yet another half baked SSRS implementation?  

What does it take to get to Description set on the uploaded DataSet? 

$datasetsUri = $ReportPortalUri + "/api/v2.0/DataSets"

 $uploadItemPath = "C:\DataSetUpload\MyDataSet.rds"
    $bytes = [System.IO.File]::ReadAllBytes($uploadItemPath)
    $dspayload = @{
        "@odata.type" = "#Model.DataSet";        
        "Name" = "MyDataSet.rds";
        "Path" = "/Datasets";
        "Description" = "USER FRIENDLY DESCRIPTION THAT IS NOT SET";
        "ContentType"="";
        "Content" = [System.Convert]::ToBase64String($bytes);
    } | ConvertTo-Json

    $dSetResponse = Invoke-WebRequest -Uri $datasetsUri -Method Post -Body $dspayload -ContentType "application/json" -UseDefaultCredentials

SSRS API v2.0 \DataSources returns different values that \DataSources()

$
0
0

Can anyone shed some light on what calling the \DataSources endpoint for all datasources returns different content for the same DataSource Catalog Item vs when it's called for a single DataSource?

You should be able to execute the first powershell endpoint and randomly pick out a DataSource's ID and put it in the second powershell endpoint and compare the results.  They don't match.  I know for sure the Hidden property is not the same and a few others as well.  Is this just not getting tested before being shipped?

$datasourcesUri = "$ReportPortalUri/api/v2.0/DataSources"
$datasourcesCatItem = Invoke-WebRequest -Uri $datasourcesUri -Method GET -ContentType 'application/json' -UseDefaultCredentials
Write-Host datasourcesCatItem

$datasourceUri = "$ReportPortalUri/api/v2.0/DataSources(aaaaaaad-7fac-4883-85ba-b336708210c2)"
$datasourceCatItem = Invoke-WebRequest -Uri $datasourceUri -Method GET -ContentType 'application/json' -UseDefaultCredentials
Write-Host $datasourceCatItem

Viewing all 24955 articles
Browse latest View live


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