HibernateSystemException: "query did not return a unique result" when performing label/space operations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.2
    • Affects Version/s: 2.1.2, 2.1.3
    • Component/s: None

      This is a symptom of CONF-5254, when duplicate labels exist on the system. An error like this may appear:

      HibernateSystemException: query did not return a unique result: 2

      The following query can be used to identify the offending labels:

      select name, labelid from label group by name, labelid having count(name) > 1

      and any duplicate labels can then be removed from the LABEL table. Relationships in the CONTENT_LABEL table will have to be mapped to the remaining label ID.

              Assignee:
              Unassigned
              Reporter:
              Jeremy Higgs
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: