Send Outlook Mail Message activity problem(rpc_e_servercall_retrylater)

I have an issue with “Send Outlook Mail Message” activity. Around 1 week ago, the activity seemed to work perfectly fine. But now whenever I tried to use that activity, it gives me “0x8001010a (rpc_e_servercall_retrylater))” this error and it alsow mentions that outlook is currently using something. By the way I tried using kill process activity for the process name “outlook” before that activity began. And also used invoke powershell and used "Stop-Process -name ‘outlook’ -Force’. But it still gives me the same message. Does anyone have a solution to this problem? I tried upgrading UiPath.mail actvities dependencies

Hey @kdlee

You may give a try killing the following outlook related process.

  1. outlook.exe
  2. ucmapi.exe
  3. communicator.exe
  4. lync.exe
  5. teams.exe

then add a short 2–3 second delay before sending the email. This clears the error possibly.

You can try wrapping the mail activity in a retry scope activity. Usuallly in most cases it works.

If you still faces , try to use modern activities - send mail.

@kdlee

Try upgrading the UiPath.Mail.Activities package to latest possible version.

Hi @kdlee

What changed between these two time points?

the client company’s outlook had not been working properly. So they told me to change the settings for option in the outlook to add “COM” part. I think after that it was giving me that error.

Thanks for the info, I tried to kill all the processes which you mentioned but it is not working

Thanks, but I tried that if you read my first post.

@kdlee : Could you please share the following details.

  1. UiPath Studio Version
  2. Mail ActivityVersion
  3. Outlook Version
  4. Error screenshot
  5. Issue is faced only on this Workflow or all the workflows running in this machine?

the client company’s outlook had not been working properly. So they told me to change the settings for option in the outlook to add “COM” part.

Would you be able to add a bit more details about this part? What wasn’t working properly that prompted the changes?
Was it something related to UiPath activities, or unrelated?

Please read the original message and the following which I have done. I gave enough details of what I wrote about an error.

  1. Studio version : 2024.10.8
  2. Mail ActivitiyVersion : 2.7.11
  3. Outlook Version: 16.0.16130.20806
  4. It’s company’s laptop, so it’s hard to take a screenshot
  5. It usually happens in local machine during debug mode.

@kdlee : Just a thought
Could you please open the Outlook in safe mode

Run: outlook.exe /safe

If it works in safe mode then COM Add-in is creating the issue

You may do the following steps if it is working in safe mode

  • Go to: File → Options → Add-ins → Manage: COM Add-ins → Go
  • Disable all non-Microsoft add-ins, restart Outlook normally, test UiPath again.

Thanks for the response. I will definitely try it. I have other things to do as well.

Thanks for your help. It worked.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.