One Star

File Trigger in TAC

Hi All,
I created file trigger with the below settings -

Description: job_file_trigger_test
Pollint (s): 30
Folder path: \\taldev6.travelex-dev.net\C$\KalyanTalend\BCCCODA\V1_1\RAP\input
File mask: "\\d{12}_5000.*|\\d{12}_5500.*|\\d{12}_5501.*|\\d{12}_5502.*"
Exist: Checked
Created:
Modified:
Execution server: xxxx
There is no log file generated I mean job is no triggered even if file is present in the specified location.
C:\KalyanTalend\BCCCODA\V1_1\RTS\input\265920130605_5502.539377
Can you help me whether my file mask and otehr settings are correct.
4 REPLIES
Community Manager

Re: File Trigger in TAC

Hi
1. Remove the double quotes from the file mask expression, the correct expression is:
\d{12}_5000.*|\d{12}_5500.*|\d{12}_5501.*|\d{12}_5502.*

2. The folder path should be in the machine where Job server is installed and it is selected as execution server. I see you set a Linux path in the Folder path field, but show us a windows file path C:\KalyanTalend\BCCCODA\V1_1\RTS\input\265920130605_5502.539377
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: File Trigger in TAC

Thanks a lot Shong.
It's working but now the problem is that when I'm keeping only one file mask it is working.
If I keep multiple file mask it is not working and also below specified regular expressions are also not working.
I just kept the file mask as *5502.* then it is working when I add *5501.*|*5502.* it is not working.
Can you please explain how to configure the file mask ?
Community Manager

Re: File Trigger in TAC

Hi
I just kept the file mask as *5502.* then it is working when I add *5501.*|*5502.* it is not working.

Try this expression, it works for me.
.*5501.*|.*5502.*
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: File Trigger in TAC

Hi I am trying to setup a file trigger in TAC with a file mask of the previous day's date but it does not seem to work.
The below filemask does work 100% when I use it in a tFileList component. 
File mask: "PFA2_"+TalendDate.addDate(TalendDate.getDate("yyyyMMdd"),"yyyyMMdd",-1,"dd")+"2200_D.zip"
Any help would be appreciated.
Regards,
Stephan