web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

PAD Drop down list

(0) ShareShare
ReportReport
Posted on by

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)

 

 

I have the same question (0)
  • Highboy Profile Picture
    1,183 Super User 2024 Season 1 on at

    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 Profile Picture
    2,021 Super User 2024 Season 1 on at

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

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    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

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    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.

  • Community Power Platform Member Profile Picture
    on at

    The element is a Combo Box.

    lp4_0-1639107385898.png

     

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    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

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard