grantm15 wrote:I think I am confused about what actually is happening when I recreate a dimension (Action: Recreate under the Dimensions tab in TI). I assumed that the entire dimension is being recreated from the ground up. In other words, the elements (and consolidations) are deleted and the entire hierarchy is rebuilt with the newly inserted elements and consolidations. That is obviously not happening for me. I have a product dimension that I want to "recreate" every night with the most current product element consolidation hierarchy. But what is happening is that even though the TI process "Recreates" the dimension every night, the old and new hierarchy that the element rolls up through still exists. So anytime a product hierarchy changes, I have 2 different aggregations of the same product for every period because the base element is in the hierarchy twice with different hierarchy consolidations. So my impression of what recreating does is obviously wrong.
It shouldn't be.
I despise the Maps tab as I've mentioned many times in the past but in this case it seems to function as advertised. In a test with a two column file, one an element name and the other a consolidation name, it generated the following code in the Advanced tabs:
Prolog
Code: Select all
#****GENERATED STATEMENTS START****
DIMENSIONDELETEALLELEMENTS('zDim1');
DIMENSIONSORTORDER('zDim1','ByName','ASCENDING','ByHierarchy','ASCENDING');
#****GENERATED STATEMENTS FINISH****
That deletes all of the elements in the temporary copy, including consolidations.
Metadata
Code: Select all
#****GENERATED STATEMENTS START****
DIMENSIONELEMENTINSERT('zDim1','',Product,'n');
DIMENSIONELEMENTINSERT('zDim1','',Parent,'c');
DIMENSIONELEMENTCOMPONENTADD('zDim1',Parent,Product,1.000000);
#****GENERATED STATEMENTS FINISH****
I did have to play around with the sort order options to get the hierarchy to show correctly but that had no effect on whether the old hierarchies were completely destroyed.
So that leaves two possibilities. One is that your code is doing something that you aren't telling us about, which is why the
Request for assistance guidelines (PLEASE READ) states that:
For Rules and TurboIntegrator processes, remember that including the actual code in your post will be a thousand times more useful than an attempted description of it.
And the second, which I consider to be the more likely of the two, is that your data source is actually returning both the new
and old hierarchies, and the TI Process is therefore recreating them each time you run it.
The way to determine that is to do an ASCIIOutput in the Metadata tab and looking to see exactly what it is that's coming into your process.