Sailpoint IIQ - Employee ID generation Issue

Hi,
We have create contractor functionality in SailPoint which used a custom form to get all the details of a contractor and then uses a custom workflow to create a identity in SailPoint. Now if we create 2 contractors one by one and approve them at the same time within a second then it is creating same employee id in SailPoint which is leading to failure of one of the request. The logic for employee id generation is purely a java code which check the last employee id generated and increments it by one every time.

Kindly let us know why this is happening.

Regards,
Thamizh

Without looking at the code, this does sound like a race condition. IdentityIQ is a multi threaded environment and so it’s entirely possible that the same method is called at the same time by two or more threads. If the uniqueness test is to check if the identity name hasn’t been used yet, then this could be the route of your problem, as the creation of the Identity is most likely in another process.

Race condition - Wikipedia.

Your Java code must track generated ID’s, and ensure the method never generates the same ID with subsequent calls.