Loading

Outlook 365 Connector Fails with OUTLOOK365:INVALID_CREDENTIALS

Data pubblicazione: Oct 20, 2026
Descrizione

In applications using the Microsoft Outlook 365 Connector, calls to Microsoft Graph succeed initially but fail after the OAuth token expires (typically after 60 minutes). All subsequent requests fail until the application is restarted.

The following error is raised:

Message : Invalid token lifetime. 
Element : (None) 
Element DSL : (None) 
Error type : OUTLOOK365:INVALID_CREDENTIALS
FlowStack : (None)

The application logs may also display the following warning:

WARN com.mulesoft.connector.outlook365.internal.connection.Outlook365Connection: event:[EVENT_ID] Couldn't execute because a module exception has occurred. An exception will be thrown. Root exception was: Invalid token lifetime.
at com.mulesoft.connector.outlook365.internal.service.Outlook365Service.handleResponse(Outlook365Service.java:203)
Risoluzione

CAUSE

In Microsoft Outlook 365 Connector versions 1.3.1 and earlier, the connector does not recognize non-standard HTTP 401 Unauthorized responses or empty error payloads returned by Microsoft Graph when an access token expires. Because the connector does not recognize that the token has expired, it does not trigger the OAuth token refresh routine, continues to reuse the expired access token, and repeatedly throws OUTLOOK365:INVALID_CREDENTIALS.

SOLUTION

Update the Microsoft Outlook 365 Connector to version 1.3.2 or later to enable proper handling of 401 error responses and token refresh routines.

  1. Open the application's pom.xml file.
  2. Locate the mule4-outlook365-connector dependency and update the <version> to 1.3.2 or later:
<dependency>
    <groupId>com.mulesoft.connectors</groupId>
    <artifactId>mule4-outlook365-connector</artifactId>
    <version>1.3.2</version>
    <classifier>mule-plugin</classifier>
</dependency>
  1. Save the changes and rebuild the application.
  2. Deploy the updated application to your environment.
  3. Verify: Monitor the application for longer than one OAuth token lifetime window (at least 60 to 90 minutes) and confirm that requests succeed continuously without requiring an application restart.

APPLIES TO

  • Microsoft Outlook 365 Connector versions 1.3.1 and earlier
  • Mule runtime engine 4.3.0 and later
  • CloudHub 2.0, CloudHub, and On-Premises deployments
Numero articolo Knowledge

005462359

 
Caricamento
Salesforce Help | Article