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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Exception in component tFileArchive_1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1

When trying to archive the csv file to zip file , got below error . Need help on this 

 

Exception in component tFileArchive_1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Labels (4)
1 Solution

Accepted Solutions
ankit7359
Creator II
Creator II

Hi @Karuetl,

Thanks for the screenshot,

Try by removing filename in the directory...specify only the directory where the file which is to be archived stored

File mask is specifying one certain file or list of files under an extension(for eg. excel files or text files etc) and when you specify all files.. all the files in the directory will be archived.

Pls reach out to the community,if necessary.

Thanks,

Ankit

View solution in original post

6 Replies
manodwhb
Champion II
Champion II

@Karuetl,can you the component design?

ankit7359
Creator II
Creator II

Hi @Karuetl,

Pls check the directory and destination where you want to store the archive file.

Also do check the filemask.

i m sure you might have checked all these. 

Pls do share the screenshot of the component which help the Community to clear the issue with a detailed explaination.

Thanks,

Ankit.

 

Karuetl
Creator II
Creator II
Author

context.filename = abcd-2019.01.08.14.11.11.csv
archive file  = abcd-2019.01.08.14.11.11.csv.zip

 

 

0683p000009M2FQ.png0683p000009M2FV.png

PhilHibbs
Creator II
Creator II

You haven't specified a filemask or "all files".

Karuetl
Creator II
Creator II
Author

I even tried with All Files also File mask too , same error 

ankit7359
Creator II
Creator II

Hi @Karuetl,

Thanks for the screenshot,

Try by removing filename in the directory...specify only the directory where the file which is to be archived stored

File mask is specifying one certain file or list of files under an extension(for eg. excel files or text files etc) and when you specify all files.. all the files in the directory will be archived.

Pls reach out to the community,if necessary.

Thanks,

Ankit