When exporting attachments from the Data Loader tool, the user sees an error: Java Heap Space.
The Data Loader runs on Java and the issue occurs when the Java Virtual Machine (JVM) runs out of allocated memory.
Lower the batch size in the Data Loader Settings to as low as possible, preferably 1.
The workaround is using Workbench to export the attachments.
Send us your feedback: We are always looking for feedback to help improve our Knowledge Base! Please let us know if this article is helpful or provide feedback on how we can improve your experience by clicking here.