Describe the bug
When using the }bedrock.hier.import process I can see that where the process looks to create a parent child relationship (prolog line 71) it checks if sVar2 exists within the Leaves hierarchy and skips if true.
In this case sVar2 is the child and could reasonably exist in the Leaves hierarchy, I believe this should check if sVar3 (being the Parent) exists in the Leaves hierarchy as the risk is clear that a N level element would then try to be created as a C.

I believe this should be

Without this change any structure created will effectively only have C level structure with N levels orphaned.
Version
- OS: IBM Cloud (SaaS)
- TM1 Server Version: 11.8.02300.10