Complier error System.Data.DataTable

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

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

Thanks
Thomas

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.

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

@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

1 Like

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

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

1 Like

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

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

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

@Thomas1

it slove your problem mark as solution it help other.

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