on 01-27-2010 11:16 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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...
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.
@ 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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.