Views:

Applies to Product -  Power Automate


What’s happening?
Customers are experiencing difficulties connecting to Virtual Desktop Infrastructure (VDI) for executing Desktop Flows, resulting in failures during automated processes.
 

Reason:
The underlying cause of this is related to the screen resolution settings on some Windows computers or virtual machines (VMs) that are set to a smaller resolution by default when running unattended desktop flows. This can lead to failures in executing automated applications that are sensitive to screen resolution or rely on image-based automation.
 

Resolution:

  1. Upgrade PAD Version: It is recommended to upgrade the Power Automate Desktop (PAD) version from an outdated version (e.g., 2.28) to the latest version (e.g., 2.49). Testing should be conducted in a separate VDI environment to ensure compatibility before upgrading the production VDI.
  2. Set Default Screen Resolution: Modify the UIFlowService.exe.config file to set the default screen resolution. This can be done by:
  3. Opening the UIFlowService.exe.config file in a text editor.
  4. Setting the Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled to true.
  5. Adjusting the Width and Height properties to the desired resolution.
  6. Restart the Power Automate Service: Restart the Power Automate service (previously known as UIFlowService) through the Task Manager or by rebooting the computer.
  7. Schedule Automatic Reboots: It is advisable to schedule automatic reboots of the VDI machines at a specific time (e.g., every day at 2 AM) to manage backend processes more efficiently. This can be set up using Task Scheduler with the action shutdown /r.
  8. Configure Machine Groups: Consider setting up machine groups to ensure that if one machine stops functioning, another can take over the process. This can enhance redundancy and reliability in executing desktop flows.