MuleSoft · SFTP Connector

SFTP:FILE_ALREADY_EXISTS

Short answer

SFTP: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.

VerifiedLast verified

01Error text

MuleSoft error
Error type: SFTP:FILE_ALREADY_EXISTS

02Likely causes

  • An attempt was made to create a file at the same location and with the same name as an existing file.
  • For example, the Write operation uses the CREATE_NEW mode and the path is that of an existing file.

03How to fix it

  1. Decide whether the existing file should be replaced, appended to or kept.
  2. Set the Write operation's mode to match, or write to a different file name.
  3. Handle the failure with an error handler of type SFTP:FILE_ALREADY_EXISTS.

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.