"Failed to Connect to the Mail Server info for account" error when Mailbox Importer attempts to poll a Gmail inbox
Description
When Mailbox Importer attempts to poll a Gmail inbox it appears that no emails were found and the following error is listed in the Diagnostic Console:
Failed to Connect to the Mail Server info for account 'TMS - OnBase Off Phone'. Attempting to reconnect in '3' Minutes. Reason: 'One or more errors occurred.'
Addtionally, network logging shows Google is responding with an invalid request and the assertion sent by Mailbox Importer will be blank:
"error": "invalid_request"
"error_description": "Missingrequired parameter: assertion"

Resolution
This issue occurs when the private key syntax listed in the configuration module for the Google Service Account Private Key is incorrect.
To resolve this issue, update the Private Key field with the Google Service Account Private Key information as described in the Adding a Gmail Account section of the Mailbox Importer documentation.
The private key is obtained from the JSON file that Google provides when generating a private key. If this file is not saved and the key is lost, it will need to be regenerated. For information on creating a new private key, see the Create access credentials article on the Google for Developers website.
Note: Remove the \n characters from the beginning and ending of the private key before entering it into the Private Key field.

Related Articles
Mailbox Importer has stopped working
DescriptionMailbox Importer has stopped working. [3/27/2019 1:11:09 PM] No configured accounts were found. Please check configuration to verify account settings are correct. ResolutionAfter revoking the Encryption Key, Starting the service to create ...
About the retryCount setting for MailBox Importer
Resolution retryCount setting for MailBox Importer, available in OnBase 18.0.1.72 and higher, is used to determine the number of import attempts per email that Mailbox Importer will make after first attempt failed. For example, if retryCount="4", the ...
Mailbox Importer is importing emails, but not attachments
DescriptionMailbox Importer is importing emails, but not attachments. ResolutionAttachments were not being imported because a Document Type was not defined for the "Attachment Default Document Type" setting. After defining a Document Type, ...
Mailbox importer is importing all unread emails from the configured mailbox even though rules are created
It is expected functionality to import all emails from a configured mailbox with Mailbox Importer. If rules are not configured to index documents then they will be indexed to SYS Unidentified Emails. There currently is an SCR 201359 to "create a ...
Mailbox Importer seems to be the cause of AppServer application pool crashes
DescriptionMailbox Importer (MBI) seems to be the cause of AppServer application pool crashes. Issue randomly started occurring today. The AppServer used for MBI, which is a separate AppServer then the AppServer used for rest of OnBase Solution, but ...