Visokio website     Downloads     Video tutorials     KnowledgeBase  
Sources: FTP with changing file names? - Visokio Forums
Sources: FTP with changing file names?
  •     ChristianGroupM February 28, 2014 10:01AM
    Hi Visokio-Team,

    I would like to use the FTP Data Source block to import my reports to Omniscope, but what to do when the target data file name is post-pended every day with a changing date?

    For example:
    repot_14586_02262014
    repot_14586_02272014
    repot_14586_02282014

    How can I parameterise the source connection block so that I import only the newest version of the report into Omniscope automatically?

    Best Regards, Christian
  • 5 Comments
  •     tjbate February 28, 2014 12:07PM
    Christian - It is currently not possible to add an evaluated formula-based parameter like TODAY into the target data filename. Omniscope data import parameters must be fixed values at the moment.

    The best option currently is to import all the data files in the source directory and batch append them (adding the Source reference column) and then write a Record filter formula using TODAY to filter out all the records that are not from the latest daily source file.
  •     paola March 20, 2014 8:03AM
    You should use Batch Append files source block. It will allow you to use wildcard "*", and also download multiple files from the same location, that share a common part of file name, here "repot_14586_*". Ideally you should remove the old files from the source on a regular basis, once the latest report is loaded.
    This method will still work, but it means you will have to filter in the records from a file that is not in your master report.
    Please see the image - in the Batch append block configure the file name/type and make sure you create the [Source field].
    From your master file de-duplicate only the [Source field], so you end up with a list of unique files you already imported.
    Do a merge on this field, and select the non-matches from the Batch Append block.
    image
  •     ALC September 5, 2014 9:20AM
    Following on from the above is it possible to batch append from and SFTP?

    As above I have a file published daily to an SFTP that changes name, however when I use batch append I am not able to see any files in the directory at all however when I try to pull a data file using one of the file names I can upload the data fine

    thanks
    Anna
  • antonio     antonio September 5, 2014 11:46AM
    Hello Anna, have you tried to follow these instructions here http://forums.visokio.com/discussion/1572 .
    You should be able to upload and download files from sftp server.
    If you have problems connecting to your server, please contact our support with the IOK file you are using.
  •     tjbate September 6, 2014 3:24PM
    Ana - the Batch Append dialog is tricky. You are really only selecting a FOLDER, and the dialogue does not show the files. Once you pick the folder, you can use wildcards and patterns of specified characters like *.xls to specify which files in the folder you will be importing repeatedly, including files that do not yet exist.

    I agree that it is very disconcerting to point at a folder and see no files inside, but selecting the folder is all you are doing, and this way you can specify all future files that appear in the folder....

Welcome!

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

Sign In Apply for Membership