Search code examples
mongodbtalend

tfileproperties not working in my case in talend open studio


I want to fetch file details like path of file, column names, and other things .In my job there are null values while using tfileproperties as shown in image added. look

if somebody can do something.

enter image description here


Solution

  • To Use tFileProperties you have to pass a valid file Path

    What i suggest is to pass the file Path in a context variable as such

    enter image description here

    Then , pass the context variable in my case file_Input in the tFileProperties as such :

    enter image description here

    And if your files are stored in the same Folder you can use a tFileList component see the link below :
    https://help.talend.com/r/en-US/7.3/tfilelist/tfilelist-standard-properties