FTP Receive Integration Postprocessing Behavior

By default, files that are processed by the FTP Receive integration are moved to a backup directory. The backup directory name is assumed to be original-input-directory_backup and is created automatically provided the correct permissions are granted to create it.

You can customize this behavior as follows. To locate these properties, use the Update property values menu option as described below.
Permission Description Values
Delete-Or-Keep-Processed-Files Controls whether processed files are retained or deleted.
  • deleteAlways: Deletes a processed file regardless of whether processing succeeded or failed.
  • keepOnError: Deletes a processed file only on success. If the processed file failed, the file is retained and moved to a different directory.
  • keepAlways: (default) Retains a processed file, regardless of whether processing succeeded or failed by moving it to a different directory.
Error-File-Extension

If a processing error occurs, rename the file by appending the Error-File-Extension value (for example, _error), depending on the Delete-Or-Keep-Processed-Files setting.

For example, if an input file name was 850_po.edi, then the default value after processing the file is renamed to 850_po.edi_error.

  • _error (default).
  • You can set the value for Error-File-Extension to any string. However, the combination of original-input-filenameError-File-Extension must result in a valid directory path on the FTP server.
Move-To-Directory

Processed files are moved to another directory depending on the Delete-Or-Keep-Processed-Files value. The backup directory is assumed to be original-input-directoryMove-To-Directory.

For example, if the input directory was /b2b/inbound, then with the default value, processed files are moved to the /b2b/inbound_backup directory.

  • _backup (default).
  • You can set the value for Move-To-Directory to any string. However, the combination of original-input-directoryMove-To-Directory must result in a valid directory path on the FTP server.
Processed-File-Extension

If processing is successful, rename the file by appending the Processed-File-Extension value (for example, _processed), depending on the Delete-Or-Keep-Processed-Files setting.

For example, if an input file name was 850_po.edi, then with the default value, after processing, the file is renamed to 850_po.edi_processed.

  • _processed (default).
  • You can set the value for Error-File-Extension to any string. However, the combination of original-input-filenameError-File-Extension must result in a valid directory path on the FTP server.

To change the behavior for one specific FTP transport, locate its FTP Receive Integration, and navigate to the Update property values panel.

  1. Hover over the row of the integration to update.
  2. Select Actions Actions icon, then select Update property values.
  3. In the Update property values panel, select the property to change and enter a value in the New value field.
  4. Select Submit to make the new values effective for future runs.
  5. To change the behavior for all transports created in the future, edit the integration (for this example, named B2B Integration Template FTP Receive).
  6. For the schedule action in the integration canvas, select Actions Actions icon, then select Edit integration properties and change the default values.