
Introduction
Please find below useful techniques to troubleshoot failing EC Employee History Jobs or Bonus Calculation Jobs in a Variable Pay template of SuccessFactors.
First things first : when these two types of jobs starts failing unfortunately the logs we get from Admin Center > Monitor Compensation Jobs will not provide any information (I believe the Product Team has a plan to improve this in the future). The only useful logs we can get (and they can be very useful) are in Provisioning > Monitor Jobs (towards the bottom of the main page) :
There we can filter on Status = Failed then click on Details for the latest job that ran :
For EC-VP Employee History Jobs and Sub Jobs we will see something like this :
And something like this for Run Bonus Calculation :
In these logs we need to try to find anything useful as per the examples above (any text that could point us to what could be a potential root cause).
If you are a customer administrator and don't have access to that screen please create a ticket to SAP support requesting this log or ping a consultant who has worked with your company previously and still has provisioning access.
If we can't find anything that makes sense in the logs then we can follow the techniques below.
Troubleshooting EC-VP Employee History Job Failures
Please note that this recording's intent is to help troubleshooting employee history jobs that worked correctly before they started failing and NOT jobs that are still being built as part of a new implementation. In that case many more things can create failures : fields incompatibility (if we mapped a text field from EC to a number field on the employee history for example) OR if we are incorrectly using the reserved fields : startDate, endDate, vfld5 (varPayProgramName), vlfd14 (currency), ffld1 (basis), recordType.
https://youtu.be/aUcTsxjZ_Eo
Also see this KBA: https://me.sap.com/notes/2438792
Troubleshooting Bonus Calculation Job Failures
If we try to run Bonus Calc for one or several employees that are currently on completed worksheets and we do not UNcheck the box "Do not update Completed Worksheets" (which is checked by default) on the Run Bonus Calculation page then the job may stay in the "In Progress" status for several hours (when it should take only a few seconds to be marked as Completed for one employee) and it may end up giving a FAILED status with the error "HibernateException thrown could not extract ResultSet" (see screenshot below). To avoid that we simply need to remember to UNcheck the "Do not update Complete Worksheets" box before running the job for the employee on a completed worksheet.
When MDF Objects are enabled in an environment (which is the case for most environments) then data for Variable Pay Assignment Level Custom Fields (see #3 in this blog for more info about ALCF) is stored in MDF tables and by design there are max 30 numeric fields and 20 string fields allowed as ALCF in that case. We will see FAILED Bonus calc jobs or Bonus worksheet launch jobs as soon as we exceed these limits with error logs as below :
As a workaround we can switch numeric fields to string or string to numeric and use toString() or toNumber() in the calculated fields' formulas.
Conclusion
We need patience and a structured approach to fix these issues. They are not easy however it's easy to panic when all we need to do is slowly revert back to basics until it works again, then build again slowly.
I will update this blog every time I come across potential new root causes that are not yet documented.
If you are a Variable Pay administrator or consultant looking for more insights and tips on the module, you will find additional recordings here : https://blogs.sap.com/2021/03/11/3-key-configuration-setups-to-master-in-variable-pay/
--
All the best,
Xavier
(If you found this blog useful please consider giving it a Like)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 |