XmlDocument Support
UiPath selectors that are fully generated at runtime β as a variable or expression β are encoded internally as XML documents. When Blueprint migrates these, PAD needs the System.Xml namespace to parse and convert them to PAD selectors at runtime.
PAD only references a limited set of assemblies by default, so System.Xml.dll must be manually referenced. This assembly is part of the standard .NET framework.
Recommended Setup: Install the .NET Developer Pack
Installing the .NET developer pack is the most complete solution β it resolves this issue and covers any other missing assembly references you may encounter in migrated flows.
Download the .NET 4.7.2 Developer Pack from Microsoft.
Run the installer β assemblies are installed to C:\Program Files (x86)\Reference Assemblies.
In that folder, delete or move the System.EnterpriseServices files β PAD cannot load these and they will cause errors.
In Init_Variables, set %defaultRunDotNetScriptReferences% to: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2
In Init_Variables, set %defaultRunDotNetScriptImports% to: System.Xml
Alternative: Custom Modules Folder
If installing the developer pack isn't possible:
Create a custom-modules folder β Blueprint recommends placing it in the PAD installation folder.
Search your filesystem for System.Xml.dll.
Copy the file into your custom-modules folder.
In Init_Variables, set %defaultRunDotNetScriptReferences% to the path of your custom-modules folder.
In Init_Variables, set %defaultRunDotNetScriptImports% to: System.Xml
The developer pack approach is strongly recommended β it's more robust and covers additional missing references you may encounter as you migrate more processes.