Skip to Content
4
Jun 18, 2019 at 12:14 PM

Move original file to another folder on SFTP server in case of exception

1840 Views

Hi all,

In CPI we connect to an SFTP environment with folders input, output and error. The files needed processing are set in the input folder and upon succesful processing we replace them to the output folder. However, in case of an exception we would like move the file to the error folder.

My question is whether this is possible: the SFTP adapter only has a post-processing action and lacks a post-exception action.

The only solution I can come up with is to load the file with a separate flow in a datastore,remove it from the input folder and output it again based on the processing results. But I'd rather move the original file so that the system behind the SFTP environment can check that there is a locked file in the input folder.

Thanks for helping out!

Bram