Compilation Error : PREPROCESSING: Loading xaml, Unexpected error has occurred during the library compilation process: Could not find file in UiPath
Scenario:
After renaming the default name CloseAllApplications to 4.1-CloseAllApplications and added new input arguments
Any suggestions?
postwick
(Paul Ostwick)
February 4, 2026, 6:03pm
2
I suggest renaming the file back to what it was.
@kalpana_venkutusamy
The error means the reference of the file on your library is missing somewhere.
Check all invoke workflow activities and reference.
Anil_G
(Anil Gorthi)
February 5, 2026, 6:01am
4
@kalpana_venkutusamy
you would need to import in every invoke workflow after change..if there are testing modules which are default you would have missed there as well
cheers
Hi @kalpana_venkutusamy
The error is caused by the XAML rename.
Library workflows can’t reliably compile when the file name starts with a number or contains dots. Rename it to something like CloseAllApplications_4_1, save, and rebuild.
The best way is to rename the workflow back to CloseAllApplications.
Else you may have to check wherever this .xaml is being called and map the arguments.
system
(system)
Closed
February 9, 2026, 10:18pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.