Error: Duplicate entity name detected

This message is generated when the Migration Utility detects duplicate component entities in a component.

Problem

It is possible for duplicate entities to exist in a component, although this is an error in both Uniface 9 and Uniface 10. In Uniface 9, such components could not be compiled. In Uniface 10, this is fatal error because of the name conflict.

The Migration Utility cannot resolve this because it cannot determine which entity should be used. It generates a fatal error and removes the component from the Repository:

Resolution

To resolve this issue, you must correct the component in Uniface 9 before migrating it again.

Sample Message

=== MIGRATION ERROR [cpt:MYCOMPONENT] ===
        Failed to migrate cpt:MYCOMPONENT. Object will be removed from the repository.
          ErrorID: -100001
          Error  : Duplicate entity name detected
          Context information:
              [context]
                [entity] = "MYENT.MYNAMESPACE"
      Removed cpt:MYCOMPONENT from repository