SAP Knowledge Base Article - Public

2245676 - API calls return the error - Authentication failed due to invalid companyId

Symptom

You are trying to connect to API.

 The following error has occurred.

"Authentication failed due to invalid companyId"

Environment

The environment could be Boomi / PI / Direct API Web Service / HCI

Reproducing the Issue

Steps to Re-produce the issue.

Connect to the data center specific API end-point url using the below:

  • Company Id
  • Username 
  • Password

 The error is re-produced with the above steps.

Cause

There are 2 possibilities:

1. The API end-point url is incorrect. ("/" or a typo or a wrong url path could be the reason)

2. The company ID specified is not correct. Please note that company ID Abcd and ABCD are treated as two different companies. This is case-sensitive.

Resolution

Please ensure that the correct API end-point URL is used to connect to Successfactors API.

For example - If your Successfactors company Id is provisioned in Data Center 4, The API url would be -

https://api4.successfactors.com/sfapi/v1/soap

Similarly, 

For other data centers, You would find the respective end-point url from the handbook from the below link - 

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_SFAPI_Handbook_en.pdf

Please refer to the KBA to know Successfactors API URLs for different Data Centers.

Secondly, Please ensure that the Company Id is entered as it appears in the successfactors instance (Case-Sensitive)

 

 

See Also

Reference guides for SFAPI and Odata API

http://help.sap.com/hr_api/

 

Keywords

invalid companyId error  , KBA , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , Problem

Product

SAP SuccessFactors HCM Core all versions