Skip to content

Commit 9ff94a5

Browse files
authored
Update }bedrock.hier.create.pro (#432)
The Leaves hierarchy cannot be created.
1 parent 27bb29c commit 9ff94a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

main/}bedrock.hier.create.pro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pDelim,"OPTIONAL: delimiter character for element list. (default value if blank
5656
581,0
5757
582,0
5858
603,0
59-
572,172
59+
572,176
6060
#Region CallThisProcess
6161
# A snippet of code provided as an example how to call this process should the developer be working on a system without access to an editor with auto-complete.
6262
If( 1 = 0 );
@@ -212,7 +212,11 @@ While( nCountDim >= 1 );
212212
###Creating Hierarchy
213213
If( HierarchyExists( sDim, sHierarchy ) = 1 & sDim @<> sHierarchy );
214214
nErrors = 1;
215-
sMessage = 'The Hierachy ' | pHier | ' already exists.';
215+
sMessage = 'The Hierachy ' | sHierarchy | ' already exists.';
216+
LogOutput( cMsgErrorLevel, sMessage );
217+
ElseIf( sHierarchy @= 'Leaves' );
218+
nErrors = 1;
219+
sMessage = 'The Hierachy ' | sHierarchy | ' cannot be created.';
216220
LogOutput( cMsgErrorLevel, sMessage );
217221
ElseIf( sDim @<> sHierarchy );
218222
HierarchyCreate( sDim , sHierarchy );

0 commit comments

Comments
 (0)