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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
phiibuntu
Contributor
Contributor

tfilecopy missunderstanding

Hello,

I 'm making a job to copy and rename files. My tfilecopy seems to copy and correctly rename the files.

Sadly files are created with good name but they're empty.

Files are 0 ko in good destination repertory...

here's a screenshot of the job : no error ... I don't understand what I have missed.

0683p000009M1kh.png

Labels (2)
23 Replies
phiibuntu
Contributor
Contributor
Author


I thought it was solved but in fact the job rename good the filename from mysql database.

But it's only copy the first file it found. 

So every file renamed have the same siez, and are in fact the same file with the different name.

I try a lot of thing about this simple job I really don't understand why it copy only one file and rename it (19 time in the screenshot below).

 

0683p000009M26i.png

 

here the resulte (with all goo named files with the same size (beacause they're the same file with different name) :

 

0683p000009M1me.png

I'm a little bit disappointed, I thought it was a really simple job to do...

Thanks for your help.

Anonymous
Not applicable

Hi,

 

    I think you are not passing the right value to the source file path.

 

    I would suggest you to print and see the different variables you are passing in the flow for file copy.

 

    Somewhere the data is getting overwritten with same value. The easiest way to identify the area will be to print the value at each stage.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

phiibuntu
Contributor
Contributor
Author

I try every tfilelist variables values and nothing works 

 

With the same value for source path ( ((String) globalMap.get("tFileList_1_CURRENT_FILEPATH")) in simple job with :  tfilelist  ===> tfilecopy the files are correctly copied

if I make this one : tfilelist ===> titeratetoflow ===> tfilecopy : only one file is copied

 

with the same source path value ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))

 

other value doesn't work. 


Capture d’écran de 2018-12-27 08-21-57.png
phiibuntu
Contributor
Contributor
Author

if I use this source path value : ((String)globalMap.get("tFileList_1_CURRENT_FILE"))

 

tfilecopy give some errors : Exception in component tFileCopy_1 (always_copy)
java.lang.RuntimeException: The source File "dbb16aa9-b792-6e2b-01c2-5aa93889b70b" does not exist or is not a file.

 

and don't find any files.

 

this value seem to be the only who works : ((String) globalMap.get("tFileList_1_CURRENT_FILEPATH"))  but only for one file.

with my simple test I think titeratetoflow seems to have an issue in my job.