Customer Portal

Process only unprocessed files

Comments 2

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    to point a Reader to a group of files, use ? and * wild-cards. So for reading all the files from the selected folder, your fileURL attribute should look like fileURL="my_folder/*".
    For reading only the files, that have not been read yet use incremental reading feature: set incrementalKey and incrementalFile attributes, eg.:
    incrementalFile="${DATATMP_DIR}/inc_my_grf.prop"
    incrementalKey="my_reader"

    After the graph execution, the file specified in incrementalFile attribute contains the names of the files with numbers of records, that have been read. So in the next graph execution there are read only new files or the records, that has been added to existing files since the last execution. But such reading is, of course, slower then reading without any checking, so if it is possible rather remove read files (eg. with SystemExecute component), than use incremental reading.
  • Avatar
    megreddy
    0
    Comment actions Permalink
    Didn't realize you could use wildcards in the GUI.. I see that using SysExecute to tag the files as "read" and/or delete them is much faster than incremental reading. Thanks for the help!

Please sign in to leave a comment.