Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to get the csv files that I need from a directory, but when I run the job the expected result does not appear.
I've tried many configurations and options, but still not working. Eventually, I'm felling that something is missing. So I decided to reproduce the example on the Talend Documentation and other Youtube videos. Tried also on two different operating systems (Windows and Linux) same result.
So right now my test job is this:
It should show the simple data inside the csv, but nothing happening.
On tFileDelimited I'm using: ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))
could you try running the job without "\\" from the filemask and please try to print the context variable in tjava and check whether the path given is correct or not
attach tfilelist configuration pic.
could you try running the job without "\\" from the filemask and please try to print the context variable in tjava and check whether the path given is correct or not
Hello,
Please select"Generate Error if no file found" check box in tfilelist component to see if your job will generate an error message if no files or directories are found. If so, you need to check the path of given directory.
Best regards
Sabrina
Hi Sabrina,
Thank you for the kind suggestion. Indeed tFileList wasn't finding the files!
Hi vikramk,
Thank you, it worked! I don't know why, but yesterday I was getting an error when only using "*.csv", and the only way to solve it was by adding the "//". I will now test this on the other job.
Regards!
@Vikram Kumar , I do not understand why you are using "\\*.csv" as a file mask, you need to get the csv files in given folder right then use "*.csv" as file mask in tFilelist.
Thanks,
Manohar
Hi Manohar,
Because without them I get this error:
Hello,
Please recheck "Use Glob Expressions as Filemask " option which filters the results using a Global Expression (Glob Expressions).
Best regards
Sabrina