Quantcast
Channel: SQL Server Analysis Services forum
Viewing all 14337 articles
Browse latest View live

SSAS Security Issues and Concepts (SSAS 2012)

$
0
0

Hey Guys,

I know, that this topic was already discussed a lot of times before. But to extract all helpful threads seems to be impossible :-). So I decided to ask the experts, you, for help, tips and your practical experience again.

My scenario includes following requirements/problems:

  • Measure Security Currently:
    I use a lot of calculated Measures on which the security cannot be realized by default. What different options exits and can you recommendtaking into account the query performance to solve this issue?
  • Dimension Data Security:
    Our currently organization requires, that the security depends on two different Dimensions. For Example: - AD-Group "Company Manager": See all the data of the hole company "Testcompany", which can contains more than one Business area. This can be done by the default dimension data security tab (Allowed Set: {Company.Testcompany}; Visual Totals = True). - AD-Group "Business Area Manager Bikes": See all the data of the hole BA "Bikes" which can contains more than one Company. This can be done by the default dimension data security tab (Allowed Set: {Businessarea.Bikes}; Visual Totals = True). - AD-Group "Bike-Manager of Testcompany": Should see only values of the Company "Festcompany" for the BA "Bikes". In this case, the default security concept doesn't fit. How can solve this?
  • "Attribute Security"
    Our current Item-Dimension contains the attributes "Material Costs" and "Operational Costs". This attributes should only be available for a specific group of users. Is there a (easy) way to implement this?

I hope I have described my scenario in sufficient, if there is anything unclear - please let me know.

Thank you for your advice. Thomas








Error : "Unable to connect to the localhost server. Make sure that the server is started"

$
0
0

 

I can not view the "Mining Model Viewer", where I get the error "Unable to connect to the localhost server. Make sure that the server is started"

and I can not Process Model too.

SSAS DB Synchronization failure

$
0
0

Hi all,

I have a sync DB problem between two SSAS 2014 instances that I cannot fix for some time.

Environment:

- Source SSAS instance is on standalone SQL. Version 12.0.4100.1. VM. OS is Win2012R2.

- Destination SSAS instanse is on clustered SQL. Version 12.0.4100.1. SQL cluster consists of two VM nodes (guest cluster). OS on nodes is Win2012R2.

- Source SSAS VM and Destination primary node VM are on the same HyperV cluster node. Host node is Win2012R2.

- IP of source and destination are on the same sublet.

- Both source and destination SSAS instances are in the same AD domain, are running under the same AD service account. Service account and AD account that started the job have administrative permissions on both SSAS instances.

- No Firewall between source and destination SSAS.

Problem:

A DB sync process is performed on a daily basis. The process fails randomly. Sometiomes it is ok, and sometimes it fails.

I have cached traces at the time of failure on destination SSAS:

Progress Report Error    39 - Synchronize    Synchronization failed.

Error The following system error occurred:  An existing connection was forcibly closed by the remote host.  An error was encountered in the transport layer. An error was encountered in the transport layer. Backup and restore errors: An error occurred while synchronizing the '<db_name>' database. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer. An error was encountered in the transport layer.

Severity - 3

Error -1056112631

Any suggestions will be appreciated.

Thanks!


Error XMLAnalysisError.0xc10e0002

$
0
0

Hi, 

I'm trying to configure the HTTP Olap, But im getting this error. I'm using windows authentication.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>XMLAnalysisError.0xc10e0002</faultcode><faultstring>Parser: The syntax for 'GET' is incorrect.</faultstring><detail><Error ErrorCode="3238920194" Description="Parser: The syntax for 'GET' is incorrect." Source="Unknown" HelpFile=""/></detail></soap:Fault></soap:Body></soap:Envelope>

Greetings,

how to use http to connect a MS Tabular DB

$
0
0

Hi all,

  For SSAS multidimensional DB, we can use http://SSASName/OLAP/msmdpump.dll to connect. how about Tabular ?

Does anybody can let me know ?

Thanks 


James Liang

SSAS Tabular XMLA Event Sessions are getting deleted after system restart. Any solution for this

$
0
0
SSAS Tabular XMLA Event Sessions are getting deleted after system restart. Any solution for this?

Issue: Cannot connect to SSAS VM (Azure) from Power BI -- Issue with Sql Browser

$
0
0

I've really tried everything I believe I can find... but instead of saying what I did do and confuse anything. Here is the error,

Unable to connect: We encountered an error while trying to connect to crmolap.cloudapp.net. Details: "The connection to the Analysis Services instance timed our or was lost. Ensure that the server and the 'SQL Browser' service are running

  • Azure VM Sql 2016
  • Ports for 1434, 1433, 2382, 2383 (TCP / UDP) are opened
  • I can connect from the local VM to SSAS
  • I have the Power BI Gateway installed (and it says good). I can see it from WWW.PowerBI.Com

However I get the error about being unable to connect :-( and I can't figure out what to do. My Guess is it is a Firewall / Port type issue (as I can make it work from my local machine)

Maybe it's the whole random port for SSAS.. or something else :-( just not able to put things together in my own brain to make it work.

Any suggestions would be awesome and thank you

OLE DB error: OLE DB or ODBC error: Query timeout expired; HYT00; Unknown token received from SQL Server; HY000.

$
0
0

Hello All,

When i ran the SSAS Cube in QA environment, we are facing the below error but same XMLA script working fine in Dev environment and we can able to run the Cube successfully.

OLE DB or ODBC error: Query timeout expired; HYT00; Unknown token received from SQL Server; HY000.\

can any one help me on this....how to resolve this?

Appreciate your quick response.


Attaching cube fails

$
0
0

Hi,

After some MS updates our SQL server failed to work fine. So we took a full server backup with Tivoli and reinstalled OS on server.

Now when I try to attach SSAS DB it fails with error, that there is on detach log file in db folder. It is true, since we were in a hurry and did not detach SSAS dbs. Is there any way to attach it without this log file, maybe recreate it somehow manually?


Deploying the cube

$
0
0

Dear mates,

   How can I deploy a cube from Dev to Test to Production?

Currently, I am deploying using XMLA.

Generate XMLA script from the cube on Dev server

Drop the cube on Test/Production and execute XMLA script

The issue is, every small change in the cube, I need to drop and recreate and full process.

How can I generate XMLA for just changes and deploy only changes?

Thanks in advance

HELP: mdx ssas problem performance

$
0
0

Hello everyone,

  Can someone help me to resolve my issue performance when i execute this mdx query in my pivottable report?  

  1- I try to get the firstnonempty value

  2- for each quarter, i have to calculate the results

 ex:

Q1

Date  - Amount    => Firstnonempty alue on this quarter is 7

1      -  7  => 7/7-1 = 0

2     -   2 =>  2/7-1

3    -    5 =>  5/7-1

Here is the query. When i change the period or other dimensions, it takes around 20 and 30 seconds to upate the report. My fact table contains only 5 millions rows.

Sum issue with a parent-child dimension with unary operator (SSAS 2005)

$
0
0

I have a issue with a parent child dimension with a unary operator (SSAS 2005).When I filter(multi-select) a member in that the dimension the total stays the same. If i remove unary operator the issue is gone. Have anyone seen this before? Or have any advice to me.

Example:

A
-B 100
-C 200
-D 300
Sum: 600

Then I filter(multi-select) the dimension and I get the following result:

A
-B 100
-D 300
Sum: 600

 

 

 

XMLHttpRequest cannot load http://localhost/olap/msmdpump.dll. Response for preflight has invalid HTTP status code 500

$
0
0

I can't access Http accessable cube(pump.dll) in ajax.call as like,

$.ajax({                type: "POST",                url: "http://localhost/olap/msmdpump.dll",                data: "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\">  <Body> <Execute xmlns=\"urn:schemas-microsoft-com:xml-analysis\"> <Command> <Statement>SELECT NON EMPTY AddCalculatedMembers({[Delivery Date].[Calendar].[(All)].MEMBERS}) DIMENSION PROPERTIES CHILDREN_CARDINALITY ,PARENT_UNIQUE_NAME ON COLUMNS, NON EMPTY AddCalculatedMembers({[Ship Date].[Calendar].[(All)].MEMBERS}) DIMENSION PROPERTIES CHILDREN_CARDINALITY ,PARENT_UNIQUE_NAME ON ROWS FROM [Adventure Works]</Statement> </Command> <Properties> <PropertyList> <Catalog>Adventure Works DW 2008 SE</Catalog> </PropertyList> </Properties> </Execute> </Body> </Envelope>",                success: function (responce, textStatus, jqXHR) {                    alert("Success Success Success!!!");                },                contentType: "text/xml",                dataType: "xml",            });

How can i resolve it?

Slowness in cube after a sync process

$
0
0

After sync process (normally at heavy usage) we have performance problems in our cube.

Environment:

sql server 2008r2/windows 2008r2

Four 2 core Processors. 144gb of ram on physical servers with solid state disks

 Most configuration setting are the defaults.

 exception:

Threadpool\Query\MaxThreads 16

Threadpool\Process\MaxThreads 80

PreAllocate memory 50

LowMemoryLimit 60

111gb cube for querying, synced every hour with a cube that has parts reloaded thru out the day.

The sync batch process runs for about 20 seconds. 

Right after the sync we notice Current Latch Waits start climbing rapidly and remains high (in Performance Monitor)

At the same time Current Connections slowly rise along with Current User Connections.

Processor % time stays normal around 20.

After between 5 and 10 minutes, Processor % time suddenly pegs at 100% and Current Latch Waits plummets to next to nothing.

Processor % time stays pegged for around 5 minutes, current connections and current sessions slowly return to normal and then Processor % time returns to normal.

We are trying to determine what is causing the current latch waits to climb rapidly then crash and send the Processor to 100% and not sure where to look.  Any ideas?

Fix for KB3160874 for CU1 for SQL Server 2014 SP2 does not work

$
0
0

Can anyone else confirm whether the fix found in CU1 for SQL Server 2014 SP2 for KB3160874 has not addressed the problem?

https://support.microsoft.com/en-us/kb/3160874

The fix was to address "Selection change on Excel grouping errors out when the data is from a SQL Server Analysis Services ROLAP partition".  After applying CU1, reprocessing the cube, restarting the service, restarting the server, restarting our computers,  ensuring we have the latest and greatest version of Office (Microsoft Office 365 Pro Plus [Office 2016 - 16.0.6741.2063]), and recreating new documents, we can still recreate the problem. We are testing against a cube built in SSDT-BI for Visual Studio 2013.

To reproduce we connect to the cube using Excel and add a measure (count) to "Values", add a column from a hierarchy in a dimension to "Columns", add a column from another dimension to "Rows".  Group some of the columns together in excel by selecting the column headers (holding ctrl down and selecting some) and right-click and click 'Group'.  Save and close. Reopen and attempt to expand or do anything with the group and an exception occurs.

If we test against an older cube, running on the same server, we have built in BIDS, the problem does not reoccur.

Search Functionality

$
0
0

Is there any way we can create  SSRS search loan numbers functionality In Power pivot ?  

SSAS Hangs when processing a particular database

$
0
0

We have a multi-tenant app. Each tenant has several SQL and one OLAP (MD) databases associated with it. The tenants run mostly independently, receiving and processing data, updating databases and occasionally processing an OLAP database. Since OLAP processing is very resource intensive on the machine, we serialize access to OLAP so that we will never have two tenants trying to process OLAP at the same time.

The past weekend we had an incident in which one of the tenants went to process OLAP and encountered an error (bad foreign key value).  Several hours later, this tenant went to process OLAP again but this time OLAP processing froze.  Never finished and did not respond to cancellation attempts.  In the time between the two attempts from this tenant, several other tenants successfully processed their respective OLAP databases.  Since we serialize access to OLAP, over the course of a few hours we eventually ended up in a situation where all tenants were blocked waiting for OLAP.

We restarted our service - a few tenants successfully processed OLAP, but once it came around to the tenant that blocked before, that tenant tried to process OLAP and again blocked with no progress.  Again, after a few hours all tenants were blocked waiting for OLAP.

After a lot of log reading and analysis, we opened up SSMS on the database tier and tried to process the OLAP database for the tenant that became stuck.  SSMS also became stuck - immediately.  It didn't make it far enough in the process to have written anything to the progress window other than the start time.

This seemed like clear evidence that the problem lay inside SSAS, so we stopped SSAS using the Computer Management UI.  The service did not stop timely (the SCM gave up), but it did eventually stop. 

We then disabled the tenant what was becoming blocked, and restarted SSAS.  Once SSAS was up, we processed the blocked tenants database manually with no error.  All of the other tenants awoke from their slumber and processed their OLAP databases without error.  We then re-enabled the previously blocked tenant and it too processed it's OLAP database without error.

So, it seems that all this trouble was caused by an OLAP database becoming stuck - all attempts to process that database resulted in a hung connection.  We could see when we restarted our app that other databases processed correctly, so it seems that a single database was stuck in SSAS while others processed successfully.

We're running on SQL 2008 R2 (ancient, I know).  I was unable to find anything that sounded similar to this using bingle or in Connect.

I'm curious if anyone else has seen anything like this, and especially if anything's been fixed since 2008 R2 that might explain this.  Meanwhile, we can only chalk it up to a random occurrence... until it happens again, of course.


-cd Mark the best replies as answers!



Get distinct in calculated member

$
0
0

Hi all I need is to get the discount on callno using a calculated member, this does not work? I get 0

CREATE  MEMBERCURRENTCUBE.[Measures].[DistinctCount]

AS DISTINCTCOUNT([Calls].[CallNo]).members,


FORMAT_STRING

= "Standard",


VISIBLE

= 1 ,  ASSOCIATED_MEASURE_GROUP='Calls'

Thanks



SSRS report using Data Bar Graph is Repeating multiple times in our application report viewer

$
0
0

Hello,

Hope you are doing fine.

We are facing some problem in SSRS report using Data Bar Graph. we have a single report of some data but when we are viewing that report from the Report builder then it is rendering in the correct format and if we view that same report  in the Report Viewer in our application then it will render in Incorrect format, actually data bar graph is repeating multiple times vertically. we are giving the Code which we have implemented to view the Report from our application is mention below.

Code :

        public string mobjJsonDef, mGUID, mheaderFiles;
        public WFXCommon.WFXCommonFunction mobjCommon;
        public ClsCustomReportCredentials mobjCustomReportCredentials;
        public ClsCustomReportCredentials mobjCustomReportCredentialsUser;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                string reportName = Request.QueryString["Path"];

                // rptCustomReportViewer.Width = 800;
                rptCustomReportViewer.Height = 600;
                rptCustomReportViewer.ProcessingMode = ProcessingMode.Remote;

                string userName = ConfigurationManager.AppSettings["LDAPADMINUSER"];
                string password = ConfigurationManager.AppSettings["LDAPADMINUSERPASSWORD"];
                string domain = ConfigurationManager.AppSettings["LDAPDOMAIN"];
                string loginID = Request.QueryString["LoginID"];
                string loginpassword = Request.QueryString["Password"];
                string reportServerPath = ConfigurationManager.AppSettings["ReportModelServerURL"];
                string CheckLDAPLoginUser = ConfigurationManager.AppSettings["CheckLDAPLoginUser"];                

                mobjCustomReportCredentials = new ClsCustomReportCredentials(userName, password, domain);                
                if (CheckLDAPLoginUser == "1")
                {
                    Boolean isAuthenticated = mobjCustomReportCredentials.IsAuthenticated(loginID);
                    if (isAuthenticated == false)
                    {
                        Response.Write("Active Directory User Not created.");
                        return;
                    }
                } else { loginID = userName; }

                mobjCustomReportCredentialsUser = new ClsCustomReportCredentials(loginID, password, domain);
                rptCustomReportViewer.ServerReport.ReportServerCredentials = mobjCustomReportCredentialsUser;
                rptCustomReportViewer.ServerReport.ReportServerUrl = new Uri(reportServerPath);
                rptCustomReportViewer.ServerReport.ReportPath = reportName;
                rptCustomReportViewer.ServerReport.Refresh();

            }
            Initialize();
            DatePickers.Value = GetParameters("Date").ToString();
            Multivalue.Value = GetParameters("MultiValue").ToString();
        }
        private void Initialize()
        {
            mGUID = Request["GUID"];
            if (mGUID == "" || mGUID == null)
                mGUID = "1";
            mobjCommon = new WFXCommon.WFXCommonFunction();
            mheaderFiles = mobjCommon.GetHeaderFiles("HeaderFiles").ToString();
        }

        public string GetParameters(string Type)
        {
            string prompString = "";
            string seperator = "";
            switch (Type)
            {
                case "Date":
                    foreach (ReportParameterInfo info in rptCustomReportViewer.ServerReport.GetParameters())
                    {
                        if (info.DataType == ParameterDataType.DateTime)
                        {
                            prompString += seperator + info.Prompt;
                            seperator = ",";
                        }
                    }
                    break;
                case "MultiValue":
                    foreach (ReportParameterInfo info in rptCustomReportViewer.ServerReport.GetParameters())
                    {
                        if (info.MultiValue)
                        {
                            prompString += seperator + info.Prompt;
                            seperator = ",";
                        }
                    }
                    break;
            }
            return prompString;
        }


Please, Give us your valuable solution.

Incorrect Format and Correct Format is given below:

Incorrect display (repeating data bar multiple times)

-----------------

Correct format is given below:

Correct Format

Regards
WFX

        

mdx period over period movement total calculation

$
0
0

I have a scenario where I need to calculate the period over period movement for project total revenue, the formula works fine on individual project level, however because some project might not have a record in every month, it will introduce a negative amount of total revenue movement which is not correct, if there is no record in current month for a given project then we should consider the movement zero.

the formula I used for calculating is as below

IIF( IsEmpty([Measures].[EACFees]), NULL, ([Time AU].[Time AU_].CURRENTMEMBER,[Measures].[EACFees])- ([Time AU].[Time AU_].CURRENTMEMBER.PREVMEMBER,[Measures].[EACFees]))

can anyone think of a way to deal with this instead of load the prior period amount into current period record in fact?

Thanks...

Viewing all 14337 articles
Browse latest View live


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