cancel
Showing results for 
Search instead for 
Did you mean: 

Archive Faulty Files in SFTP Adapter

shankul_saxena
Explorer

Hi All,

I have a requirement to archive faulty files in /error folder on SFTP server and successful files in /archive folder.

Archiving faulty files

Archiving the files on SFTP server

But the faulty files are moving to /error folder as well as /archive folder and I want faulty files to be in /error folder only.

Is this requirement can be achieved or it is default behavior of SAP PO that it will always archive error file in /archive folder if it is configured.

Regards,
Shankul

Accepted Solutions (1)

Accepted Solutions (1)

vicky20691
Active Contributor

Hi Shankul,

The normal archiving options does not limit the archiving to success scenarios, as soon as file is polled it is first archived into "ARCHIVE" folder, then when engine realizes it is faulty file then archives one more copy into "ERROR".

You can't do this with standard options. If it is must to do ( i recommend to convince to not make it more complicated), then do it with another sftp channel in receiver which sends file to ARCHIVE directory whenever success. so 2 receivers one normal and one to archive. very lame solution better don't go for it 🙂

Regards,

Vikas

Answers (2)

Answers (2)

sugata_bagchi2
Active Contributor
0 Kudos

Hi Shankul,

I think there is no Archiving parameter %TS for SFTP, it is %TIME. May be the adapter is ignoring the wrong one and putting back the faulty files to both directories.

And try to remove the "-" from the directory path.

Thanks

Sugata

shankul_saxena
Explorer
0 Kudos

Hi Sugata,

%TS works too. The things right now happening is looks like the standard way of SFTP adapter.

Regards,
Shankul

0 Kudos

Hi Shankul,

I'm not much experienced in working with SFTP adapter, but don't check "Delete file" option on the Processing tab.

shankul_saxena
Explorer
0 Kudos

Thanks for your comment Narendra!

It is working same as my problem says. File is archiving in both folders.

Regards,

Shankul