tWaitForFile cannt find the CSV files in a folder

Five Stars

tWaitForFile cannt find the CSV files in a folder

Hello

Please I have a Software send to me CSV files in a folder
With Talend Open Studio for Data Integration in Win7, how can I to do a list of orders to use the csv files one by one to use it in my project with tMap

I tried with tWaitForFile -> tFileInputDetimited

And I did the File name of  tFileInputDetimited

((String)globalMap.get("tWaitForFile_1_CREATED_FILE")) -> Not work

And also I tried with tFileList 

((String)globalMap.get("tFileList_1_CREATED_FILE")) -> Not work

Thanks

 

Five Stars

Re: tWaitForFile cannt find the CSV files in a folder

I did this for test and  also no rows and Iam sure I have a csv file in my folder 


1.JPG2.JPG

Community Manager

Re: tWaitForFile cannt find the CSV files in a folder

Hi
((String)globalMap.get("tFileList_1_CREATED_FILE")) stores the current file name without file path, you should use this global variable ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")).

Regards
Shong

----------------------------------------------------------
Talend | Data Agility for Modern Business
Community Manager

Re: tWaitForFile cannt find the CSV files in a folder

If you use tWaitForFile, check the 'Include present file' box to include existing files or create a new file, so tWaitForFile will be triggered.
----------------------------------------------------------
Talend | Data Agility for Modern Business

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.