Symptom
Error 401 is encountered while calling the SAP SuccessFactors endpoint using standard SuccessFactors connector from CPI: com.sap.gateway.core.ip.component.odata.exception.OsciException: : 401 : HTTP/1.1
Environment
- SuccessFactors HCM Suite
- OData API Framework
Cause
This happens because the connector is configured on the following way:
Address: https://<API-server>/odata/v2
Address Suffix: /odata/v2
As a consequence, the API call reaching SuccessFactors looks like this: https://<API-server>/odata/v2/odata/v2
Resolution
To resolve this issue, remove the '/odata/v2' from the Address and keep it only on the Suffix.
Keywords
error 401, odata api framework, sap successfactors, endpoint configuration, incorrect url, /odata/v2/odata/v2/, sap cloud platform integration, cpi configuration , KBA , LOD-SF-INT-ODATA , OData API Framework , How To
SAP Knowledge Base Article - Public