Evaluation stack overflow

Post Reply
cdhodge2002
Posts: 90
Joined: Tue Aug 19, 2008 4:56 pm

Evaluation stack overflow

Post by cdhodge2002 »

I can't run my processes coming out of a Sql server, the error I get says "Evaluation stack overflow". Has anybody ever encountered this before. I checked my feeders and that doesn't seem to be the issue.
User avatar
Steve Rowe
Site Admin
Posts: 2417
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Evaluation stack overflow

Post by Steve Rowe »

Hi CD Hodge,
This usually happens because the nesting of feeders blows the feeder stack. A a single cell can only trigger about 250 other feedersbefore the stack blows. So if you have say a day dimension you can only feed forward 250 days from Jan 1st. In this situation you would have a feeder like this

['Today']=> DB( Cube,....Attrs('Day', !Day,'Next')....)

This would normaly break the stack.
What I do is set my next attribute up so that June the 1 st is not populated and the roll forward of the feeder breaks at June 1st and do the same for Dec 31st as well. You then need two feeders for each year

#Fails on June 1st
['Jan 1st']=>DB( Cube,....Attrs('Day', !Day,'Next')....)
#Fails on Dec 31st
['Jun 2nd']=>DB( Cube,....Attrs('Day', !Day,'Next')....)

This should stop the feeder stack from breaking.

IMO though the feeder stack is too small, we should at least be able to feed a whole year in 1 hit
HTH
Technical Director
www.infocat.co.uk
cdhodge2002
Posts: 90
Joined: Tue Aug 19, 2008 4:56 pm

Re: Evaluation stack overflow

Post by cdhodge2002 »

I have never encountered this error before, and in fact everything was working and then suddenly it wasn't. Would this also happen when I have setup a nesting feeder for months?
User avatar
Steve Rowe
Site Admin
Posts: 2417
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Evaluation stack overflow

Post by Steve Rowe »

Yes it might depending on your version (hint you might want to update your profile :D ) . In some releases when the stack blows it can stop any further feeders executing in that cube. You can also find different behaviour as to what breaks (if anything) when the server starts versus a rule save.

If you have a month dimension that is month and year with a lot of months in it then setting up a monthly feeder could blow the feeder stack and may affect other potentially unrelated areas of the same cube. If it is just a month dimension with 12 or 13 values then it would be much harder to blow the stack but still possible. Any cell that feeds over 250 cells has the potential to blow the stack.

Cheers,
Technical Director
www.infocat.co.uk
cdhodge2002
Posts: 90
Joined: Tue Aug 19, 2008 4:56 pm

Re: Evaluation stack overflow

Post by cdhodge2002 »

How nice. Thanks for your help, got everything working again.
lotsaram
MVP
Posts: 3654
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Evaluation stack overflow

Post by lotsaram »

cdhodge2002 wrote:I have never encountered this error before, and in fact everything was working and then suddenly it wasn't. Would this also happen when I have setup a nesting feeder for months?
Yes! I wouldn't say this is a common trap, but reasonably common enough. As data input grows over time nested or recursive feeders can break (due to data being where there was none previously.) This can be avoided by designing in breakpoints as Steve suggested.

A practical example of this should really be included in the rules guide, but then so should a lot of things. It seems this is just one of those things you have to learn along the way.
kgranger
Posts: 5
Joined: Thu Jul 29, 2010 11:30 am
OLAP Product: TM1
Version: 9.0
Excel Version: 2003

Re: Evaluation stack overflow

Post by kgranger »

Hi All,

I too now have a stack overflow :evil:

I have added another year into our time dimension and have the error messsage of stackoverflow.

Our model is pretty big, so how can I go about understanding which feeder(s) need splitting up like Steve suggested above, when my error message says:

356792 ERROR 2011-05-10 16:45:15.667 TM1.Server Stack overflow evaluating feeders. Starting cell: A01_POL[CLOSING BALANCE,FCST01,Poland Home Credit,Agents No,I_2006_W52]. Feeder: 1

Is this message telling me the reference of the cell that isn't being fed, and I need to manually go and find the feeder?

Does this mean this is the only cell that is overflowing the stack?

Thanks in advance.

Kirk
User avatar
Steve Rowe
Site Admin
Posts: 2417
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Evaluation stack overflow

Post by Steve Rowe »

Hi Kirk,

The first thing to check if this is actually breaking anything, depending on the nature of your model it might or it might not.

The number after the word feeder (in your case 1) is the number of the feeder in the rule file, so helpfully the message does tell you where the issue starts, (I'm pretty sure I'm not imagining this!). The cell reference is the starting cell that is triggering the failure of the feeder stack. Working on a rough stack size of 250 and starting from a number in 2006 W52, your feeder stack word work for 2007, 2008, 2009, 2010, 2011 assuming you are feeding values forward for a weekly dimension. It would start failing around the end of 2011 and onwards into 2012, so it makes sense that you are now seeing issues.

I still think the stack is too small! Shame no was listening in June 2009.

Hope the above makes sense when applied to your model.

Cheers,
Technical Director
www.infocat.co.uk
Post Reply