AsEnumerable Support
AsEnumerable is a DataTable extension method that UiPath includes automatically, making it invisible to developers. In Power Automate Desktop, the underlying assembly must be explicitly referenced β otherwise migrated flows that use this extension will fail.
The required assembly is System.Data.DataSetExtensions.dll, which is part of the standard .NET framework.
Recommended Setup: Install the .NET Developer Pack
The simplest and most complete solution is to install the .NET developer pack directly from Microsoft. This resolves the AsEnumerable issue and any other missing assembly references that may surface 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.Data.DataSetExtensions
Alternative: Custom Modules Folder
If installing the developer pack isn't possible, you can manually locate and reference the assembly.
Create a custom-modules folder β Blueprint recommends placing it in the PAD installation folder.
Search your filesystem for System.Data.DataSetExtensions.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.Data.DataSetExtensions
The developer pack approach is strongly recommended β it's more robust and covers additional missing references you may encounter as you migrate more processes.