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.

3 Likes

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