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

Error returned Data overflow converting to the data type

$
0
0

Hi, I am having a problem with SSAS Tabular when I tried to import data from data sources.

The title says it all.

The error message: Failed to save modifications to the server. Error returned: 'Data overflow converting to the data type for table X column Y'

I tried to remove the column with filter, but my supervisor asked me not to because it's needed.

SSAS is pretty new in my office and no one mastered it, any kind of help is appreciated.


The server sent an unrecognizable response error

$
0
0

I am receiving the following intermittent error in different environments. I suspect that for some reason the SOAP call fails during processing, but I could not find a reason for it nor reproduce.

An error occurred when executing the integration task.

Result details:

The data model was updated.
Starting to process the data in the Analysis Services database.
An error occurred when processing the template.
An error occurred when processing the data.

External error:
The server sent an unrecognizable response.
   at Microsoft.AnalysisServices.XmlaDataReader..ctor(XmlReader xmlReader, CommandBehavior commandBehavior, Boolean isXmlReaderAtRoot, IXmlaDataReaderOwner owner)
   at Microsoft.AnalysisServices.AmoDataReader..ctor(XmlReader xmlReader)
   at Microsoft.AnalysisServices.Core.Server.EndXmlaRequestWithReader(XmlaResultCollection& results)
   at Microsoft.AnalysisServices.Core.Server.ExecuteReader(String command, XmlaResultCollection& results, IDictionary properties, Boolean wrapCommand)
   at Microsoft.AnalysisServices.Tabular.ExecuteUtil.RunCommand(String commandText, IEnumerable`1 parameters, Boolean requestImpact, Int64 impactSinceVersion, Server server, ImpactDataSet& impactDataSet)
   at Microsoft.AnalysisServices.Tabular.ExecuteUtil.TryExecuteXmla(String xmlaRequest, Database db, Model model, TxManager txManager, XmlaResultCollection& xmlaResults)
   at Microsoft.AnalysisServices.Tabular.Model.SaveChanges(SaveOptions saveOptions)
   at Processing.ProcessingService.ProcessAnalyticalDatabase() in d:\_work\1\s\source\...\Processing\ProcessingService.cs:line 24
   at Processing.LoggingProcessingService.ProcessAnalyticalDatabase() in d:\_work\1\s\source\...\Processing\LoggingProcessingService.cs:line 31
   at IntelligenceAnalyticalProcessingIntegrationTask.Run() in d:\_work\1\s\source\...\IntelligenceAnalyticalProcessingIntegrationTask.cs:line 152
An error occurred when processing the data.

External error:
'Element' is an invalid XmlNodeType. Line 26, position 21.
   at System.Xml.XmlReader.ReadEndElement()
   at Microsoft.AnalysisServices.XmlaReader.ReadEndElement()
   at Microsoft.AnalysisServices.XmlaClient.ReadXmlaError(XmlReader reader)
   at Microsoft.AnalysisServices.XmlaClient.ReadXmlaMessages(XmlReader reader, XmlaMessageCollection xmlaMessages)
   at Microsoft.AnalysisServices.XmlaClient.CheckForException(XmlReader reader, XmlaResult xmlaResult, Boolean throwIfError)
   at Microsoft.AnalysisServices.XmlaClient.ReadEmptyRoot(XmlReader reader, XmlaResult xmlaResult, Boolean skipResults)
   at Microsoft.AnalysisServices.XmlaClient.ReadEmptyRootS(XmlReader reader)
   at Microsoft.AnalysisServices.XmlaDataReader..ctor(XmlReader xmlReader, CommandBehavior commandBehavior, Boolean isXmlReaderAtRoot, IXmlaDataReaderOwner owner)

Locating Error configuration in SSAS tabular cube

$
0
0

Hi All,

Visual Studio 2019

Im  having duplicate key error in my model when deploying.

I read about changing the default setting in Error configuration property on KeyDuplcation to ignoreerror  but l cant find where to locate the error configuration property in the tabular mode(visual studio).

I need help to locating the error configuration property

Thanks

Pantry

Reviewing SQL Analysis Services (SSAS) backup Commnad

$
0
0

Need to understand below Analysis Services (SSAS) backup Command for Cubes. I am the new SQL Admin and previous Admin setup this local SSAS Backup and I don't know what this website and password means here. Now when I am trying to move this backup to a network location and getting error "wrong username or password" therefore need to know the purpose of this website and password here so that I can setup accordingly . Any help is appreciated ?

<Backup xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
  <Object>
    <DatabaseID>Our Data Cube</DatabaseID>
  </Object>
  <File>F:\Program Files\Microsoft SQL Server\MSAS14.MSSQLSERVER\OLAP\Backup\FULL\Our Data Cube_BK\Our Data Cube_BK.abf</File>
  <AllowOverwrite>true</AllowOverwrite>
  <Password>abcd12345</Password>
</Backup>

Performance problem when fetching data from Snowflake using ODBC in SSAS Tabular 2017

$
0
0

Hi there,

We are trying to feed Snowflake data (as in https://www.snowflake.com/) in our SSAS 2017 Tabular models through ODBC (32 bits) and the performance is absolutely dreadful.

Has anyone tried that?

Thanks

Eric


Eric Mamet _ MCDBA, SQL Server 2005 MCTS, MCAD .Net


key not found when processing partition with special hierarchy

$
0
0

Hello,

several years ago I have created an olap cube that works with special hierarchy. It's Leading  Currency Hierarchy for country that I use when I have to present data for  main/singular currency only. At the moment I try to build another an olap cube, but  I am facing a little issue that I cant bypass because I don't remember what I should to do in this case.

Shortly, in a fact table there are data related to daily amount transactions performed in ATMs network in c.a 25 countries.

Each network looks complitely different due to different trx's currencies.

For each country I define leading currency in a table ( keys: countryDictionaryId, LeadingCurrencyId ). The Leading Currency for  Country  dimension has been based on that table. Here I created mentioned hierarchy.
Fact table has three keys: filldate, atmid, currencyId. In a table there is field - countryId.
I have connected leading currency dimension and fact table using:
countryDictionaryId-countryId and LeadingCurrency-currencyDictionaryId.
Finaly mentioned hierarchy doesn't work. It gives  the same values  like another hierarchy  based on the same fact table- all used currencies.

I try set a new olap in the same way as  I have set old but I don't have idea what  is wrong. 
regards,
Tomek

How to make SSAS cube aggregation ignoring a particular dimension member?

$
0
0

I require assistance in a solving an aggregation problem. The following is an excel extract taken from my cube

Product-1 274 561
Cat-1  219
Cat-2 274 342
Cat-3  0
Product-2  961
Cat-1  1
Cat-2  950
Cat-3  10

Here Product comes from DimProduct dimension and Category comes from DimCategory dimension. What I require is that in the sub-total field for each product, I need to show the sum will be values of Cat-2 + Cat3. Cat-1 will be displayed, but won't be taken for summation. So, for Product-1, it should be 274342+ 0 =274342 and for Product-2, it should be 950+10=960.

I tried a scope, but it did not help in sum. It applied in particular category and providing unwanted output.

Product-1 274 561
Cat-1  0(Previously 219, now 219-219)
Cat-2 274 123(Previously 274342, now274342-219)
Cat-3-  219(Previously 0, now 0-219)
Product-2  961
Cat-1  0
Cat-2  949(Previously 950, now 950-1)
Cat-3  9(Previously 10, now 10-1)

How can this be done?

I wrote the following scope which is giving unwanted output.

SCOPE([Measures].[Value]);

SCOPE([Dim Product].[Product Name].[Product Name].members);
THIS= [Measures].[Value] - ([Dim Category].[Category Name].&[Cat-1],[Measures].[Value]);

END SCOPE;

END SCOPE;



How could I use AWS S3 as a datasource to on-premise SSAS (Tabular)?

$
0
0

We tried importing Snowflake data into SSAS Tabular (through ODBC) and the performance is just atrocious, unusable.

Someone suggested dumping the data from Snowflake to S3, and then importing the data from S3 to SSAS.

Is it possible to import S3 data into SSAS (on premise)?


Eric Mamet _ MCDBA, SQL Server 2005 MCTS, MCAD .Net


Drillthrough Query Results duplicate amount with ROLAP

$
0
0

Hallo,

we are using drillthrough actions and getting correct values when using MOLAP. When we switch to ROLAP mode, we get the same rows, but with duplicate amounts.

Do you have any hints / idea´s ?

Thanks in advance

Antoine

SSAS:- Data Source view questions

$
0
0

Hello Team,

Do have few questions with respect to the cube processing.

we do have few FACT tables which are there in DSV (Data source view) but there are no measure groups based on that. Does that impact the cube performance?

If the attribute relationship is set between FACT & DIM tables in DSV, Does that make a difference in the cube processing timelines?

Thanks in advance.

Thank you,

Pradeep.

SSAS Calc including all rows in dataset?

$
0
0

Hi - I need a calc to ignore the null/empty cells.

The calc should evaluate to less than 1000, however it is evaluating to around 750k. I'm guessing because the cube attributes everything that is blank to a 0 then it is using that.  If I use <0 then I will get around 350 which would be correct. However, I need the records that do have 0 not the ones that are NULL. How do I get around this?

SUM([Item Branch].[Item Nbr].[Item Nbr]
*[Item Branch].[Stocking Policy].&[1]
,        IIF([Measures].[A+C Quantity] <= 0 ,1, NULL))

Thanks,

Mike

How to make attribute work with accumulated values which are not directly included in Calender Hierarchi

$
0
0

Hello Everyone,

I have a Period dimension with attributes year, quarter ,period and date. And a Hierarchi called Calender = year-quater-period-date

one of the client requested for another attribute to be included in period dimension called "Report Period". Report period attribute have just 2 members  'Actual period' and 'Closed Period' and all other values are null.  I have createdthis acutal period and closed period in backend database .

It is infact related to economic transactions every month. For example if the date is 5th november then it will show closed period as september and actual period as october, it is becasue the economic transactions are still open for october month evenon 5th november . But when the transactions are closed for october month on 6th november then the slicer will show 'Actual period' as 201911 and closed period as '201910'. 

Now coming to the main problem. slicer "Report period" is working with the measures which comes directly from source for example sales, cost etc . But the slicer "Report peirod" is not working with accumulated values such as "Sales Accumualed". Reason for  the attribut "Report Period" is not working with accumulated values is because this attribut is not in the calender Hierarchi.

Sales Accumulated= sum(YTD([PERIOD].[CALENDER HIERARCHI].currentmember),[Measures].[Sales])

Is there any way that the attribute "Rapport Period" work with accumulated measures even though it is not included in calender hierachi. Thanks for any suggestions


Kind Regards

Mah

Row Filter on SSAS Tabular Roles

$
0
0

Hi, 

I'm trying to setup row filtering on certain roles I have in one of my SSAS cubes.

I have a table containing usernames for users who's access should be limited.

If the user is present in that table it should return all rows where his username is present in the field SSO (this works).If the user is not in that table he should be able to see everything (so all rows should be visible, this doesn't work).

This table is called SalesRepSecurity.

I have the following DAX expression:

=IF(COUNTROWS(FILTER(SalesRepSecurity, PATHCONTAINS(SalesRepSecurity[SSO], USERNAME())))=0,
TRUE(), 
PATHCONTAINS(SalesRepSecurity[SSO], USERNAME()))

For the TRUE() part I tried with TRUE, TRUE(), 1=1, PATHCONTAINS(SalesRepSecurity[x], "1") having a column "x" with all "1" values but no success.

When the user is in the table it works but when the user is not present no rows are returned.

I tried this with DaxStudio and the result returned is as expected.

What am I doing wrong? 

Thanks


Tabular 2019 compatibility level 1500: unable to process table or deploy?

$
0
0

I have found that using SQL Server SSAS 2019 models work fine up to compatibility level 1400.

However, after changing it to level 1500 I am no longer able to process tables locally or deploy.  

Once set to level 1500 and attempting to deploy or process I get the error:

Failed to save modifications to the server. Error returned: 'An unexpected exception occurred.

'.

MDX Date Dependent Formula

$
0
0

I need help writing a date dependent formula in MDX.  I am not very experienced with proper syntax, and just try to mimic other working formulas by trial and error.

Basically, I want one formula if the date is between Nov 2017 and Apr 2019, otherwise use a different formula.  Below is what I tried, but I am not getting the desired results.

Case when ([Effective Date].[FY Date].[Month].CURRENTMEMBER.MEMBERVALUE >= [Effective Date].[FY Date].[Month]&[FY 2017-Nov] and[Effective Date].[FY Date].[Month].CURRENTMEMBER.MEMBERVALUE <= [Effective Date].[FY Date].[Month]&[FY 2019-Apr]) then

[Account].[Account].&[7147]-

[Account].[Account].&[4388]-

[Account].[Account].&[4387]-

[Account].[Account].&[4309]-

[Account].[Account].&[4312]+

[Account].[Account].&[5625]+

[Account].[Account].&[7408]

else

[Account].[Account].&[7147]-

[Account].[Account].&[4388]-

[Account].[Account].&[4387]-

[Account].[Account].&[4309]-

[Account].[Account].&[4312]


Performance issue on large dimension security in SSAS

$
0
0

Hi,

We are trying to implement security on our OLAP cubes. Security limitations should be applied on alarge +50mln members Customer dimension. Roles are created using Allowed members filtering on DataGrp attribute from Customer dimension (example: {[Customer].[DataGrp].&[1]}). DataGrp atribute contains out of ~30 distinct values, but single value might filter out ~15mln-20mln records from Customer dimension.

Then problem occurs when user from that role connects to the cube for the first time (on cold cache). Even before starting reading the data Analysis Services is building some kind of security context and for users it takes 2min to 10min. Profiler shows multiple"Calculate Non Empty Current" events and only after long freeze (in Excel if end users is connecting via Excel) SSAS reads the data and completes the query.

Question: is this standart SSAS behaviour being so slow when setting up security when there is a need to limit data on +10mln dimension members? If so is there any other way to improve performance here?
Cache warmer is not really an option as we update our cubes multiple times during the day and cache is gone when new members are added into the Customer dimension.

Thanks

errors with vlookup in ssas tabular cube

$
0
0
Does anyone have troubleshooting ideas with a LOOKUPVALUE function between 2 tables?

V_LOG_BASED- Listing of Surgical Logs, 1 row per LOG_ID
in a defined 1:Many relationship with
V_LOG_STAFF_PANEL_1- Listing of Staff on 1st Surgical Log Panel, 1 row per staff attendance

I'm running into 2 different problems when I add a calculated column in V_LOG_BASED 

a. There are 2 individual LOG_IDs in V_LOG_STAFF_PANEL_1 per  where [TYPE_NM] =  "ARNP" but yet that value is repeated for all LOG_IDS when I use this formula in a calculated column for V_LOG_BASED:
=LOOKUPVALUE(V_LOG_STAFF_PANEL_1[STAFF_NM_WID], V_LOG_STAFF_PANEL_1[TYPE_NM], "Physician Assistant")

b. For a number of LOG_IDs in V_LOG_BASED, there is  only one associated record where [TYPE_NM] =  "Physician Assistant" in  V_LOG_STAFF_PANEL_1, yet I get this error 'A table of multiple values was supplied where a single value was expected' using this formula
=LOOKUPVALUE(V_LOG_STAFF_PANEL_1[STAFF_NM_WID], V_LOG_STAFF_PANEL_1[TYPE_NM], "Physician Assistant")

To err is human, to REALLY foul things up requires a computer

SSAS Syncs with a different user

$
0
0

I try to sync 2 SSAS databases on different hosts located on the same domain. I login SSAS with windows authentication using user MSBI\Admin. When I use SSAS Sync to sync my database with a database in a remote machine I get the error

The server returned the following error: (Either the 'MSBI\hostname$' user does not have permission to alter the '{name of database}' database, or the object does not exist.).

Instead of syncing using MSBI\Admin, it tried to connect with an imaginary user MSBI\[my hostname]$ which causes the sync to fail. I don't know why it changed the login username with another username during the sync.

I'm able to connect to the remote SSAS database using MSBI\Admin without any problem.

MDX using lag with last periods

$
0
0

Hi,

Is this the best way to represent 12 months rolling data and lagging 2 months?

sum(Intersect ([Time].[Fiscal].[Fiscal Mo].Members, LastPeriods (12, Tail(Filter([Time].[Fiscal].[Fiscal Mo].Members, NOT IsEmpty(([Time].[Fiscal].CurrentMember, [Measures].DefaultMember))), 1).Item(0).Lag(2)))
,[Measures].[HOD Standard Sales for Branch])

SQL Server Analysis Services

$
0
0
Hi Everyone,

Can we write script to generate alert on the SQL Analysis Service database goes to suspect mode.
Or query that check all the SSAS database status even from the link-server between SQL and Analysis service.

Thanks for your time
Viewing all 14337 articles
Browse latest View live


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