Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to restart UI flows to recover from a bad state


View products that this article applies to.

Symptom

If you are in a state where you are consistently experiencing an error when performing a UI flow run, recording or test, but nothing is actionable, it may help to restart UI flows by restarting the service.

You must be an admin on the machine to restart the service.

↑ Back to the top


How-to

Before restarting the UI flow service, verify in the task manager that the UI flows agent (Microsoft.Flow.Rpa.Agent) is not running.  If it is running, click End task.

[Asset 4555619]

Use the following methods to restart the UI flow service in the following order.  Note that you must be an admin to restart the service.

  • Method 1 : Restart UIFlowService
    • Open the task manager and go to the services tab, then look for UIFlowService, right click on it, and click Restart[Asset 4555620]
  • Method 2: If method 1 returns an error, you can try to restart the service manually as follows:
    • Kill (end task) the UI flow service process (parent of the service) in the process tab of the task manager. [Asset 4555621]
  • Then delete session.json located in
    • C:\Windows\ServiceProfiles\UIFlowService for Windows 10
    • C:\Users\UIFlowService for Windows Server 2016 and Windows Server 2019
  • Note that the service should automatically restart after the task had ended.

↑ Back to the top


Keywords: Microsoft.Flow.RPA.Agent, uiflowservice, error, restart, ui flows

↑ Back to the top

Article Info
Article ID : 4555618
Revision : 8
Created on : 3/30/2020
Published on : 3/30/2020
Exists online : False
Views : 240