SAP Knowledge Base Article - Public

3621246 - Sequence ID for MDF Object is not automatically populated to next number with Initialize Rule

Symptom

  • Create an Initialize rule for an MDF Object to automatically populate the External Code or another relevant field with a sequential number. The expectation is that the ID should be generated from the next number in the "SequenceID" sequence, but it is not.
  • "SequenceID" is not incremented by 1 when adding a new record to the object. E.g., if the Rule Trace indicates that the rule is running 4 times, then the "SequenceID" is incremented by 4.

Environment

SAP SuccessFactors HCM Core

Reproducing the Issue

  1. Note Current Sequence ID and Enable Rule Trace:

    • Navigate to the "Manage Data" page and confirm the current "Sequence ID" for "MDF Object" (e.g., 1036).
    • Enable Rule Trace log
  2. Add a New Record in the affected object:

    • Go to Manage Data or People Profile page.
    • Fill the details to proceed with the record creation.
  3. Observe Sequence ID Assignment:

    • Observe that the "Sequence ID" field 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.
  4. Verify Increment Issue:

    • Due to the rule running multiple times, the "Sequence ID" is regenerated, causing gaps in the sequence.
    • Confirm that the MDF record 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 custom MDF Objects; 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

Product

SAP SuccessFactors HCM Core all versions