Send Outlook Mail Activity Fails

Why does Send Outlook Mail activity fail after sending 100 mails with an error message RPC Server unavailable (Exception from HRESULT: 0x800706BA) .

Issue Description: There are processes deployed which trigger hundreds of emails. Why does Send Outlook Mail activity fail after sending 100 mails with an error message

  • RPC Server unavailable (Exception from HRESULT: 0x800706BA)



Resolution:

It has been a known issue in .NET development circles that there is an issue with "RPC Server is unavailable" errors when opening Microsoft Office products (Word, Excel, Outlook, Internet Explorer) programmatically. As UiPath is built on top of the same fundamental .NET components, we see the issue as well.

  • It may be that Outlook is busy when the Robot is trying to send the mails because of opening and loading all of its COM Add-ins. To troubleshoot this issue, try the below approaches: Outlook/Help/Check for Updates. Check for any updates and install the updates.
  • If the above step fails, it may be easier to adopt the work around to repair the Outlook environment. Online repair from the Control panel
  • Disable all other Outlook add-ins: Outlook Tools menu | Options | Other tab | Advanced Options | COM Add-Ins | uncheck the items. If this solves the problem, then re-enable one add-in at a time until the problem reappears. It could be one of the add-in which get launched when the Outlook event starts.
  • Increase the Timeout interval for the mail related activities or use a Kill Process activity to close the Outlook processes before using the mail activities - this allows for a clean start for the Robot.
  • Update the Mail Activity packages to latest version.