# Complier error System.Data.DataTable

**URL:** <https://forum.uipath.com/t/complier-error-system-data-datatable/123087>\
**Category:** Help\
**Tags:** studio, excel, activities\
**Created:** [June 6, 2019, 12:49pm UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087 "2019-06-06T12:49:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thomas1/32/176827_2.png) [@Thomas1](https://forum.uipath.com/u/Thomas1)\
**Post date:** [June 6, 2019, 12:49pm UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/1 "2019-06-06T12:49:02Z")

</div>

Hello

I downloaded a File from this Forum, to copy a column in Excel into clipboard. It works when I use the exact File what I downloaded (and changed the excel path). I copied it to my own flowchart and their i get the following error message:

On the left you see the download-version and on the right me new version, for me seems the same

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

Can somebody tell me, what’s wrong on my file?

Thanks  
Thomas

---

<div class="post-metadata">

**Author:** ![DanielMitchell](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@DanielMitchell](https://forum.uipath.com/u/DanielMitchell)\
**Post date:** [June 6, 2019, 12:51pm UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/2 "2019-06-06T12:51:49Z")

</div>

I’ve found that sometimes Studio throws errors when actually there is no problem at all. Have you tried deleting the text that is causing the faulty error and retyping it? Generally this has worked for me.

---

<div class="post-metadata">

**Author:** ![Thomas1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thomas1/32/176827_2.png) [@Thomas1](https://forum.uipath.com/u/Thomas1)\
**Post date:** [June 6, 2019, 1:16pm UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/3 "2019-06-06T13:16:28Z")

</div>

Yes, I already tried several times, but I still don’t work

---

<div class="post-metadata">

**Author:** ![amaresan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amaresan/32/257668_2.png) [@amaresan](https://forum.uipath.com/u/amaresan)\
**Post date:** [June 7, 2019, 11:14am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/4 "2019-06-07T11:14:58Z")

</div>

@Thomas1

u have to import the namspace.in that xaml for that two way is there.

one is click the **imports button** next to the arguments

otherwise Open the xaml in notepad add assembly reference manully

---

<div class="post-metadata">

**Author:** ![Thomas1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thomas1/32/176827_2.png) [@Thomas1](https://forum.uipath.com/u/Thomas1)\
**Post date:** [June 10, 2019, 5:30am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/5 "2019-06-10T05:30:41Z")

</div>

Thanks for your help. but how can I found out which one i need?

---

<div class="post-metadata">

**Author:** ![amaresan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amaresan/32/257668_2.png) [@amaresan](https://forum.uipath.com/u/amaresan)\
**Post date:** [June 10, 2019, 6:53am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/6 "2019-06-10T06:53:32Z")

</div>

Hi @Thomas1

1.Open the xaml in Notepad  
2. Add this " \<x:String\>System.Data\</x:String\> " Under the Namespace section  
3. Add this  
‘\<‘AssemblyReference\> System.Data’\<’/AssemblyReference\>

Under the Assembly reference collection (remove single quote)  
4. save it and open with uipath studio just it cheers

---

<div class="post-metadata">

**Author:** ![Thomas1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thomas1/32/176827_2.png) [@Thomas1](https://forum.uipath.com/u/Thomas1)\
**Post date:** [June 11, 2019, 3:16pm UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/7 "2019-06-11T15:16:06Z")

</div>

Hi @amaresan  
Thanks for your help. I could find the following “assemble” how is responsable for my error:

```
  <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>

```

What I don’t understand, I have the Import “System.Data” in UiPath, but I have to copy the assembly manually in editor. Do you know how I can to this fix once?

Thomas

---

<div class="post-metadata">

**Author:** ![amaresan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amaresan/32/257668_2.png) [@amaresan](https://forum.uipath.com/u/amaresan)\
**Post date:** [June 12, 2019, 7:05am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/8 "2019-06-12T07:05:52Z")

</div>

Hi @Thomas1

just follow below step

1. open your xaml with notepad  
2.Add this " \<x:String\>System.Data\</x:String\> " Under the Namespace section
2. Add this  
‘\<‘AssemblyReference\> System.Data’\<’/AssemblyReference\>

Under the Assembly reference collection (remove single quote)  
4. save it and open with uipath studio

otherwise share your xaml i will fix it

---

<div class="post-metadata">

**Author:** ![Thomas1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/thomas1/32/176827_2.png) [@Thomas1](https://forum.uipath.com/u/Thomas1)\
**Post date:** [June 20, 2019, 4:52am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/9 "2019-06-20T04:52:03Z")

</div>

Hi @amaresan  
Sorry for my late answer.  
I could fix it - thanks very much for your help.  
Cheers  
Thomas

---

<div class="post-metadata">

**Author:** ![amaresan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amaresan/32/257668_2.png) [@amaresan](https://forum.uipath.com/u/amaresan)\
**Post date:** [June 20, 2019, 6:58am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/10 "2019-06-20T06:58:33Z")

</div>

@Thomas1

it slove your problem mark as solution it help other.

---

<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:** [June 23, 2019, 6:58am UTC](https://forum.uipath.com/t/complier-error-system-data-datatable/123087/11 "2019-06-23T06:58:35Z")

</div>

Closed on June 23, 2019, 6:58am UTC

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