unknown error -191

Post Reply
stingo
Posts: 69
Joined: Mon Sep 27, 2010 2:46 pm
OLAP Product: Cognos TM1
Version: 9.1 onwards
Excel Version: client dependant
Location: UK, CH, BE

unknown error -191

Post by stingo »

Hi,

i searched the forum and I saw that there is already a topic about it, but it is not exactly the same situation.

The fact is that spreading a value on a member that is a parent and it was 0 previously issue this error.
Apparently it is because there is no mix under the parent to spread a value proportionally.

The fact is if I want to put a value of 100 in a cell 0 I get the error and the process blocks.

Now I'm asking. is there a way to workaround this? I mean ideally the thing to do is:

if the value <> 0 then cellputproportionalspread else "execute an equal spread".

any Idea in how to solve this?
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: unknown error -191

Post by tomok »

stingo wrote:if the value <> 0 then cellputproportionalspread else "execute an equal spread".
Why not just do as you've suggested? If the value is <> 0 then use the cellputproportionalspread, if not, your else conditon would include the steps to put an equal value in each child. Query for the number of children of the parent, divide the amount by that, then have looping code to cycle through the children and put that calculated value in them. Good luck.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
stingo
Posts: 69
Joined: Mon Sep 27, 2010 2:46 pm
OLAP Product: Cognos TM1
Version: 9.1 onwards
Excel Version: client dependant
Location: UK, CH, BE

Re: unknown error -191

Post by stingo »

tomok wrote:
stingo wrote:if the value <> 0 then cellputproportionalspread else "execute an equal spread".
Why not just do as you've suggested? If the value is <> 0 then use the cellputproportionalspread, if not, your else conditon would include the steps to put an equal value in each child. Query for the number of children of the parent, divide the amount by that, then have looping code to cycle through the children and put that calculated value in them. Good luck.

hi,

yep, in the end I've implemented manually the condition.
Post Reply