Product Documentation

Knowledgebase

Previous Topic

Next Topic

File Rebuild Fails

A file rebuild operation may fail for various reasons. Examples include:

  • The IFIL resource in the data file is missing or damaged.
  • The data file cannot be opened (for example, if the header of the file is corrupted).
  • The rebuild detects illegal duplicate key values.

When a rebuild fails, check the return code of the FairCom DB API function used to rebuild the file and consult the FairCom DB Function Reference Guide entry for that function to determine the appropriate action.

The ctrbldif utility can be used to rebuild a file that contains a valid IFIL resource. The utility opens the data file and retrieves the IFIL resource from the file. If the utility cannot read the IFIL resource, it prompts for the name of a file containing a good copy of the IFIL resource. Consider saving a copy of the file containing the IFIL resource for use in such a situation.

The ctrbldif utility and FairCom DB rebuild API functions support an option to handle the presence of illegal duplicate keys by marking records containing duplicate key values as deleted.

If a file rebuild fails and no solution is found which allows the rebuild to complete successfully, re-create the file and reload the data from an external source if available, or restore a backup copy of the file.

TOCIndex