Missing Assembly reference for DataTables as IEnumerables

The following error occurs when attempting convert a datatable to enumerable on

Studio 2024.10.1 - 6/27/2024
Community License
User-mode Installation
License Provider: Orchestrator (Cloud)
Microsoft Windows 11 Pro 64-bit
8.0.0

Argument ‘Value’: CS0012: The type ‘IXmlSerializable’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Xml.ReaderWriter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.

The attached project includes a single assign activity that demonstrates the error.

Manually adding the assembly reference line to the xaml resolves the issue.

Main.xaml (7.4 KB)
project.json (1.6 KB)

1 Like

Hi there

I’ve been experiencing this issue for the past few weeks.

Thank you for your solution of manually adding the reference to the xaml - this saved me a lot of rework.

Thanks!

Hi, i am facing the same problem and i don´t know wich line did you add in the main xaml file

Open the xaml file with this error in a text editor.
Add <AssemblyReference>System.Xml.ReaderWriter</AssemblyReference> (without the quotes) within the <sco:Collection x:TypeArguments=“AssemblyReference”> element.

5 Likes

I’ve had this problem too. Is this a common problem or something UiPath is working on?

This fixed it for me, thanks! But just by looking at other entries under that element I think these ” ’ characters are not needed.
<AssemblyReference>System.Xml.ReaderWriter</AssemblyReference>

1 Like

I’ve edited the post a bit and marked it as a solution. @Steven_Raines1 must have added the extra characters to get around the forum automatically sanitizing the HTML tags and making them invisible unless you use a code block. :sweat_smile:

2 Likes

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