Launching Outlook; handling Safe Mode dialog box.

  • 7 November 2022
  • 3 replies

Badge +4

Hi All,


My bot has Outlook launching and checking for emails but there could be instances when Outlook fails to start which would interfere with my bot.

safe mode outlook 

Any suggestions on how to have the bot activate the 'No' option?

My code as follows, but it didn't work:

Any other suggestions appreciated.


code to handle outlook 

As I could not reproduce the same dialog box at will; I simulated it by pressing CTRL key to generate a similar dialog box and tested the same logic, which works fine on my local machine, but that part of code did not work in production.

3 replies

Userlevel 6
Badge +16

Hi @Huang Kaijin​ ,


The error means that Outlook could not open properly i.e., loading profile, addons, and configuration files failed. Checkout below blogs for resolution>


If this is not helping you, I'd recommend opening a support ticket with AA using below link>


if you don't have access to the above link, Send an email to AA Support team "" to get the access.


Badge +4

Hi All,

I had to change the behaviour of the bot; i left Outlook open while the bot runs. It does not intefere with the bot operation.



Userlevel 6
Badge +16

Thanks @Huang Kaijin​ for sharing tips with the community.