MuleSoft · File Connector

java.lang.OutOfMemoryError when listing files

Short answer

A java.lang.OutOfMemoryError from the File Connector List operation with large files is caused by the default streaming strategy, Repeatable file store iterable. Change the operation's Streaming strategy to No repeatable iterable.

VerifiedLast verified

01Error text

MuleSoft error
java.lang.OutOfMemoryError

02Likely causes

  • The List operation handles large files while its Streaming strategy is "Repeatable file store iterable (Default)".

03How to fix it

  1. Open the List operation's streaming settings.
  2. Change the Streaming strategy field to "No repeatable iterable".
  3. Make sure the flow reads the listed content only once, since the result can no longer be read again.
  4. Redeploy and run the flow with the same files.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.