[resolved] tFileInputJSON | multiple input files?

One Star

[resolved] tFileInputJSON | multiple input files?

Hi folks,
This seems like a silly, newbie question but I can't seem to get it to work or find anything about how to do this.
All I want to do is to use the tFileInputJSON component to read in multiple json files, using a *.json when entering the filename in the component settings.  However, when it runs, it evaluates that literally and I get an error saying it can't find a "*.json" filename.
Any help, please? Thanks!
Chris

Accepted Solutions
Five Stars

Re: [resolved] tFileInputJSON | multiple input files?

you have to use another component tFileList which will give you list of files then you can process then one by one. 
tFileList---iterator--tFileInputJson---youroutput

in basic setting of tFileList add file mask "*.json" with other required details then you will get some global variables which will have file name with path use that variable in tFileinputJson component. 

All Replies
Five Stars

Re: [resolved] tFileInputJSON | multiple input files?

you have to use another component tFileList which will give you list of files then you can process then one by one. 
tFileList---iterator--tFileInputJson---youroutput

in basic setting of tFileList add file mask "*.json" with other required details then you will get some global variables which will have file name with path use that variable in tFileinputJson component. 
One Star

Re: [resolved] tFileInputJSON | multiple input files?

Thank you so much! I knew it had to be something easy (and not obvious) Smiley Happy

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

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

Download