Symptom
- When adding a new employee an application error happens blocking you to finish the hire. OR
- Error message "Duplicate rule found for externalCode: XYZ" displayed when publishing a one-time payment.
Note: XYZ means the business rule ID.
Environment
- SAP SuccessFactors Employee Central
- SAP SuccessFactors HCM Suite
Cause
- The error message displayed happens when multiple records for the rule contain different scenarios, leading to a duplicate rule error.
- Egg. A rule should not have the first record with the scenario "Basic" and the second scenario with "Trigger Workflows".
Resolution
In order to fix this is needed to make sure that all records of the rules have one single scenario. When you find the inconsistencies please follow:
- Go to Configure Business rules.
- Find the affected rule.
- Find the record with "Basic" scenario.
- Click on "Change Scenario"(Please select same scenario that is used already in other records).
- Save.
See Also
Please consider run a trace to identify these rules as per SAP KBA: 2257064 - Employee Central - Business Rule Execution Log.
Keywords
Caused by: com.successfactors.personandemployment.api.servicelayer.exception.ServiceLayerException: Duplicate rule found for externalCode, application error, hire, rehire, rule, application, basic, scenario, SF, EC, SAP, HIR, CMP, NRE, RUL , KBA , LOD-SF-EC-HIR-NEW , Add New Employee Wizard , LOD-SF-EC , Employee Central , LOD-SF-EC-CMP-NRE , Spot Bonus & Non-Recurring Payments , LOD-SF-EC-CMP-RUL , Business Rules , Problem
SAP Knowledge Base Article - Public