cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lp4
New Member

PAD Drop down list

Dear community,

 

I am facing similar issues w drop down list where I am unable to choose the option from the drop down list using the Action "Set Drop down list in window". However, I could not find a workable solution online.

 

I am trying to select the option by the index. Even when I put an index of "1", it still says select list does not contain index 1 while in fact there is a few options in the list as shown below. I am hoping not to use "Send Hotkeys" and when I Desktop record, it does not track properly too. Any help on this? Thank you!

 

lp4_0-1638343930954.png

 

 

 

 

Below is the detail of the error:

 

Microsoft.Flow.RPA.Desktop.Robin.SDK.ActionException: Failed to perform the requested operation on the drop down list (error while accessing the drop down list) ---> System.Exception: Select list does not contain option index: 1.
at Microsoft.Flow.RPA.Desktop.UIAutomation.Plugin.UI.UIControlElements.UIComboBoxElement.Select(Int32 index)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.AutomationRuntimes.UIAutomationRuntimeBase.SetDropDownListValueInWindow(IntPtr windowHandle, String selector, WindowDropDownListOperationEnum operation, ListVariantBase optionsToSelect)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.UIAutomationActionsDispatcher.SetDropDownListValueInWindow(Variant windowSelector, Variant dropDownListSelector, Variant optionsNames, Variant optionsIndeces, Guid windowId, Int32 dropDownListOperation, Int32 automationImpl)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.SetDropDownListValueInWindow.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.SetDropDownListValueInWindow.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

 

 

6 REPLIES 6
Highboy
Skilled Sharer
Skilled Sharer

Could you please provide a link to the webpage (Unless it's a company webpage) or a part of the web source text, where the input "windows is present.
Would also be nice if you could show the UI element of the dropdown list.

Henrik_M
Super User
Super User

Which type of element are you using with the action? Should ideally be a Combo Box or similar.

VJR
Memorable Member
Memorable Member

Hi @lp4 

 

From your screenshot it looks like you are looking to access an UserForm in Excel.

 

If so, are you able to you enter the value as below if index is not working?

 

 

VJR_0-1638350097944.png

 

 

 

lp4
New Member

Yes, I am able to select name. However, the it does not remove the existing selection and just adds on to it. I tried using same action Set drop-down list value to clear but it still does not work. 

Is there a reason why it is not reading the indexes properly? as the error says list does not contain the option index: 1, which should not be the case as there is a few options from the dropdown.

The element is a Combo Box.

lp4_0-1639107385898.png

 

VJR
Memorable Member
Memorable Member

Hi @lp4 

 

I see what you are saying when you mention "just adds to it".

 

First clear the text with an empty string and then select the dropdown.

This is working fine.

 

VJR_0-1639108046175.png

 

 

Use %""% in the below box which stands for an empty string

 

VJR_1-1639108163992.png

 

 

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Kudoed Authors
Users online (1,366)