MuleSoft · File Connector

FILE:ILLEGAL_PATH

Short answer

FILE:ILLEGAL_PATH means a File Connector operation was given a path that does not exist while Create parent directories is set to false. Correct the path, or let the operation create the missing directories.

VerifiedLast verified

01Error text

MuleSoft error
Error type: FILE:ILLEGAL_PATH

02Likely causes

  • The createParentDirectories property is set to false and neither the target path nor its parent exists.
  • The path is built from a property or expression that resolves to a different location than you expect in this environment.

03How to fix it

  1. Log the path the operation resolves to, and check that it exists on the machine or worker the app runs on.
  2. For Write, Copy and Move, set Create parent directories to true so missing directories are created.
  3. Handle the failure with an error handler of type FILE:ILLEGAL_PATH when the path comes from input you do not control.

iNotes

Related File Connector types: FILE:FILE_ALREADY_EXISTS (the target file exists and overwrite is false) and FILE:ACCESS_DENIED (the user lacks permission for the action).

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.