SAP Knowledge Base Article - Public

3378018 - Rule to generate ID during Hire/Rehire is triggering twice - Employee Central

Symptom

There is a rule configured with scenario "Generate Employee ID for Hire/Rehire" and assigned to the MATCHINGUSERCONFIG object in Manage Data. During the hire process in Add New Employee, the rule is triggering twice after submitting the new hire, which is not expected. 

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Configure a rule with scenario Generate Employee ID for Hire/Rehire and assign it to the MATCHINGUSERCONFIG object
  2. Go to Add New Employee and fill the hire form for a user
  3. Do not populate any person ID or username
  4. Submit the hire with a Rule Trace enabled
  5. See that the ID set for the user is not the one from the rule
  6. On the trace, you can see that the rule is triggering twice.

Note: if the rule triggers more than once and the conditions aren't met on the second time it runs, the ID will not be set by the rule. System will set it based on the value assigned to Company System and Logo Settings.

Cause

This is happening because the IDs that the rule is trying to set are already in use in the system. The MDF sequence defined in the rule cannot have values that were already assigned to other users in the instance. Once the ID is invalid during the first execution, system triggers the rule again to try to find a valid ID.

Resolution

Change the MDF Sequence assigned to the Rule or update the Sequence with valid values, that weren't used for other users in the system. 

To see if an ID is already in use in the system, please go to "Data Inspector", check entity "Table_USERS_SYSINFO" and Define Filter Criteria by Users Sys ID.

See Also

Keywords

generate id, hire, mdf sequence, MATCHINGUSERCONFIG, hire rule triggers twice, id rule, rule to generate id, add new employee, rehire, system id, user id, person-id-external, username, person id , KBA , LOD-SF-EC-HIR-NEW , Add New Employee Wizard , LOD-SF-EC-ADM , Admin Tools (EC Core only) , LOD-SF-EC-HIR-RUL , Business Rules , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM suite all versions