#### Formulas and summaries

The Catalog Doctor can be used to diagnose formulas and summaries in the following aspects:

- Finding all the formulas and summaries in the catalog
  Expand the Formulas and Summaries node on the resources tree. The formulas and summaries in the catalog will be listed in the tree. They will be sorted by their validity and names. If the icon of a formula/summary is marked by a cross, it means it is invalid (it fails on compiling).
- Finding the compile Error message of a formula/summary
  Select the formula/summary that is to be checked. The compile error messages will then be displayed in the Error panel.
- Replacing a mapping field with another in formulas and summaries
  A frequent error is caused when the mapping fields are not found in a catalog. In which case, you will need to replace the mapped field in formulas/summaries with a valid one.
  1. Select the formula/summary that contains unknown fields on the resource tree.
  2. Click the Replace All button in the Error panel. The Replace dialog appears.
  3. Input the field name that is to be replaced in the Mapping Name text box.
  4. Click the Browse button, the Mapping Fields Browse dialog appears.
  5. In the Tree View tab, you can select an existing field to replace the unknown field.
  6. In the List View tab, you will see the mapping fields in alphabetical order and the type for each mapping field. If the mapping field is a DBField, you will see the tables/views it belongs to. Select the field you want to use as a replacement and click OK.
  7. Click the Replace button in the Replace dialog.
- Editing a formula/summaries
  Select the formula/summary to be edited, and click the Edit button in the Error panel.
- Removing formulas/summaries
  Select the formulas/summaries that are to be removed, then, do one of the following:
  - Right-click and on the shortcut menu, click Delete.
  - Click the Delete button on the toolbar.
  - Press the Delete key on your keyboard.