The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)

How to fix "The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)" UiPath Robot error?

Issue: In the process of executing Attended or Unattended jobs, users may encounter an error.

Error Message:
Typically, this error appears at the Orchestrator level and carries a message similar to:

Could not load file or assembly 'Microsoft.VisualBasic.Activities.Compiler.dll' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)


In the Event Viewer under the subhead "Windows Application," this error displays as:

Event Viewer1.jpg


Root Cause:
This error is triggered by insufficient virtual memory, which is also known as the paging file, needed to complete the operation. Virtual memory is used by Windows to extend the available memory by using disk space.
If the paging file is too small, the system cannot allocate enough virtual memory, leading to this error.

Resolution: To rectify this error message, augment the size of the paging file. Below is how to perform that on Windows Server 2019 - Datacenter:

  1. Access the Control Panel and choose System and Security > System
  2. On the left panel, select "Advanced system settings," leading you to the System Properties window
  1. In the panel, navigate to the Advanced tab and click on the Settings button under the "Performance" section, thereby opening the Performance Options
  1. From Performance Options, select the Advanced tab, and then click the Change button in the "Virtual Memory" section
  1. Uncheck the Automatically manage paging file size for all drives box
  2. Choose Custom size, and then input the "Initial size" and "Maximum size" values for the paging file (the unwritten rule is to set the initial size to 1.5 times the amount of RAM in the system)
PagingStep4.jpg
  1. Press OK to apply the settings, and then restart the system.

Additional Recommendations:
  • Ensure adequate free disk space on robot machines, particularly on the drive that houses the paging file
  • Refrain from overly escalating the paging file size because it might adversely affect system performance
  • Regularly monitor your system's virtual memory to ascertain optimal performance and amend settings as required.