DIET ( ArchiveManager ) error: File 'file.arc' has a bad check sum (Article # 279)
View products that this article applies to.
Problem:
DIET ( PARE DIET, ArchiveManager ) can throw the following error:
ERROR - File 'zip.arc' has a bad check sum
Resolution:
DIET requires that archive files have a proper checksum when performing a purge operation.This is meant to help deter rogue developers from mistakenly deleting data.
A checksum is a form of redundancy check, a simple way to protect the integrity of data by detecting errors in data that are sent through space (telecommunications) or time (storage). It works by adding up the basic components of a message, typically the asserted bits, and storing the resulting value.
More info on checksums can be found here: http://en.wikipedia.org/wiki/Checksum
After altering a purge/archive directives file, you must update the checksum in order to use the file during a purge or archive operation.
To update the checksum
1. If a checksum does not already exist for the file, add this comment at the top of the purge/archive directives file:
/* THE CHECKSUM FOR THIS FILE IS: 68B8 */
2. From a command line, use the -checksum command parameter to update a purge/archive directives file. For example:
diet -archive -directive gen_case.arc -checksum <DietLicenseKey>
In this example, a new checksum will be generated for the gen_case.arc file, and the archive will not be run.
Note: To use the -checksum parameter, you must have write permission to the file. This permission requirement prevents any unauthorized creation of purge/archive directives files.
Applies To:
-
ArchiveManager – Dovetail ArchiveManager (formerly Data Import Export Tool)