SAP Knowledge Base Article - Public

3413219 - Rule does not create pay component onChange after editing for the second time - Employee Central

Symptom

There is a business rule configured onChange in a Job Information field to create a pay component recurring. The rule works fine on the first time that the job information field is edited, but it does not edit the pay component after editing the field again before saving.

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Assign a cross-entity rule to a field in Job Information, for example, FTE
  2. Go to the profile of the user and click on Actions -> Change Job and Comp Info
  3. Check the Job and Compensation Information
  4. Select a date and change the field where the rule is assigned
  5. After that, see that the pay component was correctly created
  6. Go back to the field and edit it again
  7. See that the rule didn't adjust the value of the pay component created, as per the configuration

Cause

This is the standard system behavior for this kind of rule. The rule is able to create the pay component for the first time, but since the change hasn't been saved yet, system is no longer able to read the pay component collection before it gets actually saved, so the rule fails on the second time.

The behavior may also occur on Hire screen.

Resolution

A few options can avoid this behavior:

  • Save the change after making it, where the rule triggered successfully
  • Restart the edit transaction in case the Job Information field needs to be edited again
  • Change the pay component value manually in case the job information field is edited again 

Keywords

cross-entity, job information rule, onChange, compensation information rule, rule triggering, second change, change again, Error happened when invoking rule function, Error: No row with the given identifier exists: [com.successfactors.hris.bean.eo.EmpPayCompRecurringEO#-1, pay component recurring, create pay component, edit pay component, add new employee , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-EC-CMP-RUL , Business Rules , Problem

Product

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