check the filename with TFileList ---Error

One Star

check the filename with TFileList ---Error

Hello
I created a job which check the name of a file and if the name of the file is correct. it will enregister this file into dataBAse.

For that, i putted in the disgner the componenr TfileList and i have written in filemask a regular expressions (regex Perl ). this regex enables to accept only the name which start by 'OX' and we can find other string then we find data and .txt for exemple fileName is OxbbbbYYYYMMDDHHMM.txt.
So i putted in the maskfile
"Ox({2})(0|1)(0||30|31)(0|1|2)()().txt"
i check the option generate error when file is not found.
when i launch the job, it generates two errors one in the TfileList (file is not fond' et an other error in delimitedfileInput, because i have putted in the option file name this :

$_globals{tFileList_1}{CURRENT_FILEPATH}
this is the error which is generated :
FileMask_Tfilelist_ cannont be resolved.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
filemask_tFileList_1 cannot be resolved
filemask_tFileList_1 cannot be resolved
Syntax error, insert ")" to complete ClassInstanceCreationExpression
Syntax error, insert ";" to complete BlockStatements
$_globals cannot be resolved
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
Syntax error, insert ";" to complete BlockStatements
tFileList_1 cannot be resolved
Syntax error on tokens, delete these tokens
Syntax error, insert "}" to complete Block
The operator ! is undefined for the argument type(s) Object
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
Syntax error, insert ")" to complete Expression
Syntax error, insert ")" to complete Expression
Syntax error, insert ") Statement" to complete BlockStatements
$_globals cannot be resolved
Syntax error, insert "AssignmentOperator Expression" to complete Assignment
Syntax error, insert ";" to complete BlockStatements
tFileList_1 cannot be resolved
Syntax error on tokens, ( expected instead
Syntax error on tokens, delete these tokens
Syntax error, insert "else Statement" to complete IfStatement
Syntax error, insert "}" to complete Block
at

Could you help me please ? it is very emergent please.?
thank you veryyyyyy much
Seventeen Stars

Re: check the filename with TFileList ---Error

hi,
a simple solution with asterix (*) to tell everything (check use global expression) ..first sreenshoot
another "simple" expression with regex (uncheck global expression) second screenshoot
if you got several extension : "^O.+(txt|csv)$"
hope it help
regards
laurent