SAP Knowledge Base Article - Public

2872019 - [LGN0022]The access token is either rejected or expired - SuccessFactors HXM Suite

Symptom

Your SuccessFactors OData OAuth2 call is returning the following error:

[LGN0022]The access token is either rejected or expired

Environment

SuccessFactors OData API - using OAuth2

Resolution

The error message means your process that generated this token was correct, but the API call make was after the expiration date.

Please evaluate your process to create another token (bearer) before the next API call or reduce the interval between the API token generation and the API call done with this token.

Please also check if you tried to regenerate one new token ("New access token retrieved for OData context") and in the response you had the same OldToken and NewToken. If yes, the solution for that is using the parameter: new_token=true

This will force to generate new_token in the call and the next call will not have issues with token expired.

This parameter is documented in the page 30 of the OData Dev handbook.

Keywords

[LGN0022]The access token is either rejected or expired, SuccessFactors OData OAuth OAuth2, API, new_token=true, new token, OldToken, NewToken HCM HXM Suite , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HXM Suite all versions