Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic Selection of Input Files from Metadata

Hi,

I have a table with multiple columns of which one column is indicator_source_table . I want talend to read the value in a row corresponding to this column and use the value specified there to import another file.

 

For eg;

If in a particular row under the indicator_source_table column we get a value of "Net" then talend should import a file named Net.xlsx from my systemor metadata

Labels (1)
3 Replies
Anonymous
Not applicable
Author

Hi
You need to iterate the input values and pass it to tfileinputExcel as file name, eg:
tMysqlInput--main(row1)--tFlowToIterate--iterate--tFileinputExcel--main-->tlogrow

on tFileInputExcel, you can set the file path as, eg:
"D:/filepath/"+(String)globalMap.get("row1.indicator_source_table")

Hope it gives you hints.

Regards
Shong
Anonymous
Not applicable
Author

Hi,

Thanks Shong for your reply .

The problem im facing is that I reached the tinputfile component but in this component we have to define the input file schema manually so that job runs properly and we can use the input file for other transformations . Is there any way that we can bypass the define schema step because if we are creating a dynamic system this tinputfile can have any table within it whose schema differ.

 

 


Annotation 2019-05-23 092712.png
Anonymous
Not applicable
Author

Hi
Take a look at the dynamic schema feature, this feature is only available on enterprise subscription product.
https://community.talend.com/t5/Design-and-Development/How-to-process-changing-data-structure/ta-p/2...
If you are using community edition, this is impossible, because the file structure always changes.

Regards
Shong