A OneDrive pop up is causing failures. It is required to implement a temporary solution to disable all Windows notifications on the VMs. Is this the recommended way to configure the VMs or is there another permanent solution?
Issue:
A OneDrive pop up is causing failures. Cannot bring the target application in the foreground. The action was blocked by the current foreground window 'New notification' from the process 'shellexperiencehost.exe.'
Resolution/ Methods to try:
- If OneDrive is not required for the automation process, consider disabling it temporarily on the machine where the Robot is running. This can prevent OneDrive pop-ups from interfering with your automation
- What mode does the robot installed in your VM service mode or user mode?
- UiPath provides the option to run processes in the background, which can help prevent pop-up dialogs from interfering with your automation - Studio - Background Process
- If disabling or configuring OneDrive is not an option, you can implement pop-up dialog handling within the automation workflow:
- Use Try-Catch Block to handle the exception
- Use the "Element Exist" activity to check for the presence of the pop-up dialog. If it exists, use the "Click" activity to click on the close button on pop up
- Adjust timeout settings in your automation activities to allow for longer waiting times for pop-up dialogs to disappear
- Consider temporarily disabling Windows notifications or alerts while the robot is running. This can prevent pop-up dialogs from appearing in the first place.(you already mentioned this method in the case details)
- Implement detailed logging in your automation process to capture information about any encountered pop-up dialogs. This can help in troubleshooting and improving error handling.