SAP Knowledge Base Article - Public

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


Your SuccessFactors OData OAuth call is returning the following error:

"[LGN0022]The access token is either rejected or expired"


  • SAP SuccessFactors HXM Suite
    • OData API
    • OAuth 2.0


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 Requesting an Access Token guide page.


[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


SAP SuccessFactors HXM Suite all versions