MuleSoft · FTP Connector
FTP:ILLEGAL_PATH
Short answer
FTP:ILLEGAL_PATH means the path given to the FTP operation is invalid, for example because it does not exist. Correct the path or create the directory on the server.
VerifiedLast verified
01Error text
Error type: FTP:ILLEGAL_PATH02Likely causes
- The specified path is invalid because, for example, it does not exist.
03How to fix it
- Check the path the operation receives at run time, including any expression that builds it.
- Reproduce the problem with an FTP client such as Cyberduck or FileZilla, using the same host, port and user. Confirm the path exists for that user.
- Turn on verbose logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extension.ftp" level="TRACE"/>and<AsyncLogger name="org.apache.commons.net" level="DEBUG"/>. Remove them afterward. - Handle the failure with an error handler of type
FTP:ILLEGAL_PATH.
04Official documentation
→Related errors
- FTP:ACCESS_DENIEDFTP:ACCESS_DENIED means the operation tried to do something on an FTP path that the connected user has no permission for. Grant the permission on the server or connect as a user that has it.
- SFTP:ILLEGAL_PATHSFTP:ILLEGAL_PATH means the path given to the SFTP operation is invalid, for example because it does not exist. Correct the path, or create the directory on the server first.
- FILE:ILLEGAL_PATHFILE: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.
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