SAP Knowledge Base Article - Public

3503551 - Error: " Getting odata metadata failed because of Excpetion: Failed to fetch OAuth2 token! null"

Symptom

The connection type is SAP SuccessFactors. When validating connection, the error occurs:

---------------------------------------------------------------------

Connection "XXX" couldn’t be established.
- Data flows can’t be used because of errors in the connection.
- Replication flows are not supported.
- Remote tables can’t be used because of errors in the connection.


Data Flows: Cause: Invalid odata connection! Getting odata metadata failed because of Excpetion: Failed to fetch OAuth2 token! null
Remote Tables: Unable to connect remote source: exception 2560000: Connection to host XXXXXX, Code: 5921, SQL State: HY000

Correlation ID: XXX-XXX-XXX-XXX-XXX
---------------------------------------------------------------------

Environment

SAP Datasphere

Cause

The "OAuth Token Endpoint" is incorrect.

Resolution

The "OAuth Token Endpoint" should be enter the API endpoint to use to request an access token.

P.S. The format should be <SAP SuccessFactors API Server>/oauth/token. 

See Also

See documentation for details.

Keywords

KBA , DS-DI-CON , Connections , Problem

Product

SAP Datasphere all versions