MuleSoft · SFTP Connector
SFTP Write in APPEND mode overwrites the file or fails
Short answer
When SFTP Write in APPEND mode overwrites the file or fails with a generic error, the server is a legacy one that lacks the SSH_FXF_APPEND flag. Set Write Strategy to CUSTOM and Write Mode to CUSTOM_APPEND.
VerifiedLast verified
01Error text
Write operation with APPEND mode overwrites the file or fails with a generic error02Likely causes
- The SFTP server is a legacy server that does not support the
SSH_FXF_APPENDflag.
03How to fix it
- On the Write operation, set Write Strategy to
CUSTOM. - Set Write Mode to
CUSTOM_APPEND. - Tune Buffer Size for Write Strategy if needed.
- Do not write to the same file concurrently.
CUSTOM_APPENDdoes not support concurrent writes to the same file.
04Official documentation
→Related errors
- SFTP:FILE_ALREADY_EXISTSSFTP:FILE_ALREADY_EXISTS means the operation tried to create a file where a file with the same name already exists. It happens, for example, when Write uses the CREATE_NEW mode on an existing file's path, so change the write mode or the target name.
- 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