Hi @Craige_Hales ,
As my directory has too many files, it was taking way too long (more than 30min and it's not yet done with the "Discovering files" portion, so I have decided to use the option to trigger multiple times of MFI and then concatenate. But I noticed it run the "Discovering files" (3?)times before outputting the 'file1' and another (3?)times before outing 'file2'. Ultimately it did give me file1 and file2 then concatenate into "Final", but was taking longer than it should. I tried to remove the second MFI and it works fine, was able to output the file1 in within 2min. Below is my script, do you know what went wrong?
Multiple File Import(
<<Set Folder( "\\fsftp1\ftp\"||tool1_input||"\reports" ),
<<Set Show Hidden( 0 ),
<<Set Subfolders( 0 ),
<<Set Name Filter( num_input ||"*EB*.CST" ),
<<Set Name Enable( 1 ),
<<Set Size Filter( {14753758, 16813862} ),
<<Set Size Enable( 0 ),
<<Set Date Filter( {3702288653.475, 3702734626.833} ),
<<Set Date Enable( 0 ),
<<Set Add File Name Column( 1 ),
<<Set Add File Size Column( 0 ),
<<Set Add File Date Column( 1 ),
<<Set Import Mode( "CSVData" ),
<<Set Charset( "Best Guess" ),
<<Set Stack Mode( "Stack Similar" ),
<<Set CSV Has Headers( 1 ),
<<Set CSV Allow Numeric( 1 ),
<<Set CSV First Header Line( 15 ),
<<Set CSV Number Of Header Lines( 1 ),
<<Set CSV First Data Line( 16 ),
<<Set CSV EOF Comma( 0 ),
<<Set CSV EOF Tab( 0 ),
<<Set CSV EOF Space( 1 ),
<<Set CSV EOF Spaces( 1 ),
<<Set CSV EOF Other( "" ),
<<Set CSV EOL CRLF( 1 ),
<<Set CSV EOL CR( 1 ),
<<Set CSV EOL LF( 1 ),
<<Set CSV EOL Semicolon( 0 ),
<<Set CSV EOL Other( "" ),
<<Set CSV Quote( "\!"" ),
<<Set CSV Escape( "" ),
) << Import Data;
DT1 = current data table();
DT1 << set name("file1");
Multiple File Import(
<<Set Folder( "\\fsftp1\ftp\"||tool2_input||"\reports" ),
<<Set Show Hidden( 0 ),
<<Set Subfolders( 0 ),
<<Set Name Filter( num_input ||"*EB*.CST" ),
<<Set Name Enable( 1 ),
<<Set Size Filter( {14753758, 16813862} ),
<<Set Size Enable( 0 ),
<<Set Date Filter( {3702288653.475, 3702734626.833} ),
<<Set Date Enable( 0 ),
<<Set Add File Name Column( 1 ),
<<Set Add File Size Column( 0 ),
<<Set Add File Date Column( 1 ),
<<Set Import Mode( "CSVData" ),
<<Set Charset( "Best Guess" ),
<<Set Stack Mode( "Stack Similar" ),
<<Set CSV Has Headers( 1 ),
<<Set CSV Allow Numeric( 1 ),
<<Set CSV First Header Line( 15 ),
<<Set CSV Number Of Header Lines( 1 ),
<<Set CSV First Data Line( 16 ),
<<Set CSV EOF Comma( 0 ),
<<Set CSV EOF Tab( 0 ),
<<Set CSV EOF Space( 1 ),
<<Set CSV EOF Spaces( 1 ),
<<Set CSV EOF Other( "" ),
<<Set CSV EOL CRLF( 1 ),
<<Set CSV EOL CR( 1 ),
<<Set CSV EOL LF( 1 ),
<<Set CSV EOL Semicolon( 0 ),
<<Set CSV EOL Other( "" ),
<<Set CSV Quote( "\!"" ),
<<Set CSV Escape( "" ),
) << Import Data;
DT2 = current data table();
DT2 << set name("file2");
Data Table( "file1" ) <<
Concatenate(
Data Table( "file2" ),
Output Table( "Final" ),
Create source column
);