Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a job to check for the existence of a .tar file and then extract it to a folder and archive the file again to .zip
I have this java code to set the paths to the folders:
String os = System.getProperty("os.name").toLowerCase(); //final java.util.Map globalMap = new java.util.HashMap(); if(os.indexOf("win") >= 0){ // context.projPath="C:/bin/Batch_progs/IPTV/epg/"; context.projPath="C:/bin/Batch_progs/IPTV/epg/"; context.projBackup="C:/bin/Batch_progs/IPTV/epg/backup/"; context.projExtract="C:/bin/Batch_progs/IPTV/epg/extraido/"; }
and it's working fine but if i change the path to these
String os = System.getProperty("os.name").toLowerCase(); //final java.util.Map globalMap = new java.util.HashMap(); if(os.indexOf("win") >= 0){ // context.projPath="C:/bin/Batch_progs/IPTV/epg/"; context.projPath="C:/NHACVM/TVNAMON/EPG/"; context.projBackup="C:/NHACVM/TVNAMON/EPG/backup/"; context.projExtract="C:/NHACVM/TVNAMON/EPG/extraido/"; }
it's throwing the following error:
tFileUnarchive_2 error message java.io.IOException:The filename, directory name, or volume label syntax is incorrect
What can be causing this?
Thank you.
Hi,
Did you check whether the directories are accessible from that machine? Also could you please show the job flow and component detail screenshots?
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
@nthampi there i the job flow:
check if file exists: context.projPath+"CVMultimedia_"+TalendDate.getDate("yyyyMMdd")+".tar.gz"
archive file: context.projPath+"CVMultimedia_"+TalendDate.getDate("yyyyMMdd")+".tar.gz"
I created the same folder structure in my local machine to test and its throwing the same error.
Hi,
Could you please print the values you are trying to give to these components in a tjava and see whether the values are correct?
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
@nthampi i'm new to talend so can you show where and how to do what you suggested me?
Hi,
Please refer the below link to understand how to print the data to console.
https://community.talend.com/t5/Design-and-Development/Print-to-log-window/td-p/94145
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
Hi,
Could you please remove the three stars in your data?
Please also verify the possible reasons from the below link.
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