Cannot find the UI element corresponding to this selector using Windows app Excel


Hi, I am new to UIPath and working on recording sequence of Windows app Excel!
When I start recording on Desktop all my activities are under Attached window, but this attached window is throwing the following error:

Main has thrown an exception

Source: Attach Window ‘Template Xlmain’

Message: Cannot find the UI element corresponding to this selector:

Exception Type: SelectorNotFoundException

UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector:
at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)
at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)



Here we go:



Did you …!

Happy Automation.


Hi Girish,

I have read the following link before and tried using Wildcard * in my title for excel but unable to get success !
I just have simple click events in Excel and have recorded the using Desktop Recording, but as all the activities are recorded under Attached window it is showing me the above error !
Please check my Selector as it is showing :



Hi Gautam,

Not only main attached window, try to manipulate the selector in click activities inside the attach window.
Hope you will do some work around to select the proper selector by using UiExplorer



Could you please attach workflow.
What option you trying to choose in excel.
You could make use of excel activities available in UiPath.


Hi ddpadil,

Can you please help me for how should I attach the workflow?

Gautam Dhall


As your new user and joined recently .The upload option not available yet.
It will be available after you gain level 1 trust:

Never mind you can send xaml the to this . :slight_smile: