LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Multiple File Acquisition

    Employee
    Posted 07-06-2017 02:10

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: LauraLacey

    I have 2000 files that need importing into lavastorm files are identical aside from the name as they are time stamped - is there a node or a way to bring all files in at the same time as they need to be joined together and then analyzed


  • 2.  RE: Multiple File Acquisition

    Employee
    Posted 07-06-2017 02:45

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: jmok

    Hi Laura,

    Thanks for the question. What type of files are they?

    There are two parts to this. The first part is to acquire the files and the second is to read the records from the files.

    First part

    To bring in multiple files of the same type, you can use the Directory List node. You will need to enter the folder location of where the files are saved and also a file pattern that Lavastorm will use to acquire the files.

    For example, if the files you are acquiring are called:

    - Lavastorm-030717.csv
    - Lavastorm-040717.csv
    - Lavastorm-050717.csv

    You could use the naming pattern: Lavastorm-*.csv. The asterisk is the wildcard sign in Lavastorm. This will read in the multiple files and you should be able to see the file names in the output.

    Second part

    The second part is to read in the records from the files. To do this you'll want to attach the appropriate node to read in the type of files i.e. if you are trying to acquire CSV file, use a CSV File node. Connect the node to the Directory List node and in the FilenameExpr parameter, enter the input field that contains the file names. In this case, the input field name is called FileName. Run the node.

    You should see all records from all files. If you have any issues/questions, please let us know.


  • 3.  RE: Multiple File Acquisition

    Employee
    Posted 07-06-2017 07:29

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: LauraLacey

    Thank you - I've discovered another issue with the 2000 files, they have been saved as CSV but when the files are imported they are actually ; delimited. Is there a way to pick this up in a node?


  • 4.  RE: Multiple File Acquisition

    Employee
    Posted 07-06-2017 07:32

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Use the Delimited File node instead of the CSV node

    Field Delimiter = ;
    Record Delimiter = \n