Page 1 of 1

ipworkszip error

Posted: Mon Jul 22, 2013 1:16 pm
by llovelace
Getting this error when trying to zip up a bunch of files. The files do not have an extension on them. Could that be the problem? Thanks!

ERROR ipworkszip.IPWorksZipException: Could not open file for read.

Re: ipworkszip error

Posted: Mon Jul 22, 2013 1:35 pm
by Support_Rick
Usually this would indicate that another job/process has the file open thus, not making it available for reading.

Make sure any pre-defined job that might be creating the files to be zipped has completed and the files have been released prior to the zip task execution.

The extension on the file name shouldn't be an issue.

Re: ipworkszip error

Posted: Mon Jul 22, 2013 3:20 pm
by llovelace
Rick - No one is in the files. What else might this error indicate?
Thanks

Re: ipworkszip error

Posted: Mon Jul 22, 2013 4:16 pm
by Support_Rick
Please send a copy of your Project XML and a Job Log set for DEBUG to [email protected] and I will be happy to take a look at your project and see what the issue is.

Re: ipworkszip error

Posted: Tue Jul 23, 2013 8:15 am
by Support_Rick
The issue seems to be the use of a wildcard (*.*) in your single inputFile prompt. Change this to a FileSet and try again...

Code: Select all
From this:
<zip inputFile="/Public/FDM/*.*" outputFile="/Public/FDM/acctfolio.zip" version="1.0" logLevel="debug" />

To this:
<zip outputFile="/Public/FDM/acctfolio.zip" version="1.0" logLevel="debug">
     <fileset dir="/Public/FDM" />
</zip>