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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

getting filename from tFileInputDelimited

Hi!
I'm trying to insert the filename into my target table. Im using tFileInputDelimited and tmap.
In tmap i put in this in the expression editor:
((String)globalMap.get("tFileInputDelimited_1_CURRENT_FILE")), but only question marks are inserted into the tables.
Any thoughts on how to do this properly?
Thanks!
Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hi
You can't get file name from tFileInputDelimited. Because there isn't tFileInputDelimited_1_CURRENT_FILE in Talend job code.
Regards,
Pedro
Anonymous
Not applicable
Author

got it, will be using fileproperties.
Anonymous
Not applicable
Author

Hi,
I don't know how you have designed your job, but one way would be to use a tFileList component to achieve your requirement.
Anonymous
Not applicable
Author

tFileList is not useful for me, since all my files have different schemas.
Anonymous
Not applicable
Author

I have the same requirement and needs to get the current name of input.
Lets say, input file name is a.txt. I want the output file name is a_output.txt. How can I do it? 
please help.