Symptom
- Upserting records into EmpPayCompNonRecurring creates duplicate payments instead of updating existing ones.
- The same payment (same user, pay component code, and pay date) appears more than once.
- Duplicates started appearing after the sequenceNumber field was enabled and mapped as part of the integration or API payload.
- Existing payment records are not being updated; new records are inserted alongside them.
Environment
- SAP SuccessFactors Employee Central
- OData API
Cause
EmpPayCompNonRecurring has two possible business keys depending on configuration:
- Without sequenceNumber enabled: userId + payComponentCode + payDate
- With sequenceNumber enabled: userId + sequenceNumber
When sequenceNumber is enabled as an additional key property, payComponentCode and payDate are no longer part of the business key. The upsert operation matches existing records on userId + sequenceNumber only.
Payment records created before sequenceNumber was enabled do not carry a sequenceNumber value (or carry a different one). After the change, incoming records are matched on the new key. Because the existing records do not have the sequenceNumber value now being sent, the upsert cannot find them. Instead of updating the existing record, it inserts a new one. The original record remains, producing a duplicate.
This behavior is expected. As stated in the SAP documentation for this entity: once sequenceNumber is introduced as part of the business key, its value must be maintained consistently. If the value is not maintained for records that already exist, integrations that rely on the uniqueness of the pay component will create duplicates: EmpPayCompNonRecurring
Resolution
- Backfill the sequenceNumber value on all existing EmpPayCompNonRecurring records so each record carries the same sequenceNumber value that the integration or API now sends. Once the existing records match on the new business key, the upsert updates them instead of inserting new records.
- Identify and remove the duplicate records already created.
- After backfilling, confirm that subsequent upserts update the existing records rather than inserting new ones.
Note: enabling sequenceNumber and populating it with a unique, stable value per record is a valid design. The duplicates are not caused by the configuration itself, but by enabling it over data that already existed under the previous business key without reconciling the existing records.
Keywords
EmpPayCompNonRecurring, One-Time Payments, sequenceNumber, sequence number, duplicate records, duplicate payments, business key, upsert, One-Time Payment duplicates, pay component, payComponentCode, payDate, additional key property, OData API , KBA , LOD-SF-INT-INC-JOB , Integration Center Job , Problem
SAP Knowledge Base Article - Public