My TI process tests as to whether or not an element exists and adds it to a rollup if it does not. This part it does fine, but it is also determining some extant elements do not exist and adding them again, giving me duplicates. From my code I cannot see anything wrong. I tried a ProcessQuit to determine if the DIMIX test was the error and it was.
Any ideas? Any help would be much appreciated.
Code: Select all
[IF ( DIMIX ( vCostCenter , 'cdmCostCenter' ) = 0 );
ENDIF;
DIMENSIONELEMENTINSERT ( 'cdmCostCenter' , '' , vCostCenter , 'N');
DIMENSIONELEMENTCOMPONENTADD ( 'cdmCostCenter' , 'CDM' , vCostCenter , 1 );
ENDIF;