I’m trying to select a list item, based on a string from a List variable.
The “Select Item” control works fine if I free-type the text into the control, but it breaks with the error below if I try and use a variable to work from instead.
The issue is that the elements that can be selected constantly change, so I need a way to select the 1st, 2nd, 3rd, etc, element in the list for every job I run. I have made a list of Strings, but don’t seem to be able to select elements based on that list…
Any help would be appreciated
19.7.0+Branch.master.Sha.8c253d13718eed5c7db27daef6facd1fe1b0d067
Source: Select Item ‘list’ (Select Item ‘list’)
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Exception Type: UiPath.Core.ElementOperationException
RemoteException wrapping UiPath.Core.ElementOperationException: Error HRESULT E_FAIL has been returned from a call to a COM component. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
at UiPath.UiNodeClass.Set(String bstrAttr, Object vValue)
at UiPath.Core.UiElement.Set(String attribute, Object value)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)