Visokio website     Downloads     Video tutorials     KnowledgeBase  
Scheduler: Creating files with unique filenames - Visokio Forums
Scheduler: Creating files with unique filenames
  •     Mees August 2, 2011 3:43PM
    Our Scheduler creates several files from a large datamart (iok) file using the File output in Data Manager.
    As we need a unique filename per file, we use the timestamp to include in the filename.

    However, we are facing a problem we didnt expect..... The process runs so fast that some files are created in the same second. This means we loose the functionality of creating unique filenames.

    To avoid this situation we need to slow down the scheduler process, of course something we do not want.
    As a workaround we inlcude the File action 'Save iok' to win some time before the next file is generated.

    We hope there is a better solution.
    1 - have a least 1 or 2 seconds between file creation
    2 - have another way to create a unique file name; ideal would be to use an ID field in the filename

    Thanks
  • 2 Comments
  •     steve August 3, 2011 1:50AM
    Use milliseconds 'SSS' in the timestamp format - that should guarantee a unique filename. For example, use this pattern:
    "yyyy-MM-dd HH-mm-ss-SSS"
  •     Mees August 3, 2011 8:19AM
    Excellent. This works!
    Thanks Steve
This discussion has been closed.
← All Discussions

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership