MuleSoft · File Connector

FILE:FILE_LOCK

Short answer

FILE:FILE_LOCK means File Connector tried to lock a file and could not. Another process or flow is holding the file, so release that lock or read without locking.

VerifiedLast verified

01Error text

MuleSoft error
Error type: FILE:FILE_LOCK

02Likely causes

  • An attempt to lock a file was unsuccessful.
  • The Read operation has Lock set to true, and the file is already locked. A lock is held until the returned stream is closed or fully consumed.

03How to fix it

  1. Find what else has the file open, including other flows that read it with a lock.
  2. Make sure flows that lock the file consume or close the stream, so the lock is released.
  3. If locking is not needed, leave Lock at its default of false on the Read operation.
  4. Handle the failure with an error handler of type FILE:FILE_LOCK and retry later.

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.