Import with Microsoft Graph API image import profile fails after 90 days of activity.


Import with Microsoft Graph Mail API image import profile starts to fail with the below error message even if the import was active during the last 90 days:

Flow failed. Failure info/error: ChilkatLog: RefreshAccessToken: DllDate: <somedate> ChilkatVersion: UnlockPrefix: ABBYYP.CB4102020 Architecture: /~skipped here~/... responseStatusCode: 400 Reading response body... --fullRequestGetResponse finalResponse: {"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inactivity. The token was issued on <Date and Time>Z and was inactive for 90.00:00:00. /~skipped here~/,"error_uri":""} --RefreshAccessToken --ChilkatLog .



Refresh token is stored in the FlexiCapture project data and cannot be modified so not refreshed automatically on regular connections to the mailbox


Method 1 (recommended). Upgrade to FlexiCapture 12 build or later where the refresh token management feature is implemented, and re-create the image import profile.

Method 2 (temporary solution that requires to be repeated every 90 days):

  • Re-authenticate in Microsoft Graph Mail API Image Import Profile properties:
  • (Optional) Increase refresh token lifetime at the Microsoft identity platform.
    Note. This method is described in FlexiCapture 12 official documentation but the option is deprecated by Microsoft since January 30, 2021.

Additional Information:

Importing images using Microsoft Graph Mail API

Have more questions? Submit a request



Please sign in to leave a comment.