SAP Knowledge Base Article - Public

2397120 - Invalid SFQL! Error: The enhanced SFQL capabilities of Compound Employee API are not enabled


This KBA describes the resolution for the error "The enhanced SFQL capabilities of Compound Employee API are not enabled" which is encountered while running the CompoundEmployee API in Successfactors.

Note: This issue occurrs when you are trying to query the Compound Employee Mapping Extension fields.


Successfactors Employee Central (API)

Reproducing the Issue

To reproduce the issue, follow the steps below: (We have chosen SOAP UI to reproduce the problem)

1. Execute the log-in call to Successfactors instance through the "login" menthod (here a sample SOAP body is shown, in real time scenario company ID,username and password are filled in the place of [string])

<Envelope xmlns="">
        <login xmlns="">
            <!-- Optional -->

2. After the successsful login, we would pass the following query

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns="">
  <SOAP-ENV:Header />
    <query xmlns="">
      <queryString>SELECT person/extensionFields,employment_information FROM CompoundEmployee</queryString>

3. Response received for this

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="">
        <ns2:Fault xmlns:ns2="" xmlns:ns3="">
            <faultstring>SFAPI Domain Error!</faultstring>
                <ns2:SFWebServiceFault xmlns="" xmlns:ns2="">
                    <ns2:errorMessage>Invalid SFQL! Error: The enhanced SFQL capabilities of Compound Employee API are not enabled. Please enable the feature in provisioning.</ns2:errorMessage>


When the feature "Compound Employee Mapping Extension" is enabled at the backend, this inturn needs the following feature also to be enabled "Enable enhanced segment and field selection".

If this is not enabled, it will lead to the error documented in the title.


How to enable Enable enhanced segment and field selection?

  • Goto "Provisioning --> SFAPI Feature Settings --> Enable enhanced segment and field selection"



KBA , compoundemployee , invalid_sfql , LOD-SF-INT-API , SF API & Adhoc API Framework , LOD-SF-INT-BOM , Std. SF to 3rd Party Boomi Content , Problem


SAP SuccessFactors HCM Core 1611 ; SAP SuccessFactors HCM Core 1702