# Dynamic Selector Error

**URL:** <https://forum.uipath.com/t/dynamic-selector-error/150767>\
**Category:** Help\
**Tags:** excel, uiautomation, activities\
**Created:** [September 14, 2019, 4:24pm UTC](https://forum.uipath.com/t/dynamic-selector-error/150767 "2019-09-14T16:24:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hss](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hss/32/72699_2.png) [@hss](https://forum.uipath.com/u/hss)\
**Post date:** [September 14, 2019, 4:24pm UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/1 "2019-09-14T16:24:46Z")

</div>

Hi,

Am taking a filename from an excel file and i put it in the dynamic selector space. But i get an **error** saying

 ![Capture3](https://global.discourse-cdn.com/uipath/original/3X/9/c/9cc2c1b256370cccf702e34e02922ea72079b6ba.jpeg)

In click Activity, target \> Selector i have used the dynamic selector as:

 ![Capture4](https://global.discourse-cdn.com/uipath/original/3X/6/0/609b14a07513fd6959d5bb5a4885b141271ad9f1.jpeg)

Note: row(1).ToString is an excel filename string as \*\_abc.xlsx

How to resolve this error

---

<div class="post-metadata">

**Author:** ![Rammohan91](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rammohan91/32/37135_2.png) [@Rammohan91](https://forum.uipath.com/u/Rammohan91)\
**Post date:** [September 14, 2019, 4:55pm UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/2 "2019-09-14T16:55:54Z")

</div>

Did you try validating this exact selector in UiExplorer? I won’t recommend using idx. This property changes dynamically most of the time. Did you check if it the same all the time?

Thanks,  
Rammohan B.

---

<div class="post-metadata">

**Author:** ![hss](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hss/32/72699_2.png) [@hss](https://forum.uipath.com/u/hss)\
**Post date:** [September 14, 2019, 5:40pm UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/3 "2019-09-14T17:40:29Z")

</div>

Hi @Rammohan91  
Am getting this error

 ![Capture5](https://global.discourse-cdn.com/uipath/original/3X/6/3/63d00db9f728dcee1c63b027ffe03823f848a9f3.jpeg)

---

<div class="post-metadata">

**Author:** ![hss](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hss/32/72699_2.png) [@hss](https://forum.uipath.com/u/hss)\
**Post date:** [September 15, 2019, 3:37am UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/4 "2019-09-15T03:37:24Z")

</div>

@amaresan @divyagupt

---

<div class="post-metadata">

**Author:** ![divyagoyalin](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@divyagoyalin](https://forum.uipath.com/u/divyagoyalin)\
**Post date:** [September 15, 2019, 5:21am UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/5 "2019-09-15T05:21:59Z")

</div>

@hss  
Try after removing the inner double quotes in the inner text tag

---

<div class="post-metadata">

**Author:** ![hss](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hss/32/72699_2.png) [@hss](https://forum.uipath.com/u/hss)\
**Post date:** [September 15, 2019, 6:36am UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/6 "2019-09-15T06:36:00Z")

</div>

@divyagoyalin  
I changed my way of passing the fileName. Passed it as shown.

 ![Capture6](https://global.discourse-cdn.com/uipath/original/3X/1/4/14f4ccc4ea5007863bb1853efaf3201a8099566b.jpeg)  
 ![Capture7](https://global.discourse-cdn.com/uipath/original/3X/3/8/38af92a7a4152a6605450cfd390f476cc8547f2a.jpeg)

Solved.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [September 18, 2019, 6:36am UTC](https://forum.uipath.com/t/dynamic-selector-error/150767/7 "2019-09-18T06:36:01Z")

</div>

Closed on September 18, 2019, 6:36am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
