SAP Knowledge Base Article - Public

3695547 - Records outside the specified 'employee_class' filter return in Compound Employee API

Symptom

When running a Compound Employee API query with the 'employee_class' filter, there are records in the response that contain 'employee_class' values that were not provided in the filter.

Environment

  • SAP SuccessFactors HCM Suite
    • Compound Employee API

Reproducing the Issue

  1. Run a Compound Employee API query with the below filter, for example:
    • AND employee_class IN ('1','2','3')
  2. Records with <employee_class>4</employee_class> are being returned in the response.

Cause

The unexpected employee record being returned in the response has some other job_information with an employee_class value that matches the filter.

Resolution

If the unexpected employee record being returned in the response has some other job_information with an employee_class value that matches the filter, it's expected for it to be returned.

This happens because the employee_class filter does not affect the response payload. So, if at least one job_information record contains an employee_class value that matches the filter, all job_information records for that employee are returned.

Keywords

compound employee api, ce api, ce, employee class, unexpected, job_information,  , KBA , LOD-SF-INT-CE , Compound Employee API , Problem

Product

SAP SuccessFactors HCM Suite all versions