SAP Knowledge Base Article - Preview

3246152 - TokenAccessException: OAuth2 Authorization Code Credential '<xy>' does not contain a refresh token

Symptom

You have an iflow that connects to Microsoft 365 Mail with OAuth2 and during deployment you encounter a similar exception:

[CAMEL][IFLOW][ERROR] : Integration flow failed.
...
    [CAMEL][IFLOW][CAUSE] : Cause: com.sap.esb.oauth.token.access.TokenAccessException: Problem during reading the OAuth2 Authorization Code Credential <Credential name> from the cache: com.sap.esb.oauth.token.access.TokenAccessException: OAuth2 Authorization Code Credential '<Credential name> ' does not contain a refresh token. Contact your Integration Developer or Tenant Administrator to trigger the authorization request for this credential.
      [CAMEL][IFLOW][CAUSE] : Cause: com.google.common.util.concurrent.UncheckedExecutionException: com.sap.esb.oauth.token.access.TokenAccessException: OAuth2 Authorization Code Credential '<Credential name> ' does not contain a refresh token. Contact your Integration Developer or Tenant Administrator to trigger the authorization request for this credential.


Read more...

Environment

  • BTP Cloud Integration
  • SAP Integration Suite

Product

Cloud Integration all versions

Keywords

SAP Cloud Integration, Cloud Integration, CPI, Cloud Platform Integration, HCI, Microsoft, Token, Refresh Token, 90 days, OAuth2, TokenAccessException, does not contain a refresh token, 

, KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.