# Error with "Select Item Activity"

**URL:** <https://forum.uipath.com/t/error-with-select-item-activity/495776>\
**Category:** Activities\
**Tags:** question, excel, uiautomation, activities\
**Created:** [December 2, 2022, 12:56pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776 "2022-12-02T12:56:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaishnav\_Tej](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnav_tej/32/268468_2.png) [@Vaishnav\_Tej](https://forum.uipath.com/u/Vaishnav_Tej)\
**Post date:** [December 2, 2022, 12:56pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/1 "2022-12-02T12:56:25Z")

</div>

Hi All,

I’m trying to select an item in Desktop Application from drop-down based on the Excel DataTable Data .

![image](https://global.discourse-cdn.com/uipath/original/4X/e/0/3/e031ea778a8ca7ffdc1e17fb1b23c54fc6883890.png)

I’m passing in\_argument from main workflow to subworkflow. For testing purpose I have added message box activity and it’s retrieving proper data. But it is unable to select that retrieved data from the dropdown.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/c/6/e/c6e0b866d40c46e872ec89ad7b6a076d903b643c.jpeg)

Please help me with this.  
Thanks in Advance:-)

---

<div class="post-metadata">

**Author:** ![postwick](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/postwick/32/227083_2.png) [@postwick](https://forum.uipath.com/u/postwick)\
**Post date:** [December 2, 2022, 1:25pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/2 "2022-12-02T13:25:45Z")

</div>

Some dropdowns don’t load their options until they are clicked. Try doing a Click on that element before the Select Item.

Also, show us the properties of your Select Item.

---

<div class="post-metadata">

**Author:** ![jack.chan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jack.chan/32/176616_2.png) [@jack.chan](https://forum.uipath.com/u/jack.chan)\
**Post date:** [December 2, 2022, 1:26pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/3 "2022-12-02T13:26:01Z")

</div>

can you use a click activity to click the dropdown first before using select item activity

if that doesnt work, just use 2 click activities  
one to click open the dropdown  
one to select the correct option

---

<div class="post-metadata">

**Author:** ![Vaishnav\_Tej](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnav_tej/32/268468_2.png) [@Vaishnav\_Tej](https://forum.uipath.com/u/Vaishnav_Tej)\
**Post date:** [December 2, 2022, 1:34pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/4 "2022-12-02T13:34:04Z")

</div>

Yes I have used click activity first and then passed the variable which is invoked from the main workflow  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/d/f/edf3f16872bc357efec25a779d665d16ed036aac.png)

---

<div class="post-metadata">

**Author:** ![varunk](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/varunk/32/392790_2.png) [@varunk](https://forum.uipath.com/u/varunk)\
**Post date:** [December 2, 2022, 4:26pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/5 "2022-12-02T16:26:41Z")

</div>

@Vaishnav_Tej

If select item activity is not working then use click activity to click the dropdown icon & use type into activity provide the text as it is in select item data  
It will work

Thanks  
Varun

---

<div class="post-metadata">

**Author:** ![Vaishnav\_Tej](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnav_tej/32/268468_2.png) [@Vaishnav\_Tej](https://forum.uipath.com/u/Vaishnav_Tej)\
**Post date:** [December 2, 2022, 5:08pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/6 "2022-12-02T17:08:40Z")

</div>

Hi Varun,

There is no option to type. We can only select one item from drop down list  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/3/1/3314a5c732333f5dff7810dc4247dcd2b5c19a3b.png)

---

<div class="post-metadata">

**Author:** ![Vaishnav\_Tej](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnav_tej/32/268468_2.png) [@Vaishnav\_Tej](https://forum.uipath.com/u/Vaishnav_Tej)\
**Post date:** [December 2, 2022, 5:14pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/7 "2022-12-02T17:14:19Z")

</div>

I have tried but it is selecting only first value from drop down for all the names.

---

<div class="post-metadata">

**Author:** ![Vaishnav\_Tej](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vaishnav_tej/32/268468_2.png) [@Vaishnav\_Tej](https://forum.uipath.com/u/Vaishnav_Tej)\
**Post date:** [December 2, 2022, 5:16pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/8 "2022-12-02T17:16:31Z")

</div>

I have to select the values dynamically. So I have passed a variable.  
Variable contains values that retrieved from Excel Sheet.

---

<div class="post-metadata">

**Author:** ![varunk](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/varunk/32/392790_2.png) [@varunk](https://forum.uipath.com/u/varunk)\
**Post date:** [December 3, 2022, 12:50pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/9 "2022-12-03T12:50:40Z")

</div>

@Vaishnav_Tej

Then you can use for clicking dropdown button use click activity then take ‘Select Item’ activity is used to select elements in a drop-down menu (combo-box or list box)

that selects specific elements and then all elements, Try it will work

Thanks  
Varun

---

<div class="post-metadata">

**Author:** ![Rahul\_Unnikrishnan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahul_unnikrishnan/32/464046_2.png) [@Rahul\_Unnikrishnan](https://forum.uipath.com/u/Rahul_Unnikrishnan)\
**Post date:** [December 3, 2022, 1:45pm UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/10 "2022-12-03T13:45:50Z")

</div>

Hello @Vaishnav_Tej

When using the Select Item activity, is it asking to choose the value? If yes, it should support that element.

Else you will have to go with click activity to open the Select and then use an another click activity to choose the item (By passing the value as dynamic variable)

Thanks

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [December 4, 2022, 5:00am UTC](https://forum.uipath.com/t/error-with-select-item-activity/495776/11 "2022-12-04T05:00:26Z")

</div>

Hi @Vaishnav_Tej

After the click activity use a for loop and inside that use a try catch with click text and pass the required text there.

Then in the catch block use a scroll activity to acroll  
Untill thw click is not performed or the maximum loop count is reached

Cheers
