When you try to import and merge many Excel files, it fails with the "vector memory exhausted" error

Problem

When you try to import and merge many Excel files, it fails with the “vector memory exhausted” error.

image

Solution

If you are using Windows, you can Increase Virtual memory to workaround this issue.

  1. Open the “Control Panel” and click on “System and Security.”
  2. Click on “System” and then click on “Advanced system settings.”
  3. Click on the “Advanced” tab, and then click on the “Settings” button under the “Performance” section.
  4. In the “Performance Options” window, click on the “Advanced” tab.
  5. Under the “Virtual memory” section, click on “Change.”
  6. Uncheck the “Automatically manage paging file size for all drives” box.
  7. Select the drive you want to increase the virtual memory for, and then select “Custom size.”
  8. Enter the larger initial size and maximum size of the virtual memory in megabytes (MB).
  9. Click on the “Set” button, and then click on “OK” to save the changes.
  10. Restart your computer for the changes to take effect.

Note: It is recommended to set the initial and maximum size to the same value to prevent Windows from constantly resizing the virtual memory.

1 Like