# Type Conflict (Data.table) x String

**URL:** <https://forum.uipath.com/t/type-conflict-data-table-x-string/177732>\
**Category:** Help\
**Tags:** variable, datatable, error, system, activities\
**Created:** [December 16, 2019, 11:46am UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732 "2019-12-16T11:46:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesse.oliveira](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jesse.oliveira/32/120155_2.png) [@jesse.oliveira](https://forum.uipath.com/u/jesse.oliveira)\
**Post date:** [December 16, 2019, 11:46am UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/1 "2019-12-16T11:46:31Z")

</div>

Good morning community, I’m a beginner and I’m doing my first project.

My task is to assign a new role to a series of user keys, these keys are removed from an excel file, until there are many problems, I was able to make the workflow work for 1 key, or the problem is running for a data set.  
My specific problem occurs in the following situation:

Within a For Each self assures that the “value” variable is a specific iteration key, but when trying to assign this variable to a variable, an error occurs that indicates that a string type cannot be assigned a data.table.

Thanks for any input.

Image 1:

 ![1](https://global.discourse-cdn.com/uipath/original/3X/e/c/ece9c2ff2f4f82f4a4734b07bf9b34fd9a67c28b.png)

image2:

 ![2](https://global.discourse-cdn.com/uipath/original/3X/4/a/4a3f9329592e7755e76478e83b0bb5eec75fa086.png)

---

<div class="post-metadata">

**Author:** ![AshwinS2](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashwins2/32/176686_2.png) [@AshwinS2](https://forum.uipath.com/u/AshwinS2)\
**Post date:** [December 16, 2019, 11:47am UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/2 "2019-12-16T11:47:31Z")

</div>

Hi @jesse.oliveira

You should pass row not valor

Thanks  
Ashwin S

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [December 16, 2019, 11:49am UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/3 "2019-12-16T11:49:06Z")

</div>

May i know what is the datatype of variable valor and where it is from  
Cheers @jesse.oliveira

---

<div class="post-metadata">

**Author:** ![jesse.oliveira](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jesse.oliveira/32/120155_2.png) [@jesse.oliveira](https://forum.uipath.com/u/jesse.oliveira)\
**Post date:** [December 16, 2019, 11:52am UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/4 "2019-12-16T11:52:58Z")

</div>

I bring the data from an excel table, I used the excel scope activity to perform this extraction.

Valor está como DataRow.

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

@AshwinS2 I tried to assign directly, but gave error, I will try again.

---

<div class="post-metadata">

**Author:** ![bcorrea](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/bcorrea/32/103778_2.png) [@bcorrea](https://forum.uipath.com/u/bcorrea)\
**Post date:** [December 16, 2019, 8:45pm UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/5 "2019-12-16T20:45:55Z")

</div>

I would strongly advise you too not start a real project without going through training first, you will end up losing a lot of your time trying to learn thing by yourself, if you are interested in free training for UiPath please go:  
[UiPath RPA Academy](https://academy.uipath.com/lms/index.php?r=curricula/show)

---

<div class="post-metadata">

**Author:** ![jesse.oliveira](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jesse.oliveira/32/120155_2.png) [@jesse.oliveira](https://forum.uipath.com/u/jesse.oliveira)\
**Post date:** [December 16, 2019, 9:00pm UTC](https://forum.uipath.com/t/type-conflict-data-table-x-string/177732/6 "2019-12-16T21:00:33Z")

</div>

@bcorrea,

I appreciate the nomination, but I already did the training offered on the platform, although it was about 2 months ago and since then I have not worked on anything related to UiPath.  
I attended some classes again, however I still do not understand why this conflict, seems to me a small detail that I still can not identify.
