cancel
Showing results for 
Search instead for 
Did you mean: 

Poll Interval Confusion

Former Member
0 Kudos

As per the help.sap.com poll interval while using in File Adapter is:

Poll Interval (secs)Number of seconds that the adapter must wait if no files are found for processing.

It will be always in sec so min is 1 sec max you can set as per your requirement.

Poll Interval (msecs)

Additional waiting time in milliseconds.

If you set Poll Interval (secs) to null, processing times will be short and close to real time.

If you set Poll Interval (secs) and Poll Interval (msecs) to null, the adapter is only called once

If I give Poll Interval (secs) = 5, does it mean:

1) The adapter will wait for 5 secs and if it couldn't find any file than it wil throw an error?

or

2) The adapter will check the directory every 5 secs for any file and if any file exists than it will pick the file?

Thanks for the response.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185881
Active Participant
0 Kudos

Hi Chanakya

2) The adapter will check the directory every 5 secs for any file and if any file exists than it will pick the file?

This one is correct.

Regards

Dheeraj Kumar

Former Member
0 Kudos

Thanks Rajesh Dheeraj and Souman...

my scenario is I am getting sales order from legacy system in a flat file format.

But the issue is if I have more than one file in the directory after every poll interval than will the file adapter pick up all available files?

Edited by: Chanakya Sharma on Jan 27, 2010 12:30 PM

Former Member
0 Kudos
But the issue is if I have more than one file in the directory after every poll interval than will the file adapter pick up all available files?

Basically you give a file name scheme in your file adapter. The file with that name only will be picked up. Not others.

Moreover if you have more files to be picked up you can use MASKING feature of file adapter too.

Regards

Soumen...

Former Member
0 Kudos

Soumen,

I know it will pick up the file with the format provided in FileName Mask, but the thing is if there are 10 files with the same format, will it pick up all 10 files at one go and convert it into desired format?? because in next poll interal there might be more files.

former_member200962
Active Contributor
0 Kudos

The files will be picked one-by-one....according to the processing sequence you maintained in NFS file channel...for FTP it will be alphabetically.

former_member185881
Active Participant
0 Kudos

Hi

yes if you have a more then 1 file with the same name file adapter will pic up all the file but not all at once it will pic up one by one.

Regards

Dheeraj Kumar

Former Member
0 Kudos
I know it will pick up the file with the format provided in FileName Mask, but the thing is if there are 10 files with the same format, will it pick up all 10 files at one go and convert it into desired format?? because in next poll interal there might be more files.

No. It will pick them one by one. Conversion will take place accordingly. Seperate message in moni for every file.

Former Member
0 Kudos

@ Abhishek: what do you mean by alphabetically as in the scenario I have to use FTP

@ Dheeraj: you mean that in every poll interval only 1 file will be picked up, no matter how many files with the same format are available? e.g:

if my format is "a*SO.xml" and availbale files are a1SO.xml, a2SO.xml, a3SO.xml and poll interval is 5 secs than how it will pick up files for processing?

Answers (3)

Answers (3)

deepak_shah
Contributor
0 Kudos

Hi Chanakya,

The polling interval specifies the wait period for the communication channel.

Once an interface has been processed, the communication channel will take the polling number and "wait" for that amount of time until trying to continue processing

Consider a sender communication channel that looks for the file "abc.xml" in the source directory and the polling is set to 60 seconds. The communication channel finds the file and picks it up to be processed. Once the communication channel is done handing it off to be processed, it will try again. If it cannot find a file it waits 60 seconds before checking for the file again. The polling only occurs if a file does not exist

Regards,

Deepak.

Former Member
0 Kudos
If I give Poll Interval (secs) = 5, does it mean:
1) The adapter will wait for 5 secs and if it couldn't find any file than it wil throw an error?

No, it wont.

2) The adapter will check the directory every 5 secs for any file and if any file exists than it will pick the file?

Yes. It will keep re-polling every 5 secs until you stop it manually.

Former Member
0 Kudos

Hi,

If you give Poll Interval (secs) = 5, does it mean:

The adapter will check the directory every 5 secs for any file and if any file exists than it will pick the file?

But the adapter will not throw any error as you understand in point one.

HTH

Rajesh