Applies ToOutlook for Microsoft 365

Last Updated: January 7, 2025

ISSUE

When you try to add a Gmail account to classic Outlook, you might get one of the following errors:

"We couldn't log on to the incoming (POP/IMAP) server. Please check your email address and password and try again."

Something went wrong Gmail error in Outlook

“We weren’t able to set up your Google account with IMAP. You may need to make changes to your Gmail settings.”

Outlook add Gmail Something went wrong error

If you have an existing Gmail account in your Outlook profile you may see the following error when trying to Send/Receive:

"Task: ‘Synchronizing subscribed folders for username@gmail.com.' reported error (0x800CCC0E): ‘Outlook cannot synchronize subscribed folders for username@gmail.com. Error: Cannot connect to the server. If you continue to receive this message, contact your server administrator or internet service provider (ISP).'

Outlook-Gmail sync error

CAUSE

This issue can occur if you add the Gmail account to Outlook and during browser sign in did not check the box for:

Select what Microsoft apps & services can access: "Read, compose, send, and permanently delete all your email from Gmail."

MS apps & services wants access check box

STATUS: FIXED

Starting with Current Channel Version 2412 Build 18324.20168, use the new Retry solution below. For more information regarding your Office version, go to About Office: What version of Office am I using?

Retry Solution

Once you are on the fixed build, if you missed checking the box for Microsoft apps & services can access: “Read, compose, send, and permanently delete all your email from Gmail.”, you can repeat the browser sign in by selecting the Retry link on the error window:

Outlook add Gmail Something went wrong error

If you are on the fixed build but the solution above is not working, please use the manual workaround below.

Manual Workaround

Step 1: Remove access for Microsoft Apps & Services in Gmail.

  1. Close Outlook.

  2. Sign in to your Google account on google.com.

  3. Select your profile picture in the top corner and select Manage your Google Account.

  4. On the left side menu, select Security.

  5. Scroll down to Your connections to third-party apps & services and select Microsoft apps & services.

  6. Locate Microsoft apps & services has some access to your Google Account and select See Details.

  7. Under Access you've given to Microsoft apps & services, select Remove all access.

  8. Select Confirm.

Step 2: Delete the Google IMAP credentials from Windows Credential Manager

  1. From the Windows Start menu, search for Credential Manager and open it. On Windows 10 you may need to open the Control Panel to access Credential Manager. For more information, please go to Accessing Credential Manager.

  2. Under Manage your credentials, select Windows Credentials.

  3. Scroll down to Generic credentials and locate those starting with MicrosoftOffice16_Data:OAUTH2.

  4. Expand each of these and hover over MicrosoftOffice16_Data:OAUTH2 until it shows the full name including the tp_google_imap_Oauth2. These are the Google credentials for your Gmail account.

  5. Select Remove for each of these with the MicrosoftOffice16_Data:OAUTH2. There are two of these credentials for each Gmail account so make sure you remove both.

    1. If you want to avoid removing Google IMAP credentials except for the specific affected account, you can map the credentials by comparing them to the identities in this registry key below. Open Registry Editor and paste this path in the Address bar at the top.Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\Identities

    2. The sub keys to this registry key above include your Gmail identity. At the beginning of the identity registry key is a number that matches your Gmail credential in Credential Manager. See the examples below for reference.MicrosoftOffice16_Data exampleReg edit example Gmail error

After you have done the steps above you are now ready to Sign in via browser from Outlook. Open Outlook to the Outlook profile that was not syncing and select the Sign in via browser business bar in Outlook. Make sure during browser sign in to check the box for Microsoft apps & services noted at the top of this article.

sign in bar Outlook ribbon

If you removed the Gmail account from your Outlook profile, select File, Add account to add the Gmail account back again and do the browser sign in process again.

More Resources

Icon Experts (brain, gears)

Ask the experts

Connect with experts, discuss the latest Outlook news and best practices, and read our blog.

Outlook Tech Community

Icon Community

Get help in the community

Ask a question and find solutions from Support Agents, MVPs, Engineers, and Outlook users.

Outlook Forum on Answers

Icon feature request (light bulb, idea)

Suggest a new feature

We love reading your suggestions and feedback! Share your thoughts. We're listening.

Find out how

See Also

Fixes or workarounds for recent issues in classic Outlook for Windows

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.