Skip to Content
0
Jun 03, 2020 at 03:10 PM

HCI SFTP post-processing limitation with move file option

533 Views

Hi experts,

I wanted to share with you a limitation I found in the SFTP sender connector which is causing me some troubles. My requirement is to read a file from a directory and to archive it in a specific folder. This is perfectly fine with SCPI. My problem comes when I need to keep the file in the source folder if something goes wrong in the middle of the iflow.

To achieve this I figured out to add a step at the end of an exception subprocess which re-writes the file in the source directory: generally speaking, this works.

The point is that Post-Processing option of the SFTP sender connector. If you've worked with SAP PI/PO you remember that the archiving step is perfomed right after the reading one (read-archive-process). In SCPI this happens only at the end of the process (read-process-archive). So, what happens if I'm re-writing the file in the source directory (with exactly the same source name) and the option Move-File has been set up? The file gets archived anyway! I'm sure of that because if a set a constant filename in the re-write step instead of its original one, I see the original file being archived and the copy created with the consyant I provided.

Any ideas how to overcome this limitation?

Thanks in advance.

Cristian