Skip to main content

IMAP Capture with GMAIL address shows an error even though password and Gmail email address are correct

Article # 3054974 - Page views: 34


If 2-factor authentication is turned on in Google, then you can't connect IMAP to an external app without an app password. Now, when running "Test Account Settings" in AutoStore Designer, the following error message appears. Login Error: Invalid username or password

On runtime a similar error message is displayed.

Error    IMAP Capture:  Account: IMAP, Server:, Username: Server login error: aaab NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)    03/07/2023 12:07:06



Google has modified the process and an App Password must now be assigned in Google Apps. How to:

Create & use App Passwords

If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an App Password.

  1. Go to your Google Account.
  2. Select Security.
  3. Under "Signing in to Google," select App Passwords. You may need to sign in. If you don’t have this option, it might be because:
    1. 2-Step Verification is not set up for your account.
    2. 2-Step Verification is only set up for security keys.
    3. Your account is through work, school, or other organization.
    4. You turned on Advanced Protection.
  4. At the bottom, choose Select app and choose the app you using and then Select device and choose the device you’re using and then Generate.
  5. Follow the instructions to enter the App Password. The App Password is the 16-character code in the yellow bar on your device.
  6. Tap Done.




Applies to:  

Product Version
AutoStore  7.x
Control Suite AutoStore 8.x


Article # 3054974