I have experienced something of an oddity over the last few days in a very tried and trusted process of adding users to our system.
So, in a nutshell, I have a very small file of users to add to the TM1 instance, and before doing so, I clear out the }Clients dimension (except for administrators) and then load the users in.
The code in my Prolog is:
Code: Select all
iMaxNoClients = DIMSIZ ( '}Clients' ) ;
i = 1 ;
WHILE ( i <= iMaxNoClients ) ;
sClient = DIMNM ( '}Clients', i ) ;
IF ( sClient @<>'ADMIN' % CellGetS ( '}ClientGroups', sClient, 'ADMIN' ) @<> 'ADMIN' ) ;
DeleteClient ( sClient ) ;
ENDIF ;
i = i + 1 ;
END ;
And then in my Metadata I have the following, used to add in the users:
Code: Select all
IF ( DIMIX ( '}Clients', vUser ) = 0 ) ;
AddClient ( vUser ) ;
ENDIF ;
When I processed this, my Server Explorer session kicked me out and I could see that my process was still running in TM1Top, but was in an endless loop - so I have to crash the server and restart. Incidentally I am running this in IntegratedSecurityMode 1 at the moment.
Upon, hashing out the Prolog lines, the process works fine by adding the new users into the }Clients dimension......so it must be my prolog code.....my user id is in the admin group so I wasn't expecting to be booted out as my code is simply trying to remove clients who are not admins........any assistance to confirm my madness would be appreciated !!!
We are using 10.2.20200.55
Cheers Ajay
