Showing posts with label as2005. Show all posts
Showing posts with label as2005. Show all posts

Friday, March 30, 2012

Memory Allocation Failure When Deploying AS2005 Project

Hi,

I have an AS2005 project that I am trying to deploy. It contains one fact table with approx 20 million rows. I have never had any problems deploying the project unitl recently. What is happening is when between 3 - 5 million of the rows have been read it will fall over, giving the following error message:

"Memory error: Allocation failure : Not enough storage is available to process this command. . Errors in the OLAP storage engine:"

I have read about this occurring during the processing of a data mining model, and a hotfix exists to solve this. However, my project contains no data mining at all.

Can anyone shed any light on this?

Dave

Hard drive failure? Hard drive full/not enough storage space?

If you use incremental updating for your cube you will need additional storage space temporarely.

Regards

Thomas Ivarsson

|||

Hard drive is fine, and has around 200 Gb free. I think this is a memory problem with the server. The server has 3Gb, and has been able to process the cube fine for the last 2 months so I cannot understand it.

What do you mean by incremental processing? I have 3 partitions set up, each with around 7 million rows. I have set the options to 'Sequential processing', and 'Separate transactions'. Is there anything else I can do?

Dave

|||

Looks like your machine doesnt have enoght memory to execute a processing command. Analysis Server tries estimate the memory needed to complete processing command and that is the error message you are seeing.

Try process separately every dimension and partition. If you still see the error message during partition processing try to reduce size of the partition by partitioning your data some more.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Edward,

I could understand this being the case if the there had always been this problem. However, the fact table does not have any more rows now it is erroring than it did when it was processing fine. In addition, the error occurs when only a small proportion of the rows have been read, so I cannot see how the machine could have run out of memory in this early stage of processing.

David

|||

This is not a situation where machine runs out memory. Analysis Server wouldnt even start processing if you dont have enoght memory available to comlete the operation. So what is happening, it tries to estimate how much memory it needs to complete the processing, then it requests from OS what is the memory avaliable at the moment and compares the two. If there isn't enoguh, you will see the error.

Now, In your case I am not clear what had happen before.

The two things to check.

1. As I suggested in previous reply. Try and process less things in parralel, try to partition some more. Anything causing Analysis Server to lower the estimates.

2. See the memory situation on your machine at the time of processing. Is there someone is consuming the memory you need for processing?

HTH.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

I would recommend to create a job that will do a full process of each dimension first and a full process of all the cubes at last. Sorry if you have already done this.

You can set up this by choosing to process each dimension in management studio and script that action.

I have seen that processing with the option to process all related objects do not always work a espected.

Have you any hints if you set up a trace in profiler?

Regards

Thomas Ivarsson

|||

Thanks for for advice guys. I did a couple of things you mentioned which I thought I had already tried, but the project processed ok.

Firstly I processed each dimension individually. Then I processed the cube (which I have split into 3 partitions). I changed the processing settings to 'Sequential Processing' and 'One transaction at a time'. It took about an hour and a half (it used to take one hour), but I can live with that.

I would like to write a script for this but am not sure what form it would take. Would it be in SQL, MDX or XMLA? Could you give me a brief outline of the syntax required, to say process a single dimension. This would give me an idea of what I am aiming for.

Many thanks,

Dave

|||

Can anybody help with this?

Dave

|||

Right click on a dimension in management studio and choose process. In the next dialogue you will have the option to script that command to a new query window or to memory. Then you can see the XMLA syntax for this.

Regards

Thomas Ivarsson

Memory Allocation Failure When Deploying AS2005 Project

Hi,

I have an AS2005 project that I am trying to deploy. It contains one fact table with approx 20 million rows. I have never had any problems deploying the project unitl recently. What is happening is when between 3 - 5 million of the rows have been read it will fall over, giving the following error message:

"Memory error: Allocation failure : Not enough storage is available to process this command. . Errors in the OLAP storage engine:"

I have read about this occurring during the processing of a data mining model, and a hotfix exists to solve this. However, my project contains no data mining at all.

Can anyone shed any light on this?

Dave

Hard drive failure? Hard drive full/not enough storage space?

If you use incremental updating for your cube you will need additional storage space temporarely.

Regards

Thomas Ivarsson

|||

Hard drive is fine, and has around 200 Gb free. I think this is a memory problem with the server. The server has 3Gb, and has been able to process the cube fine for the last 2 months so I cannot understand it.

What do you mean by incremental processing? I have 3 partitions set up, each with around 7 million rows. I have set the options to 'Sequential processing', and 'Separate transactions'. Is there anything else I can do?

Dave

|||

Looks like your machine doesnt have enoght memory to execute a processing command. Analysis Server tries estimate the memory needed to complete processing command and that is the error message you are seeing.

Try process separately every dimension and partition. If you still see the error message during partition processing try to reduce size of the partition by partitioning your data some more.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Edward,

I could understand this being the case if the there had always been this problem. However, the fact table does not have any more rows now it is erroring than it did when it was processing fine. In addition, the error occurs when only a small proportion of the rows have been read, so I cannot see how the machine could have run out of memory in this early stage of processing.

David

|||

This is not a situation where machine runs out memory. Analysis Server wouldnt even start processing if you dont have enoght memory available to comlete the operation. So what is happening, it tries to estimate how much memory it needs to complete the processing, then it requests from OS what is the memory avaliable at the moment and compares the two. If there isn't enoguh, you will see the error.

Now, In your case I am not clear what had happen before.

The two things to check.

1. As I suggested in previous reply. Try and process less things in parralel, try to partition some more. Anything causing Analysis Server to lower the estimates.

2. See the memory situation on your machine at the time of processing. Is there someone is consuming the memory you need for processing?

HTH.

Edward Melomed.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

I would recommend to create a job that will do a full process of each dimension first and a full process of all the cubes at last. Sorry if you have already done this.

You can set up this by choosing to process each dimension in management studio and script that action.

I have seen that processing with the option to process all related objects do not always work a espected.

Have you any hints if you set up a trace in profiler?

Regards

Thomas Ivarsson

|||

Thanks for for advice guys. I did a couple of things you mentioned which I thought I had already tried, but the project processed ok.

Firstly I processed each dimension individually. Then I processed the cube (which I have split into 3 partitions). I changed the processing settings to 'Sequential Processing' and 'One transaction at a time'. It took about an hour and a half (it used to take one hour), but I can live with that.

I would like to write a script for this but am not sure what form it would take. Would it be in SQL, MDX or XMLA? Could you give me a brief outline of the syntax required, to say process a single dimension. This would give me an idea of what I am aiming for.

Many thanks,

Dave

|||

Can anybody help with this?

Dave

|||

Right click on a dimension in management studio and choose process. In the next dialogue you will have the option to script that command to a new query window or to memory. Then you can see the XMLA syntax for this.

Regards

Thomas Ivarsson

sql

Monday, March 26, 2012

Member security question

Hello!
In our AS2005 project we use two roles for two different group of users. First group included key account manager - each manager can see only his account sales. Second group - sales region managers - each sales region manager can see only sales in his region. We use custom clr callback method and everything works fine. Solution is based on dimension members and visual totals are enabled for both groups.

But now new requirement arrived: one manager is both key account AND sales region at the same time and therefore he should be able to see UNION of key account sales and region sales. Can this be accomplished somehow? I'm able to get the intersection, but never union. One solution is to turn visual totals off, but then other dimensions show all cube data, which is not acceptable.

Any help is appreciated.

Radim

I think you will need a third role for this person.

Basically I am guessing that your account security produces a set that looks something like:

Descendants([Account].[Account].[Account 1])

And that your Region security produces a set that looks something like:

Descendants([Region].[Region].[Region1])

This will result for an effective permission set of:

Descendants([Account].[Account].[Account 1]) * Descendants([Region].[Region].[Region1])

Which is effectively an intersection of the selected account with the selected region. Whereas, for the situation you describe, you would want an effective final set of:

{ {[Region].[Region].[All Region]} * Descendants([Account].[Account].[Account 1]) }

* { Descendants([Region].[Region].[Region1]) * { [Account].[Account].[All Account] } }

Which, instead of giving you a logical AND between the two sets (where members must be descendants of the Regions AND Account) will give you a logical OR (which will return members which are descendants of either the Account OR Region)

Hope this helps

|||Hi Darren!
That's good description of desired solution. But how could I implement such set? Right now callback function simply returns allowed members to role, but this solution doesn't seem to be that straitforward. New role should restrict cell data, instead of dimension members?

Radim|||

Hi Radim,

Since these users (given their dual role) should be able to see all members of both Account and Region, I think that the solution would have to restrict at the cell, rather than dimension, level. However, I'm not aware of a "Visual Totals" option for Cell Security, which is one of your requirements. Visual Totals behavior could conceivably be simulated via the MDX script, if that's a viable option for you. But this would entail introducing security-related logic into the cube script.

sql

Saturday, February 25, 2012

MDX problem in AS2005

When executing the following MDX statements I get an error with AS2005 although the query seems to be valid, at least AS2000 has no problems with it.

CREATE SET [Sales].[Y1] AS '{[Product].[All Products].[Drink]}'

CREATE MEMBER [Sales].[Product].[X] AS 'Sum([Sales].[Y1])'

SELECT Order({[Product].[X], [Y1]}, [Measures].[Unit Sales]) ON AXIS(0) FROM [Sales]

I create a set, a calculated member as the sum of this set, and then query both the calculated member and the set. The error is: "The dimension [Sales] was not found in the cube when the string, [Sales].[Y1], was parsed." It seems that [Y1] is not recognized as the formerly defined named set.

This query works if query scope is used (WITH SET, WITH MEMBER), or if you don't use the Order() function. It's always ok with AS2000.

The error occurs on every AS2005 cube I tested. The example above is the Foodmart 2000 database migrated to AS2005.

What's wrong?

Thanks. Guido.

Hi Guido,

I was able to reproduce this error in query scope with Adventure Works as follows:

>>

With Member [Product].[Product Categories].[X] as

Sum([Adventure Works].[Core Product Group],

[Measures].[Sales Amount])

select Order({[Product].[Product Categories].[X],

[Core Product Group]},

[Measures].[Sales Amount]) on 0

from [Adventure Works]

Query (2, 5) The dimension '[Adventure Works]' was not found in the cube when the string, [Adventure Works].[Core Product Group], was parsed.

>>

But this other version, without specifying the cube, works as expected:

>>

With Member [Product].[Product Categories].[X] as

Sum([Core Product Group],

[Measures].[Sales Amount])

select Order({[Product].[Product Categories].[X],

[Core Product Group]},

[Measures].[Sales Amount]) on 0

from [Adventure Works]

Accessories Clothing Components Bikes Touring Bikes Mountain Bikes Road Bikes X
$571,297.93 $1,777,840.84 $11,799,076.66 $66,302,381.56 $10,451,490.22 $26,492,684.38 $29,358,206.96 $204,429,800.41

>>

So I suspect the issue may be that AS 2005 is trying to cast a member to a set. But wouldn't this syntax for the calculated member work with both?

CREATE MEMBER [Sales].[Product].[X] AS 'Sum([Y1])'

|||

Thanks for your answer.

You are right. "Sum([V1])" solves this problem. I've included the cube name due to another problem:

CREATE SET [Sales].[Y1] AS '{}'
CREATE MEMBER [Sales].[Product].[X] AS 'Sum([Y1])'
DROP MEMBER [Sales].[Product].[X]
DROP SET [Sales].[Y1]

The last statement yields error message "Unable to drop the object 'Y1', because it is referenced by at least one another object."

No other calculations are involved, and the calculated member is dropped before the named set. If the calculated member is defined as "Sum([Sales].[Y1])" the named set is dropped correctly. There are no such problems with AS2000.

Any idea what's wrong?

Thanks

Guido

|||

Guido,

Unfortunately, I can't shed much light on this problem - I didn't work with CREATE/DROP in AS 2005, since I typically make changes to the MDX Script and redeploy. If you don't receive any response here, you could open an issue at:

http://lab.msdn.microsoft.com/ProductFeedback/.