Page 1 of 1

AddCubeDependency

Posted: Thu Nov 24, 2011 1:33 am
by pmakulski
http://publib.boulder.ibm.com/infocente ... 65300.html

says
Syntax: AddCubeDependency('CubeA','CubeB');
Argument Description
CubeA The name of the base cube.
CubeB The name of the dependent cube.
Cube B relies on a rule that is dependent on Cube A.

But the user guide says:
AddCubeDependency(BaseCube, DependentCube);

BaseCube
The name of a cube that depends on another cube for data. Most commonly, this would be a cube that uses rules to pull data from an external cube.

DependentCube
The name of the cube upon which the BaseCube is dependent.

Example
AddCubeDependency('SalesCube', 'PriceCube');

This example establishes a dependency between the SalesCube and the PriceCube.

These seem to say the opposite to each other.

I would guess the sales cube has a rule referencing the price cube. (unless pricess are set by sales volumes, which would be weird).

Can anybody clarify?

Say Cube C contains a rule that references Cube D. And Cube D contains a feeder rule that feeds Cube C. What order do C and D take in AddCubeDependency?

Re: AddCubeDependency

Posted: Thu Nov 24, 2011 7:15 am
by lotsaram
Did you try a search? This was discussed in this quite recent thread.
http://www.tm1forum.com/viewtopic.php?f=3&t=6402

Re: AddCubeDependency

Posted: Thu Nov 24, 2011 12:55 pm
by harrytm1
yes, that post will answe all the questions you have on cube dependency function. A good post indeed! :D

Re: AddCubeDependency

Posted: Thu Nov 24, 2011 6:34 pm
by pmakulski
Yes, I did do a search, but looks like I didn't read all the way through that post. :oops:

Re: AddCubeDependency

Posted: Fri Nov 25, 2011 3:59 pm
by pmakulski
OK, Now that I have read the other topic ...
I think I'll continue this topic, as the other topic is getting quite long, and I'm about to get more specific.

I have run a TI that sets cube dependencies (in the correct order per the other discussion).
But, when I look at the log, I still see many instances of those same dependencies being set. And many "cube load" messages, for cubes that are already loaded. I have attached a small sample of the message log.

Any idea why I would be seeing this behaviour? (I still need to triple check the setting of parallel interaction, which my IT guys assure me is set on correctly.)