Skip to Content
0

Duplication files validation

Nov 29, 2016 at 10:11 AM

87

avatar image

Hi Experts ,

I am having one requirement FTP-->PI-->ECC(Application server) . Here from FTP I need to pick files and need to place in application server (simple Pass through scenario). But here my problem is from FTP I can't delete or archive the files (only processing mode as TEST )
and also in application server I don't want duplicate file (avoiding receiver side file construction mode as create with overriding existing files ).

Means how to handle duplicate files in receiver side.

Thanks ,

Shiva


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raghuraman S Nov 29, 2016 at 11:00 AM
0

If the filename is not a problem in the source directory,maintain the archive directory same as source and place the files adding timestamp.

Show 8 Share
10 |10000 characters needed characters left characters exceeded

Hi Raghu,

From FTP side(Source side) we don't have any authorization to archive or delete(any other actions).

Thanks,

Shiva

0
0

Hi Raghu,

Thanks , I tried this options for other interfaces (Only available in FTP side) . This option will make channel inactive/throw exception when duplicate file arrives .

Here for my requirement for NFS mode at receiver side.(already I mentioned in FTP side we can't perform any actions).

0

Shiva,

one way could be keeping some flag in the proxy code and ignoring the files.

Or you need to write some custom beans.

0

Hi Raghu ,

Any Idea about custom modules??

Thanks,

Shiva

0

Not pretty much with this Requirement Shiva.

NFS is located in ECC AL11?

0
Show more comments
Evgeniy Kolmakov Nov 30, 2016 at 07:32 AM
0

Hi Shiva!

So what is your exact requirement? What do you want to do if file already exists at receiver side?

Regards, Evgeniy.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

One option is to check off "Overwrite existing file" in receiver adapter settings.

Another option, if you have sufficient rights on your target NFS location, is to put your file in some temporary folder and use OS script after that to check if the same file exists in destination folder. If yes - just skip (delete) the temporary file, if no - move it to real target location.

Regards, Evgeniy.

0

Hi Evgeniy ,

I am aware of option "Overwrite existing file" option in file construction mode but every time it will override the existing file frequently (Which I don't want).

If you have any predefined OS script please share with me (explain with step by step :) ).

Thanks,

Shiva

0