Ui path studio automation run fails when I switch screen from VM issue

Hi , I am running my UiPath automation on studio in Azure VM. When I run and I am on screen visible to me .the script runs and passed . But when I click run and switch my out from my VM it fails. It passes only when focus is on VM screen. Any idea on how to run in background also even when I’m not in that screen ?.

Thanks

Switching away from it is similar to locking the screen. You can’t run automations that way. You need to run it as unattended where Orchestrator launches the RDP session itself.

The behavior you’re experiencing, where a UiPath automation works only when the virtual machine (VM) screen is in focus, is likely due to the way your VM is configured. In many virtualized environments, there are restrictions on what can run in the background or when a VM isn’t in focus. Here are some steps you can take to addre In short, the issue where your UiPath automation only works when your Azure VM screen is in focus may be due to VM settings or restrictions. To resolve this:

  1. Check VM configuration for background execution options.

  2. Simulate human interaction using UiPath settings.

  3. Explore headless execution options in VM settings.

  4. Review and optimize your workflow for background execution.

  5. Consider UiPath Orchestrator for scheduling.

  6. Use UiPath debugging and logs to diagnose issues.

  7. Keep the VM session active while the automation runs.

  8. Adjust Remote Desktop Services configuration if possible.

Hi @postwick , is unattended licensed cost ? Or one robot is free in UI path studio for unattended?

Hi @Nthabiseng_Moloi thanks for the reply .but my other automations like selenium etc . Works when I switch from VM to main laptop.?

Yes but make sure before switching you keep backups of your VM in case you need to revert to it if any issues arise during the transition.

Hi , do you have any idea where can I find the configurations for the VM?

Hi, where can I find the configuration for VM any idea ?