Symptom
When Compensation forms are completed and we publish the information into Employee Central the email notification shows some entries with the message: "Failed to save compensation data."
The system is not displaying any error during the publish, but these entries are not published any time we try.
Environment
Compensation and Variable Pay
Cause
This error can be related to the configuration on the instance. In the server logs we can find an error of the kind:
15:31:18,507 ERROR [CreateCompensationEntityImpl] [123695495] [CompanyID,CompanyName,sfv4_STOCKPM9144.,dbPool8,null,null,en_US] Failed to save compensation data error
15:31:18,507 ERROR [CreateCompensationEntityImpl] [123695495] [CompanyID,CompanyName,sfv4_STOCKPM9144.,dbPool8,null,null,en_US] Message: key = [EMPFILE_HRIS_ALREADY_USED_FOR_COMP_PLANNING], values =[1004]
The error points to an issue with the configuration of the Compensation Information section. Every compInfo could have multiple recurring pays, but, there is a limitation that only one of the recurring pays could have 'Used for Comp Planning' set as 'COMP' or 'BOTH'. Depending on the publish configuration & user data, Comp-EC publish could add new recurring pay in the compInfo to be published. As a result, if there are multiple of such recurring pays in the new compInfo, we can get this error.
Resolution
We can check/change this flag via Admin Center ->Manage Organization, Pay and Job Structures.
Keywords
KBA , LOD-SF-CMP-INT , Integrations & Intelligent Services EC , Problem