Menu

#357 System Error: The parameter is incorrect

open
None
3
2020-05-05
2020-05-04
Matthew Koo
No

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.

Discussion

  • Shell

    Shell - 2020-05-04

    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)?

     
  • Matthew Koo

    Matthew Koo - 2020-05-04

    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)

    • C$\NFS_hossohspdl11_data_BackupInProgress\java\bin\appletviewer
    • C$\NFS_hossohspdl11_data_BackupInProgress\java\bin\apt

    Continues adding files. Ends with:

    • C$\NFS_hossohspdl11_data_BackupInProgress\oracle\Middleware\Oracle_WT1\bin\lbuilder
      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.

     
  • Shell

    Shell - 2020-05-05

    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?

     
  • Matthew Koo

    Matthew Koo - 2020-05-05

    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.

     
  • Matthew Koo

    Matthew Koo - 2020-05-05

    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:

    • C$\DAILXAPPDL01_u02_BackupInProgress\ps_ext_dir\logs\activemq-curve-data-extractor.log
      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.

    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.

     
  • Shell

    Shell - 2020-05-05

    I just tried it via the gui on that one file and noticed that it errors out with access denied

    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.

     
  • Matthew Koo

    Matthew Koo - 2020-05-05

    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?

    • C$\sm_kingdom_segydata_BackupInProgress\kingdom_segydata\AASPI\PENNSYLVANIA\GREENZWEIG_BRADFORD\OUTPUT\Katie\04\04_GNZRaw_dipmag_imgfilt3d.segy
      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:
    An internal error occurred.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.