Decompressing GZip file

84 views
Skip to first unread message

SueF

unread,
Aug 5, 2009, 7:35:50 PM8/5/09
to CozyRoc
I am trying to decompress a .gz (gzip) file with the Zip component and
get the following error

"Cannot be less than zero
Parameter name: value".

I have set the following properties:

Action - Decompress
Compression Type - Tar
Compression Level - GZip

IsSourceVariable - False
SourceVariable - Demofile.gz
IsTargetVariable - False
TargetVariable - Data
OverwriteExisting - True

Demofile.gz is a File Connection to a the file in a local directory.
Data is a File Connection to a local directory

Can you please tell me what I am doing wrong, I have successfully used
this component to unzip normal zip files but it is not working with
the gzip files?

I am using SSIS+ 1.3 SR 4

thanks

Sue

Ivan Peev

unread,
Aug 5, 2009, 7:57:01 PM8/5/09
to CozyRoc
Hi Sue,

There is only one change you have to make in the parameters. Set
CompressionType = File

Leave the other parameters intact.

SueF

unread,
Aug 5, 2009, 8:54:10 PM8/5/09
to CozyRoc
Ivan

Thanks for the quick response, the file seems to be decompressing but
I am now having a problem with the target even though the same
directory path worked when I was using a zip type.

I get the error:

Zip Task: An error occurred with the following error message: "Access
to the path 'C:\temp' is denied.".

I have checked the File connection details and also tried with a
variable but get the same error. It doesnt seem to matter what the
path is, i have tried a number of local paths.

thanks

Sue
> > Sue- Hide quoted text -
>
> - Show quoted text -

Ivan Peev

unread,
Aug 5, 2009, 9:13:22 PM8/5/09
to CozyRoc
Sue,

Set the target to the file name where you want your file extracted.
This is required only for CompressionType=File because there is single
file contained in the archive.

SueF

unread,
Aug 5, 2009, 9:21:48 PM8/5/09
to CozyRoc
Thanks Ivan fixes the problem for me.
> > > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages