MuleSoft · SFTP Connector
SFTP:ILLEGAL_PATH
Short answer
SFTP: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.
VerifiedLast verified
01Error text
Error type: SFTP: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 SFTP 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.sftp" level="DEBUG"/>. For SSH detail add<AsyncLogger name="org.apache.sshd" level="TRACE"/>, which produces a high log volume, so remove it afterward. - Handle the failure with an error handler of type
SFTP:ILLEGAL_PATH.
04Official documentation
→Related errors
- SFTP:ACCESS_DENIEDSFTP:ACCESS_DENIED means the operation tried to do something on an SFTP path that the connected user has no permission for. Grant that user the permission on the server, or connect as a user that has it.
- 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.
- SFTP:CONNECTIVITYSFTP:CONNECTIVITY means the connection to the SFTP server was interrupted. Check the network path and the server, and compare the server's log with the Mule app's log for the same moment.
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