cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate File handling in Communication Channel

Former Member
0 Kudos

Hi Experts,

We are trying to use Duplicate Handling in sender file communication channel for FTP. When we are trying access a file for once it is picking up.

After the successful processing the file it is throwing error for the second time on wards saying duplicate file. That is good for us.

The bad thing is starting from here when we place a new file it is not picking up that one. Still it is picking the old file only.

We configured the communication channel in test mode. So the old file is still there. Our requirement is not to delete the files.

Can any one tell us to solve this issue. It is very helpful to us. Is there any other way to handle duplicate files.

We don't want to maintain table in ECC regarding File Names. I went through few threads for Duplicate file Handling.

There might be some one went through this type of scenario. Please suggest what you guys have done to solve this issue.

Regards,

Suhale Shaik.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Suhale,

I guess it's because you set "Test" mode and "Duplicate Handling" at the same time. Have you tested the combination of "Archive" and "Duplicate Handling"?

Try this:

1) set the mode to "Archive"

2) put file "xyz" to the folder

3) after it's processed, put it again to the folder. Duplicate handling should alert you and ignore this file

4) put another file "abc" in that folder. I expect this new file will be processed

If this is the case and SAP confirms this is the expected behavior, then you might have to use some other way to handle this file, with other systems.

Regards,

Wendy

Former Member
0 Kudos

Any inputs for this thread

Regards,

Suhale Shaik.

Former Member
0 Kudos

Hello Suhale,

The file adapter will work on what you have configured in channel(which processing mode and FIFO principle).

Can you share some more details on scenario

Regards,

Hiren

Former Member
0 Kudos

Hi Suhale

Why don't you archive the duplicate file in some archive directory so that the new files can be picked up.

Use this for archiving the duplicate files

Thanks,

Indrajit

Former Member
0 Kudos

Hi,

Why dont you use the Archive function?

Regards,

Jannus Botha

Former Member
0 Kudos

Thanks for quick reply Jannus, We don't have that option because that file is used by other systems also.

Regards,

Suhale Shaik.

Former Member
0 Kudos

Okay. Is there a reason why the second system needs to read it from that directory?

Because if the second system can read from the "Archive" directory it will resolve the problem?

But there are a few hacks we can do to achive this.

1. You can go and look if it is possible to change the name of the file using SAP PI sender File Adapter. Sure there should be a adapter module.

2. You can pick up the file and delete it and just a receiver on the scenario that writes the same file back into the same directory with a different name that PI is not looking for.

Regards,

Jannus Boyha

Former Member
0 Kudos

There are several systems that are using this file with the same name. As you mentioned we tried with the different file name in FTP I mean another file along with the old file already processed one.

It is giving error for the old file and it's not picking the new  file.

Regards,

Suhale Shaik.