Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
amit_n
Contributor
Contributor

how to create new folder from tfileoutputdelimiter component ??/

i have to create the folder in tfileoutputdelimiter and then create csv file in that folder.

 

example:

tfileoutputdelimiter:

filename path :

context.tmp_folder+"/new_folder/"+context.filename

1. context.tmp_folder is having path 

2. new_folder needs to create after tmp_folder path

3. context.filename is having csv file name

 

here ia m not able to create new folder as above format?

 please let me know how to proceed..

 

Labels (4)
1 Solution

Accepted Solutions
vboppudi
Partner - Creator III
Partner - Creator III

please provide the path and folder details in context group for context.tmp_data_path.

Regards,

View solution in original post

9 Replies
iamabhishek
Creator III
Creator III

Have you selected the option - "Create directory if doesn't exists" under the Advanced settings.

 

0683p000009LzOo.jpg

amit_n
Contributor
Contributor
Author

i have checked this option ..but also folder is not created.

vboppudi
Partner - Creator III
Partner - Creator III

Are you getting any error?

 

Regards,

amit_n
Contributor
Contributor
Author

yes,m getting the below error.

java.io.FileNotFoundException: D:\tmp_path\new_folder\filename_error.csv (The system cannot find the path specified)

vboppudi
Partner - Creator III
Partner - Creator III

If you are running talend on windows try the below

0683p000009LzOt.png0683p000009LzOy.png0683p000009LzP3.png

 

in Context variable for Folder path use forward slash "/" instead of "\".

 

Regards,

iamabhishek
Creator III
Creator III

Tried to re-pro your use case but didn't find any such error occurrence. Would it be possible if you could show the job layout and the configuration for your tFileOutputDelimited.

amit_n
Contributor
Contributor
Author

0683p000009LzOk.png

tmp_data path is taking from property file. +

newfoldershould create +

context.filename is taking from source_file_name_error.csv

 

error:: java.io.FileNotFoundException: ---->  path  (The system cannot find the path specified)

 

0683p000009LzP8.png 

 

vboppudi
Partner - Creator III
Partner - Creator III

please provide the path and folder details in context group for context.tmp_data_path.

Regards,

amit_n
Contributor
Contributor
Author

i cant hard code the path in context group.. path will taken from the config property file. When we move the code to test environment it should not have the problem.