I am trying to load a dimension with parent child hierarchy as such:
- Child Parent
ALL
Asia Pacific ALL
Central Europe ALL
North America ALL
- #
ALL
Asia Pacific
Central Europe
North America
Any help is much appreciated!
Regards,
Terry
It would be useful to see the actual code relating to this process.terryd wrote:Hi All,
I am trying to load a dimension with parent child hierarchy as such:This is what I get when I load it into Architect using TI, since the Parent of "ALL" is Blank, I get a # sign.
- Child Parent
ALL
Asia Pacific ALL
Central Europe ALL
North America ALLAny idea how to get rid of the "#" on top of the hierarchy? I must keep the ALL row in my dimension data since I am using a star schema.
- #
ALL
Asia Pacific
Central Europe
North America
Any help is much appreciated!
Code: Select all
Error: Prolog procedure line (n): Consolidated Element "" not found.
Or you're using package connector - which indeed replaces NULLs by the hash symbol.Alan Kirk wrote:This suggests that your data source is in fact sending "#" as the parent element. (Or that you're generating this with Performance Muddler and it's doing something idiotic like writing a line of code to treat empty strings as "#", which is again why it would be useful to see the actual code. Having an allergy to both auto-generated code in general and Performance Muddler in particular I don't know what that thing might or might not be doing if you rely on its little GUI wizard to generate your code. Which you shouldn't.)
In any case, the solution is essentially the same; you just skip over adding the child element if the parent is "#" or an empty string.
Thanks guys for all your input. Yes, I am indeed using package connector, Whats your suggested method of removing this? what would be the approach to "you just skip over adding the child element if the parent is "#" or an empty string"Michel Zijlema wrote:Or you're using package connector - which indeed replaces NULLs by the hash symbol.Alan Kirk wrote:This suggests that your data source is in fact sending "#" as the parent element. (Or that you're generating this with Performance Muddler and it's doing something idiotic like writing a line of code to treat empty strings as "#", which is again why it would be useful to see the actual code. Having an allergy to both auto-generated code in general and Performance Muddler in particular I don't know what that thing might or might not be doing if you rely on its little GUI wizard to generate your code. Which you shouldn't.)
In any case, the solution is essentially the same; you just skip over adding the child element if the parent is "#" or an empty string.
Michel
In pseudo code you'll needterryd wrote: what would be the approach to "you just skip over adding the child element if the parent is "#" or an empty string"
Code: Select all
insert child to dimension
if sParent='' then
do nothing
else
insert parent to dimension
create parent child relationship
end if