Cannot bring the target application in the foreground. The action was blocked by the current foreground window 'New notification' from the process 'shellexperiencehost.exe.'

I frequently encounter the error: “Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘New notification’ from the process ‘shellexperiencehost.exe.’” This issue often occurs with my published bots triggered by time. While the error does not appear consistently, it usually resolves itself after 2-3 failed attempts.

Could you suggest a permanent solution to address this? The inconsistency makes it difficult to pinpoint the exact cause, Please help me for the same.

Hi!

Maybe this thread can be helpful?
New exception not seen before related to Windows “shellexperiencehost.exe” - Help / Something Else - UiPath Community Forum

@Ajinya_jorwekar

this occurs because of the windows notification messages

turn them off

Start > Settings > System > Notifications

cheers