Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1946

After changing model to replace primary key with a unique key, the deployment of the vdb errors saying PrimaryKey does not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.7
    • 7.4
    • Query Engine
    • None

      In designer, I removed a primary key and replaced it with a unique key, and changed the foreign key to now reference the unique key, and all built with no errors. When deploying vdb to server, you see this exception (partial, see attachment for full log):

      Caused by: mmuuid:15f67b60-e387-4092-bbc5-0b7726585f52 PrimaryKey does not exist.
      at org.teiid.metadata.index.IndexMetadataFactory.getPrimaryKey(IndexMetadataFactory.java:353)
      at org.teiid.metadata.index.IndexMetadataFactory.getTables(IndexMetadataFactory.java:295)

        1. dummy-ds.xml
          0.6 kB
          Van Halbert
        2. server.log
          255 kB
          Van Halbert
        3. Trade.vdb
          7 kB
          Van Halbert

              rhn-engineering-shawkins Steven Hawkins
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: