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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
matiasdesousa
Contributor
Contributor

Unarchive file path error

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.

Labels (3)
8 Replies
Anonymous
Not applicable

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

matiasdesousa
Contributor
Contributor
Author

@nthampi there i the job flow:

0683p000009M7Xl.png

0683p000009M7Xq.pngcheck if file exists: context.projPath+"CVMultimedia_"+TalendDate.getDate("yyyyMMdd")+".tar.gz"

0683p000009M7Xv.pngarchive 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.

Anonymous
Not applicable

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

 

 

matiasdesousa
Contributor
Contributor
Author

@nthampi i'm new to talend so can you show where and how to do what you suggested me?

Anonymous
Not applicable

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

matiasdesousa
Contributor
Contributor
Author

@nthampi i printed the values:

0683p000009M7Tz.png

 

and the values are correct. The paths are correct too.

Anonymous
Not applicable

Hi,

 

    Could you please remove the three stars in your data?

 

    Please also verify the possible reasons from the below link.

 

https://stackoverflow.com/questions/131901/what-are-possible-reasons-for-java-io-ioexception-the-fil...

 

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

matiasdesousa
Contributor
Contributor
Author

The stars are just strings concatenated. You can ignore them.