Symptom
- Develop an Initialize rule for the MDF Object "Work Order" to automatically populate the "Work Order ID" field. The expectation is that the ID should be generated from the next number in the "WorkOrderID" sequence.
- However, the "Work Order ID" is not incremented by 1 when adding a new Work Order through the EC Hire page or Manage Data page. E.g., if the Rule Trace indicates that the rule is running 4 times, then the "Work Order ID" is incremented by 4.
Environment
SAP SuccessFactors HCM Core
Reproducing the Issue
-
Note Current Sequence ID and Enable Rule Trace:
- Navigate to the "Manage Data" page and confirm the current "Sequence ID" for "WorkOrderID" (e.g., 1036).
- Enable Rule Trace log
-
Add a Contingent Worker:
- Go to the "Add Contingent Worker" page.
- Fill in random details to proceed with the worker addition process.
-
Observe Work Order ID Assignment:
- Once you reach the "Work Order" section, observe that the "Work Order ID" is initially consumed as expected (e.g., 1036), according to the business rule.
- However, note that the Rule Trace shows the rule is running multiple times.
-
Verify Increment Issue:
- Due to the rule running multiple times, the "Sequence ID" is regenerated, causing gaps in the sequence.
- Confirm that the assigned "Work Order ID" is incremented by 4 from the previous value (e.g., 1040 instead of the expected 1037).
Cause
As confirmed by SF Engineering team, this issue is a recognized limitation in the current system behavior, and there are no plans for enhancement. The problem arises from the underlying logic used to generate codes for all MDF objects, including the Position Object. This logic causes the rule to run multiple times, leading to gaps in the Sequence IDs.
Resolution
This is working as designed and the system cannot guarantee consecutive sequencing without skips.
Workaround:
- You can either manually enter values for the affected field or accept the sequence skipping as it occurs.
Applicability:
- Please note that this is not specific to Work Orders; it applies to any MDF object that uses rules to auto-generate sequences.
The auto-generation of position is configured as described in the guide: Employee Central Position Management - Generate Position Code Automatically
See Also
2961945 - Position Code (MDF Object) Auto Generation Skipping Sequence
Employee Central Position Management - Generate Position Code Automatically
2090228 - How to Submit Ideas for SAP SuccessFactors Products
Keywords
work order id, sequence skipping, MDF object, auto generation, contingent worker, SAP SuccessFactors, employee central, rule trace, sequence increment, position code. , KBA , LOD-SF-MDF-OBJ , Object Definition & Field Related Issues , LOD-SF-MDF , Metadata Framework , LOD-SF-MDF-MGD , Manage Data - Create, Update & Delete , Problem