# Row not Declared

**URL:** <https://forum.uipath.com/t/row-not-declared/318642>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, system, uiautomation, activities\
**Created:** [May 28, 2021, 7:42am UTC](https://forum.uipath.com/t/row-not-declared/318642 "2021-05-28T07:42:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 7:42am UTC](https://forum.uipath.com/t/row-not-declared/318642/1 "2021-05-28T07:42:50Z")

</div>

Getting an error of row not declared, even after using for each row and making the variable valid for the entire sequence : row.item(0).ToString+ “[k(enter)]” , I am writing this in a type into activity.

---

<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:** [May 28, 2021, 7:48am UTC](https://forum.uipath.com/t/row-not-declared/318642/2 "2021-05-28T07:48:01Z")

</div>

can you post your sequence here?

---

<div class="post-metadata">

**Author:** ![Krishna\_547](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/krishna_547/32/523995_2.png) [@Krishna\_547](https://forum.uipath.com/u/Krishna_547)\
**Post date:** [May 28, 2021, 7:51am UTC](https://forum.uipath.com/t/row-not-declared/318642/3 "2021-05-28T07:51:40Z")

</div>

Hi ,

Row need not to be declared , as you drag and drop “for each row” activity “row” will be declared by activity itself.  
Try deleting the already declared row variable , for each row activity and do actions again ,this time don’t manually declare row.

---

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 7:52am UTC](https://forum.uipath.com/t/row-not-declared/318642/4 "2021-05-28T07:52:31Z")

</div>

[project.json](https://forum.uipath.com/uploads/short-url/pJhuHnsLn4IZYfX2viXqXXlMfN5.json) (1.3 KB)

---

<div class="post-metadata">

**Author:** ![Krishna\_547](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/krishna_547/32/523995_2.png) [@Krishna\_547](https://forum.uipath.com/u/Krishna_547)\
**Post date:** [May 28, 2021, 7:53am UTC](https://forum.uipath.com/t/row-not-declared/318642/5 "2021-05-28T07:53:02Z")

</div>

.xaml file please

---

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 7:54am UTC](https://forum.uipath.com/t/row-not-declared/318642/6 "2021-05-28T07:54:17Z")

</div>

> [@Krishna\_547](#):
>
> Row need not to be declared , as you drag and drop “for each row” activity “row” will be declared by activity itself.  
> Try deleting the already declared row variable , for each row activity and do actions again ,this time don’t manually declare row.

Hey Krishna,  
I have not declared any row, This might be a setting error  
[project.json](https://forum.uipath.com/uploads/short-url/pJhuHnsLn4IZYfX2viXqXXlMfN5.json) (1.3 KB)  
can you check this?

---

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 7:54am UTC](https://forum.uipath.com/t/row-not-declared/318642/7 "2021-05-28T07:54:57Z")

</div>

[Main.xaml](https://forum.uipath.com/uploads/short-url/7EbCtVbpWI3py7uFMqfvEAhWz6V.xaml) (10.4 KB)

---

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 7:57am UTC](https://forum.uipath.com/t/row-not-declared/318642/8 "2021-05-28T07:57:09Z")

</div>

I have sent it on the previous thread

---

<div class="post-metadata">

**Author:** ![Krishna\_547](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/krishna_547/32/523995_2.png) [@Krishna\_547](https://forum.uipath.com/u/Krishna_547)\
**Post date:** [May 28, 2021, 7:58am UTC](https://forum.uipath.com/t/row-not-declared/318642/9 "2021-05-28T07:58:07Z")

</div>

Hi ,

Checked that , it is actually “CurrentRow” not “row” … Change row to CurrentRow and it will work

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

---

<div class="post-metadata">

**Author:** ![ishaan.aggarwal](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishaan.aggarwal/32/178511_2.png) [@ishaan.aggarwal](https://forum.uipath.com/u/ishaan.aggarwal)\
**Post date:** [May 28, 2021, 8:19am UTC](https://forum.uipath.com/t/row-not-declared/318642/10 "2021-05-28T08:19:44Z")

</div>

> [@Krishna\_547](#):
>
> ked that , it is actually “CurrentRow” not “row” … Change row to CurrentRow and it will wo

Can you help me with another thing?

---

<div class="post-metadata">

**Author:** ![Krishna\_547](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/krishna_547/32/523995_2.png) [@Krishna\_547](https://forum.uipath.com/u/Krishna_547)\
**Post date:** [May 28, 2021, 8:35am UTC](https://forum.uipath.com/t/row-not-declared/318642/11 "2021-05-28T08:35:20Z")

</div>

Hi ,

I am not sure what you are trying to do there but i’ve adjusted the xaml , please check  
[Main.xaml](https://forum.uipath.com/uploads/short-url/ihIYUBJ5CxFKrTRcLs9E9P7cIfX.xaml) (11.0 KB)

---

<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:** [May 31, 2021, 8:35am UTC](https://forum.uipath.com/t/row-not-declared/318642/12 "2021-05-31T08:35:38Z")

</div>

Closed on May 31, 2021, 8:35am UTC

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