Symptoms
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: 9.5.0.79 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":"https://login.microsoftonline.com/error?code=700082"} --RefreshAccessToken --ChilkatLog .
Cause
Refresh token is stored in the FlexiCapture project data and cannot be modified so not refreshed automatically on regular connections to the mailbox
Resolution
Method 1 (recommended). Upgrade to FlexiCapture 12 build 12.0.4.848 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.