# Type Into Error When Input data in web

**URL:** <https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, system, uiautomation, activities\
**Created:** [2021 年 7 月 2 日午後 1:38 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949 "2021-07-02T13:38:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![SH\_94](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SH\_94](https://forum.uipath.com/u/SH_94)\
**Post date:** [2021 年 7 月 2 日午後 1:38 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/1 "2021-07-02T13:38:58Z")

</div>

Dear all,

I would like to ask how to fix the error below:  
Compiler error(s) encountered processing expression"row(0).Tostring" . ‘row’ is not declared. It may be inaccessible due to its protection level.

Is there any encountered this before?

---

<div class="post-metadata">

**Author:** ![william.coulson](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/william.coulson/32/206864_2.png) [@william.coulson](https://forum.uipath.com/u/william.coulson)\
**Post date:** [2021 年 7 月 2 日午後 1:40 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/2 "2021-07-02T13:40:21Z")

</div>

Hi @SH_94,

This normally occurs when you refer to a variable that doesn’t exist. Please check that `row` is declared. I imagine that this is within a For Each Row or For Each?

---

<div class="post-metadata">

**Author:** ![SH\_94](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SH\_94](https://forum.uipath.com/u/SH_94)\
**Post date:** [2021 年 7 月 2 日午後 1:52 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/3 "2021-07-02T13:52:24Z")

</div>

Hi @william.coulson ,

Thanks a lot for the prompt response. May i know how to check whether the row is declared?

Yes. You are right and it is under for each row.

Many thanks in advance.

---

<div class="post-metadata">

**Author:** ![artshoque](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/artshoque/32/232549_2.png) [@artshoque](https://forum.uipath.com/u/artshoque)\
**Post date:** [2021 年 7 月 2 日午後 1:58 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/4 "2021-07-02T13:58:07Z")

</div>

Hello,

row variable will be visible only in Body sequence of the for each row activity.  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/e/0/e0d27b45ade696b33185a966b605518fe057aaf0.png)

Please, check that the row variable is used in the Body sequence scope.

---

<div class="post-metadata">

**Author:** ![william.coulson](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/william.coulson/32/206864_2.png) [@william.coulson](https://forum.uipath.com/u/william.coulson)\
**Post date:** [2021 年 7 月 2 日午後 3:05 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/5 "2021-07-02T15:05:06Z")

</div>

Hi @SH_94,

As per @artshoque’s screenshot, look at what you have specified in your For Each Row. You would use this as the variable. Alternatively, you can use:

`DataTableVar.Rows(RowCounter).Item(ItemCounter).ToString`

(1,1 would be B2)

---

<div class="post-metadata">

**Author:** ![prasath\_S](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/prasath_s/32/290219_2.png) [@prasath\_S](https://forum.uipath.com/u/prasath_S)\
**Post date:** [2021 年 7 月 2 日午後 3:07 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/6 "2021-07-02T15:07:19Z")

</div>

@SH_94 If you are latest versions of UiPath it is **CurrentRow(0).tostring**, instead if **row(0).tostring**, as they change the variable name from **row** to **CurrentRow**.

You can change the name though if you want.

![image](https://global.discourse-cdn.com/uipath/original/3X/a/d/ad97241371d3974eb60ce04c7c24a5b23519174c.png)

Thanks

---

<div class="post-metadata">

**Author:** ![SH\_94](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SH\_94](https://forum.uipath.com/u/SH_94)\
**Post date:** [2021 年 7 月 2 日午後 5:27 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/7 "2021-07-02T17:27:48Z")

</div>

Hi @prasath_S

Thanks a lot for the prompt response. Below is the screenshot of my workflow:

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

May i know how can i fix the error in this case? Basically what i trying to do at this step is asking Uipath to read the excel data and copy it into the web application.

Many thanks.

---

<div class="post-metadata">

**Author:** ![prasath\_S](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/prasath_s/32/290219_2.png) [@prasath\_S](https://forum.uipath.com/u/prasath_S)\
**Post date:** [2021 年 7 月 2 日午後 5:33 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/8 "2021-07-02T17:33:27Z")

</div>

Change row(0).tostring to CurrentRow(0).tostring

Thanks

---

<div class="post-metadata">

**Author:** ![SH\_94](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SH\_94](https://forum.uipath.com/u/SH_94)\
**Post date:** [2021 年 7 月 2 日午後 5:46 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/9 "2021-07-02T17:46:36Z")

</div>

Hi @prasath_S

Amazing it work perfectly.

Thanks a lot for the help

---

<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:** [2021 年 7 月 5 日午後 5:46 UTC](https://forum.uipath.com/t/type-into-error-when-input-data-in-web/326949/10 "2021-07-05T17:46:44Z")

</div>

クローズされました: 2021 年 7 月 5 日午後 5:46 UTC

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