I'm struggeling with updateing a dimension. I just want to load the elements out of a textfile into a dimension and set a attribute 'Status'. But always the following error occurs:
Code: Select all
...Data Source line (1) Error: MetaData procedure line (8): Element "10010." not found in dimension "dim_Empl".
...
MetaData:
Code: Select all
IF( DIMIX( cDimName, vPersID) = 0);
DimensionElementInsert( cDimName, '', vPersID, 'N');
IF( DIMIX( cDimName, vPersID) <> 0);
AttrPutS( 'EXISTS', cDimName, vPersID, cAttrStatus);
ENDIF;
ELSE;
AttrPutS( 'ACTIVE', cDimName, vPersID, cAttrStatus);
ENDIF;