SAP Knowledge Base Article - Public

3113212 - SFAPI login error with HTTP 500 error and "Failed to execute the ExtractVariables: ExtractCompanyId"


You are trying to login into SFAPI using your username/password and you get errors like HTTP 500 or the error below:

{"Envelope":{"encodingStyle":"http:\/\/\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Failed to execute the ExtractVariables: ExtractCompanyId","faultactor":{},"detail":{"source":{"errorcode":"steps.extractvariables.ExecutionFailed"}}}}}}


  • SAP SuccessFactors HXM Suite
    • SFAPI login operation

Reproducing the Issue

You are running your API POST call with SF endpoint:    (this endpoint depends of the datanceter).

 And you are trying to do POST > Login operations

<Envelope xmlns="">
        <login xmlns="">


Password with special characters.


Please change the password:

  • Ensure that your password doesn’t contain the XML special character &, <,  >, "


SFAPI, SOAP, Login, error, HTTP 500, ECP, ping, CompoundEmployee, {"Envelope":{"encodingStyle":"http:\/\/\/soap\/encoding\/","Body":{"Fault":{"faultcode":"soap:Server","faultstring":"Failed to execute the ExtractVariables: ExtractCompanyId","faultactor":{},"detail":{"source":{"errorcode":"steps.extractvariables.ExecutionFailed"}}}}}}, SAP SuccessFactors API , KBA , LOD-SF-INT-API-DEPR , SFAPI Deprecation Queries , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , LOD-SF-INT-CE , Compound Employee API , LOD-SF-INT-ECP , SF EC to ECP API's & Connectivity Issues Only , How To


SAP SuccessFactors HXM Suite all versions