Hi -
My goal is to create the following desktop flow that will allow me to back up data to a new location:
- Turns off services (for a program)
- removes index files (created by program)
- copies files to new location (backs up program data)
- deletes files from original location
- restart services (re initiates indexing)
My flow currently looks like:
- stop service
- wait for service
- delete file
- copy file
- wait for window content
- delete file
- wait for window content
- start service
I'm receiving a runtime error at step 1 when trying to turn off services.
The "access" denied makes me think it's a permissions issue- is there way around this?
error details below:
Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Can't stop service 'MD.AnalysisService' ---> System.InvalidOperationException: Cannot open MD.AnalysisService service on computer '.'. ---> System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
at System.ServiceProcess.ServiceController.Stop()
at Microsoft.Flow.RPA.Desktop.Modules.Services.Actions.ServicesActions.StopService(Object serviceName)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.Services.Actions.StopService.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)