Solution - ArcFM – Bug CLS-56779 – Create Favorites Drop Down List Fails if there is a Spatial View in the Database.

Version 8

    Behavior

     

    The error below occurs in the following edit scenario in the ArcFM System Favorites Manager in ArcCatalog:

    1. Create Favorite is selected from the right click menu of a category in the Compatible Units or Features tab.
    2. The dropdown list is selected in the Select a Target dialog.

     

    MMFavoritesEditor

    Run-time error '13':

     

    frmSelectFC.mmlcSnapLike_DropDown

    MMClassSubtypeCombo.LoadClassSubtypes

    MMClassSubtypeCombo.NewClassSubtype

    Type mismatch

    Error at line: 558 - Build: 10.21.1102

    Error at line: 387 - Build: 10.21.1102

    Error at line: 232 - Build: 10.21.1102

     

    MM51539.jpg

     

    This bug has been found in ArcFM 10.1 and up.

     

    Cause

     

    • In ArcCatalog – This is caused by a spatial view table that is present in the sde database.
    • In ArcMap – This is caused by a spatial view table that is present in the stored display.

     

     

    Work Around

     

    When the database contains one or more spatial view tables, favorites can only be created in ArcMap. To create the favorites in ArcMap:

    1. Open ArcMap and log in to ArcFM as a user with permissions to create system favorites.
    2. Open a stored display. If the stored display contains a spatial view table, remove it, or open a different stored display that does not contain a spatial view table.
    3. Start editing by opening a session for Session Manager, or opening a design in Designer.
    4. If using Session Manager, create the favorite in the Features tab of the Table of Contents.
    5. If Designer is being used, create the favorite in the CU tab of the Table of Contents.

    Note for CU favorites:

    It is not possible to create CU favorites in the Compatible Units category in ArcMap. They may be created using these steps:

      1. Create the CU favorite in the System Favorites category in the CU tab of ArcMap.
      2. Save the design.
      3. In ArcCatalog, start the ArcFM System Favorites Manager.
      4. Select the Compatible Units tab.
      5. Find the CU favorite that was just created in the System Favorites category.
      6. Right click on it and select Copy.
      7. Find the category to add it to in Compatible Units, right click on it and select Paste.
      8. Delete the favorite from the System Favorites category.
      9. Save the favorites.

     

      6.  Save the session or design to save the favorite edits.

     

     

    *Note: This error does not occur when creating a composite favorite.