You are trying to connect to the API and the following errors could have occurred:
- "Authentication failed due to invalid companyId"
- "Login failure due to the invalid company!"
- Direct API Web Service
- HCI / CPI
There are 3 possibilities:
- The API end-point URL is incorrect.
- The company ID specified is incorrect.
- The company ID was not provided at all during the call.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
First, ensure that the correct API end-point URL is used to connect to Successfactors API ("/" or a typo, or a wrong URL path could lead to the error).
If your Successfactors company ID is provisioned in Data Center 4, the API url would be https://api4.successfactors.com
Refer to the KBA 2215682 to check all the Successfactors API URLs for each Data Centers.
Also, some calls require the Company ID to be provided along with the API call. In these cases, please ensure that the Company ID is entered correctly (as it appears in the SuccessFactors instance). Note that the company ID "Abcd" and "ABCD" are treated as two different companies (the system is case-sensitive).
Some environments don't show where you need to specify the Company ID. Be aware that you can provide it along with the user, separating the two values with a "@".
For SFAPI connections on CPI environment:
If you will use a SFAPI connection, the credentials need to be stored according the example:
For Odata connections on CPI environment:
Your company ID is "abc123", and your API user is "admin". You would specify them as "admin@abc123", this way:
Guides for SFAPI and Odata API
successfactors, success, factors, api, call, sfapi, odata, invalid, companyId, company, id, error, authentication, @, boomi, hci, cpi, pi, middleware, middle, ware, fail, login, failed, url, , KBA , LOD-SF-INT , Integrations , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-CUS , Boomi & CPI (HCI) Custom Content , LOD-SF-INT-HCI , Standard SF to 3rd Party CPI (HCI) Content , Problem