Back

Error when opening or running a CRM map that says “Failed to refresh access token:”

Published: Jan 27, 2022
Post Author Written by David Youngquist

When opening a map that uses CRM as a source or a destination, receiving an error message that says “Failed to refresh access token”


It means that the Oauth access token to CRM has expired. You need to open up the CRM Connector refresh the token.  

There are multiple reasons to refresh the access token for the CRM conector:

  • OAuth User is removed or left the CRM
  • The Azure app secret expired
  • CRM metadata update needed.

If you will see the error “Failed to retrieve access token“. Generate a new secret as shown in steps 8-10 in this article: setting up Azure application.

  1. Log into SmartConnect.com as an administrator
  2. Select Connections from the menu
  3. Edit the Dynamics Customer Engagement connection needs to be invalidated
  1. To enable the Validate button CUT (Ctrl+X) Application ID and PASTE (Ctrl+V)
  2. 04. Click on the Validate Button
  3.  Select the Organisation
  4. Click on Save to complete the Customer Engagement connection revalidation.

Open SmartConnect, go to the Setup tab and hit the Setup button. Double click on the CRM connector, and it will open the “Microsoft CRM Connector Setup” window. Do NOT change anything in the window. All you want to do is this.

01. Click the “Verify” Button
02. Click the “Get Access Token” button
03. Click the “Refresh” button and select the correct CRM organization.
04. Click the “Verify Organization” button (only if it is enabled, it might be disabled)
05. Click on the “Get Organization Access Token” (only if the button is enabled, it might be disabled)

Don’t change ANYTHING else in that window, all we need to do is refresh the token and then click OK. 

Open SmartConnect, go to the Setup tab and hit the Setup button. Double click on the CRM connector, and it will open the “Microsoft CRM Connector Setup” window. Do NOT change anything in the window. All you want to do is this.

01. Click the “Verify” Button
02. Click the “Get Access Token” button
03. Click the “Refresh” button and select the correct CRM organization.
04. Click the “Verify Organization” button (only if it is enabled, it might be disabled)
05. Click on the “Get Organization Access Token” (only if the button is enabled, it might be disabled)

Don’t change ANYTHING else in that window, all we need to do is refresh the token and then click OK. 

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.