Table of Contents

Search

  1. Preface
  2. Components
  3. API collections
  4. Business services
  5. File listeners
  6. Fixed-width file formats
  7. Hierarchical schemas
  8. Industry data service customizer
  9. Intelligent structure models
  10. Refining intelligent structure models
  11. Mapplets
  12. Saved queries
  13. Shared sequences
  14. User-defined functions

Components

Components

Configuring file listener for a connector source type

Configuring file listener for a connector source type

When you select the source type as connector in the file listener details, the file listener listens to the connection.
For more information about configuring file listener details, see Configuring a file listener.
  1. Configure the following parameters to define the connection:
    Parameter
    Description
    Connection Type
    Type of the connection to which the file listener listens.
    Connection
    Connection to which the file listener listens.
  2. Configure the following parameters to define listener rules:
    Parameter
    Description
    Folder Path
    Path to the folder to which the file listener listens.
    File listener can access files and directories on network shares with support for NFS and CIFS.
    You can enter a relative path to the source file system. To enter a relative path, start the path with a period, followed by a slash (./). The path is relative to the source directory specified in the connection.
    Pattern Type
    Determines the pattern of the file name to which the file listener listens. Select one of the following patterns:
    • Wildcard
    • Regex
    • Indicator File
    File Pattern
    File name pattern to which the file listener listens.
    • Wildcard. Use wildcard patterns of file name.
    • Regex. Use a regular expression to match the file name pattern.
      If you select regex pattern type, consider the following examples:
      • Use the following syntax to listen to all files except for files whose name contains out, foo, and baz.
        ^(?!.*(?:out|baz|foo)).*$ all except
      • Use the following syntax to listen to all files that have an extension of doc,docx, pdf.
        ([a-zA-Z0-9\s_\\.\-\(\):])+(.doc|.docx|.pdf)$
      • Use the following syntax to listen to all text file except for files whose name contains
        out.txt
        .
        ^(?!out).*\.txt$
    • Indicator File. Use the file name to which the file listener listens.
    Check for files in sub-folders
    Indicates whether the file listener checks for files in sub-folders under the folder to which it listens.
    Post Action
    Determines the action the file listener must perform after the file listener listens to the events.
    You can select the post action as
    Delete
    only if the file pattern is an indicator file. Default is None.
    The following connection types support the Post Action option:
    • Local folder
    • Advanced FTP V2
    • Advanced FTPS V2
    • Advanced SFTP V2
    • Amazon S3 V2
    • Microsoft Azure Data Lake Store Gen2
    • Microsoft Fabric OneLake
    Add Parameters
    Create an expression to add it as a folder path parameter. For more information, see Add Parameters.
    Notify when file
    Determines when the file listener must send notifications to the services that are registered to it:
    • Arrived. Sends notifications when files arrive at the folder to which the file listener listens.
    • Updated. Sends notifications when files in the folder to which the file listener listens are updated.
    • Is Deleted. Sends notifications when files in the folder to which the file listener listens are deleted.
    You can select as many options as required.
    Do not select the
    Is Deleted
    option if the
    Post Action
    is
    Delete
    .
    Stop checking if rules are met
    The file listener stops listening to the folder when the listener rules are met. For example, if you configure the file listener to send notifications when the files in the folder to which it listens are deleted, the listener stops listening to the folder when the first event of file deletion occurs in the folder.
    If this option is not selected, the file listener notifies the registered application on events and continues to listen for subsequent events.
    Check File stability
    The file listener verifies that the entire file is copied to the folder to which it listens before notifying the registered services.
    Select this option if you transfer large files, where the process of writing the files to the folder is not instant.
    Stability Check Interval
    Time in seconds that a file listener waits to check for file stability. For example, if the stability time is 15 seconds, a file listener verifies the status of the file after every 15 seconds.
    The stability check interval field is enabled only if you select the
    Check file stability
    option.
    The stability check interval ranges between 10 seconds to 300 seconds. Default is 10 seconds.
    Notify if files exist on the first run
    When the file listener runs for the first time, it sends a notification if files exist in the folder to which it listens. The
    Exclude events when the file listener is not running
    option is disabled when you select this option.
    Exclude events when the file listener is not running
    Determines if you want to exclude the file events that occur when a file listener is not running. The
    Notify if files exist on the first run
    option is disabled when you select this option.
  3. Consider the following options to specify a schedule:
    • You can set schedule options to run a file listener daily, weekly, or monthly.
    • You can set schedule options to start a file listener on a specific date and time, and seconds, based on a specific time zone and to run file listener on a reoccurring basis.
  4. Under
    Failure Management
    , select
    Continue to run on failure
    to run file listener even if the task fails with errors. Select
    Send a notification on failure
    to receive a notification if the task fails. Enter a list of email addresses to which you want to send notifications if a task fails.

0 COMMENTS

We’d like to hear from you!