cancel
Showing results for 
Search instead for 
Did you mean: 

problem with the FTP sender communcation channel

Former Member
0 Kudos

hi

i have a problem with the FTP sender communcation channel , when two or more files placed at a time into the source folder of the communction channel it is picking all the files at a time and processing , but here we require it to process each file one by one with a delay of 3minutes , can any body help me regarding this,

regards

sandeep

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi i tried the same but stil it is picking all the files at time ,

regards

sandeep

Former Member
0 Kudos

Hi Sandeep,

This is the standard behavior of File Sender Adapter. It will pick up all the file which are present at once at that particular poll in the Folder. You cannot pick the files present with a delay of 3 minutes by standard way.

Kindly check the SAP Note 821267, where it is clearly mentioned(as below) that for NFS we can process files in sequence as per time stamp but the same is not for FTP:

12. File Sender: Quality of Service EOIO (Exactly Once In

Order)

o Q: How does a File Adapter sender channel handle the quality of

service EOIO? Are files that match the File Name Scheme in the

sender's channel configuration processed in arbitrary order?

o A: The File Adapter allows you to configure the Processing Sequence

of files for the Transport Protocol "File System (NFS)", which also

determines the order for EOIO processing. Files can either be

processed in ascending alphabetical order (Processing Sequence "By

Name") or by their last modification time stamp (Processing

Sequence "By Date"), where the oldest file is processed first. For

the Transport Protocol "File Transfer Protocol (FTP)" files are

always processed in ascending alphabetical order.

Cheers

Dhwani

Edited by: dhwani kamdar on Nov 2, 2009 9:38 PM

Former Member
0 Kudos

Hi Sandeep,

I don't think there is a standard functionality for this case. you can write the custom module.

Regards

Ramesh

Former Member
0 Kudos

Well, as such there is no standard way to delay the file picking process, but you can hold the control at the Message mapping level to send the message out of PI to the target system using UDF or java mapping with the statement:

Thread.sleep(180000).

The other options are use of BPM with the wait step, write a custom module or shell script.

I think the UDF option should work for you.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#sleep%28long%29

Pooja

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I don't completely agree with Jude and Nagarjuna.

Polling interval 3 mins means the file channel will check for the files every 3 mins.

Connection mode = File per transfer means - a new connection to the FTP server is established for each file transfer.

For example -

If you use *.csv and there are 10 files in the source directory, then all these 10 files will be selected and processed in the 1st polling itself. There will be new FTP connections created for each file transfer, but it won't restrict that only 1 file is being transferred in 1st polling, 2nd file in 2nd polling and so on.

@Sandeep

I am not too sure, but writing a Shell script might be helpful.

Regards,

Neetesh

Edited by: Neetesh Raj on Nov 2, 2009 10:24 AM

Former Member
0 Kudos

Set polling interval as 3mins as mentioned and connect mode as 'per file transfer'

Former Member
0 Kudos

Hi ,

You can set the polling intervel to 3 min (180 sec ) . which will work .

Regards,

Jude