I’m hitting an issue when i try to run an automation through invoke work flow file.
I have an automation that clicks inside a search text box then types a name to search. When i run the automation from the original .xaml file it works fine.
I have another automation that logs into the site and then i have an invoke workflow file for search .xaml. This automation logs in without issue, but then when it tried to click inside the search text box, i get the following error:
The UiElement is no longer valid at UiPath.Core.Activities.InvokeWorkflowFile.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Any suggestion on why this search .xaml works fine when running by its self but not when it is invoked?