Help with bedrock's dim.clone.fromsubset
Posted: Tue Jul 30, 2013 6:52 am
Hi all,
I have a scenario where I have to unite two dims into one. so I decided not to reinvent the wheel and bank on the existing dim cloning process from Bedrock. I tweaked it a little, by commenting out the call to dim.hierarchy.unwind.all in the 'Prolog' part, as I am cleaning out the dim structure entirely in the Parent process which is calling this Bedrock process. However; after the modifications, it is leaving out some of the children elements, i.e. it does not add all children elements for all C level, for instance, if source dimension has a C level element Expense Accounts having 1,2,3,4,5 elements, it is adding element 1 4 to 5 times in the target element under Expense Accounts.
In the 'Metadata' tab, i changed the bit where it is adding the element, from
To
Would appreciate if someone can help me through this one.
[Edit]
I am using TM1 9.5.2 with Windows 7 and Excel 2010 (clients).
I have a scenario where I have to unite two dims into one. so I decided not to reinvent the wheel and bank on the existing dim cloning process from Bedrock. I tweaked it a little, by commenting out the call to dim.hierarchy.unwind.all in the 'Prolog' part, as I am cleaning out the dim structure entirely in the Parent process which is calling this Bedrock process. However; after the modifications, it is leaving out some of the children elements, i.e. it does not add all children elements for all C level, for instance, if source dimension has a C level element Expense Accounts having 1,2,3,4,5 elements, it is adding element 1 4 to 5 times in the target element under Expense Accounts.
In the 'Metadata' tab, i changed the bit where it is adding the element, from
Code: Select all
## Add the element to the target dimension.
DimensionElementInsert( pTargetDim, '', vElement, 'N' );
Code: Select all
DimensionElementComponentAdd( pTargetDim, pConsolElement, vElement, 1 );
[Edit]
I am using TM1 9.5.2 with Windows 7 and Excel 2010 (clients).