System Error: The parameter is incorrect
A free file archiver for extremely high compression
Brought to you by:
ipavlov
Hi Igor,
Please help me. We are trying to using 7zip to compress a folder on a network share and getting the following error not sure what parameter is incorrect? Please let me know how I can get more details on which parameter to fix?
7z.exe :
At line:1 char:1
+ & 'C:\Program Files\7-Zip\7z.exe' a -t7z -spf2 -r -bb3 -mx1 -v4700g \ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
System ERROR:
The parameter is incorrect.
The following command line works for me:
7z a -t7z -spf2 -r -bb3 -mx1 -v4700g test.7z files
Could you provide the full command (with dummy file names) and 7-Zip's output (from version and up to the first file name)?
Hello,
Yes the command works for us for the great majority of our folders. Even the folder that results in the error seems to progress for a while and then errors out.
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
4047 folders, 24153 files, 8835363264 bytes (8427 MiB)
Creating archive: \hosvmbkdrn01\CIFS_DASTOBKPDM01_Cache\NFS_hossohspdl11_data.7z
Add new data to archive: 4047 folders, 24153 files, 8835363264 bytes (8427 MiB)
Continues adding files. Ends with:
7z.exe :
At line:1 char:1
System ERROR:
The parameter is incorrect.
This error cannot come from command line parser, otherwise 7-Zip would stop before the first file. You may want to check file system restrictions (e.g. your archive exceeds 4 GB on a FAT-formatted drive) and disk quotas. Or it may be a bug in 7-Zip's filter. Can you compress that
lbuilder
apart from other files?Hi there,
Thanks for your suggestion. I just tried it via the gui on that one file and noticed that it errors out with access denied. I see now that it's not a 7zip issue but an issue with actually accessing the file. I was wondering if it's possible to have 7zip continue adding additional file even if an error is encountered with some of them?
I appreciate your help. I will try to figure out the access problem which I'm sure when then allow 7zip to continue.
Thanks,
Matt.
Hello, I just tested something. I tried running windows zip on a volume that 7zip errored out on with System Error parameter is incorrect. The windows zip is able to create the zip archive with all files, however, 7zip errors out on one of the files.
This is the file 7zip dies on:
7z.exe :
At line:1 char:1
System ERROR:
The parameter is incorrect.
When I try to run from 7zip gui on just that one file. It errors with the same error Parameter is incorrect. I am able to copy the file it errors on and am able to archive with the default windows zip that comes with windows.
Typically, if 7-Zip cannot open a file, it issues a warning and continues archive creation. Let Igor Pavlov comment that. It may be interesting which error is returned by Windows (you can find that out with Procmon or debugger). You can also try the
-ssw
switch; however I don't think it will help in this particular case.OK thanks! I wanted to also mention one other volume we encountered this error on. This one is different in that the original job threw the same System ERROR An internal error occurred message just like the other volumes. However, when I retried run 7zip via gui and adding this file to an archive it worked without any issues. So it's very strange not sure why it would have thrown that internal error the first time?
7z.exe :
At line:1 char:1
System ERROR:
An internal error occurred.