Symptom
When deploying an iFlow containing a Mail Sender adapter, pointed to google mail server using OAuth2 authorization code authentication, the deployment fails with one of the following error messages -
GBD1 BAD Invalid SASL argument
A1 BAD Invalid SASL argument
For example -
[CAMEL][IFLOW][POLL_FAILED] : Polling from imaps://imap.gmail.com:993?binding=%23binding_MessageFlow_5&connectionTimeout=3000&delete=false&disconnect=true&fetchSize=20&folderName=OauthTest&handleFailedMessage=true&mail.imap.auth.digest-md5.disable=true&mail.imap.auth.login.disable=true&mail.imap.auth.ntlm.disable=true&mail.imap.auth.plain.disable=true&mail.imap.auth.xoauth2.disable=false&mail.imap.partialfetch=false&mail.imap.sasl.enable=false&mail.imaps.auth.mechanisms=XOAUTH2&mail.imaps.partialfetch=false&maxMessagesPerPoll=20&mimeDecodeHeaders=true&peek=true&pollStrategy=%23mailPollStrategy_MessageFlow_5&scheduler=MessageFlow_5.pollConsumerScheduler&scheduler.cron=0+0%2F1+0-23+%3F+*+*+*&scheduler.timeZone=Etc%2FGMT&unseen=true failed.
[CAMEL][IFLOW][EXCEPTION] : javax.mail.MessagingException: GBD1 BAD Invalid SASL argument. h20mb27107218wmq
[CAMEL][IFLOW][CAUSE] : Cause: com.sun.mail.iap.BadCommandException: GBD1 BAD Invalid SASL argument.
Read more...
Environment
- SAP Cloud Integration
- SAP Integration Suite
Product
Keywords
CPI, HCI, Integration Suite, Cloud Integration, gmail, Google mail server, Unauthorized, GBD1 BAD Invalid SASL argument, A1 BAD Invalid SASL argument, Mail sender adapter, mail adapter, POLL_FAILED, poll, IMAP, OAuth2 Client Authorization Code, Inbox , KBA , LOD-HCI-PI-CON-SOAP , SOAP Adapter , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.