Skip to Content
author's profile photo Former Member
Former Member

Poll Interval Confusion

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Jan 27, 2010 at 11:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Dheeraj Kumar

      @ 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?

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 11:18 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 11:20 AM
    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 28, 2010 at 05:06 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.