Correcting Data if a Reorganization Fails

Reorganization maintains a backup copy of all databases files involved in the reorganization. If the reorganization encounters an error, these backup files are used to restore the database.

When something goes wrong during a schema instantiation, you can perform one of the following actions.

If your reorganization fails because of a data error (for example, you have duplicate keys in a collection class that does not allow them or there is an invalid reference), the following error is most likely to be displayed.

3101  Unable to reorganize class - refer to jomreorg.log

Your reorganization log file contains the class in which the error occurred, to enable you to correct your data before actioning a successful reorganization, as follows.

  1. Check your reorganization log file, to determine the class or classes that contains the error or errors.

  2. Write some code to correct the data (for example, by using a method in the JadeScript class).

  3. Initiate the reorganization of your schema again. (For details, see "Performing a Reorganization", in Chapter 3 of the JADE Development Environment User’s Guide and the following section.)