We create users in the system through bulk feed. We have a BLTH script implemented at Create User process which calculates the userId of the user based on combination of last name and first name.
In that script we make sure that only unique combinations are generated by comparing the combination value wit the IAM user store.
But if we pass two(or more) entries in the same feed with same last name and full name, the process executes for one entry and fails for other with error " ERROR MESSAGE: [LDAP: error code 20 - Duplicate attribute value/s detected:"
It seems main issue is due to multi-threading feature of IDM. IDM opens separate thread for each entry due to which the logic fails for generating the unique userId. Please find below logs for more reference:-
2015-03-30 04:11:21,651 INFO [STDOUT] (pool-66-thread-1) GenerateUniqueFullName_CreateEmployee BLTH Version 1.2 usrFltr=com.netegrity.llsdk6.imsapi.policy.rule.constraints.UserFilter@34f58b4
2015-03-30 04:11:21,661 INFO [STDOUT] (pool-66-thread-1) 21.0
2015-03-30 04:11:21,677 INFO [STDOUT] (pool-66-thread-2) GenerateUniqueFullName_CreateEmployee BLTH Version 1.2 usrFltr=com.netegrity.llsdk6.imsapi.policy.rule.constraints.UserFilter@8fb9650
2015-03-30 04:11:21,688 INFO [STDOUT] (pool-66-thread-2) 21.0
As per our analysis, userId is calculated via BLTH scripts and then it is passed onto IDM. So when the userId was generated for second user , first user was still not pushed into IDM which resulted in same userId for both the users.
Can anyone guide us how to proceed on this?