I am scratching my head for hours for this issue . Please share your insight and help . Here is my current dimension structure :
N A
N B
N C
C All Alphabet
A
B
C
Alpha
Beta
C Alpha
A
C Beta
B
What I want to do is to unwind all the consolidation first and then rebuild the hierarchy . So I created a generic process to do that by putting the ELCOMP and DimensionElementComponentDelete altogether as ( Dim.Element.Unwind) . However, after I run the main process (zTest) , I got this :
N A
N B
N C
C All Alphabet
Alpha
Beta





The unwind would only apply to Alpha but not Beta . To debug , I wrote the unwind statement in the main process instead and abandand the statement of "executeProcess" in the prolog and run it again (zTest2) , and I get the expected result .
N A
N B
N C
C All Alphabet
A
B
C
Alpha
Beta
C Alpha
C Beta
Strangely enought , If I remove the line "DimensionElementComponentAdd ( sDim , sTopConsol , sConsol , 1 ) ; " from the original process (zTest3) and run it , I would could see the unwind process did do his job , althought All Aphabet is empty which is expected because I removed the stament .
C All Alphabet
C Alpha
C Beta
How strange is that , the generic process could unwind the first consolidation Alpha but not the secnond one Beta when I call a executeprocess to do that .
Please let me know your thoughts , I really really appreciate that !!! . Here is the related objects for your reference.