When you say the Controller restarted that Bot, are you saying they restarted the machine or simply restarted the Process?
Have you considered using SMTP as a backup to your primary method of sending emails? Our primary means of sending emails is an internal tool/service that obviously wouldn't be available to the public, but our backup if that fails is to use SMTP. Unless your organization has disabled it, you should be able to use SMTP and that basically never fails. There are security concerns I suppose with SMTP such as it not saving Sent Emails anywhere and it's possible to spoof who the Sender is. But there are solutions to both of these issues that I can describe later if for some reason you decide to implement it.
You'd have an object with an action like 'Send Email' which would first call 'Email - Exchange Managed API'. If that throws an exception, then it immediately tries to send an email using the backup method (which as I mentioned could be SMTP). Alternatively, you could consider using the MS Outlook Email VBO as your backup. I'm guessing you also don't use it for the same reason that I don't: emails getting stuck in the Outbox. (and
@Philip Trovato knows that issue well too haha...I'm shaking my head at emails getting stuck in the Outbox). But you might want to consider reintroducing the use of the Outlook VBO simply as a secondary/backup means of sending emails. It's not a perfect solution but it's still a good long term backup and it gets you a safety net while you figure out what is causing the 'The request failed. Unable to connect to the remote server' issue.
------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Original Message:
Sent: 02-11-2020 09:42
From: Ashis Kumar Ray
Subject: Email - Exchange Managed API - Unable to connect to the remote server
Hi All,
We are using Email - Exchange Managed API object rather than MAPIEx or MS Outlook VBO to send email from BP to outside. From last 2-3 weeks we are getting an error from some processes while reading emails from Inbox i.e. "ERROR: Internal : Could not execute code stage because exception thrown by code stage: The request failed. Unable to connect to the remote server". This issue has occurred for 1 Bot out of 10 Bots. Then Controller restarted that Bot and again it started working fine. I wanted to know why this error has come for that particular Bot and in which scenario and what precaution we should take to restrict this kind of error. When a process terminates for this issue, no alert email are also coming to controller team as sending an email is totally depending upon this object.
While using the above object we configure exchange server by passing Email id and password. And then started reading email from Inbox. The above error is coming while reading email from Inbox. This is happening very rarely not so often.
Thanks
------------------------------
Ashis Kumar Ray
RPA Developer
Europe/London
------------------------------