Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. z36_id2: cannot CREATE UNIQUE INDEX

    z36_id2: cannot CREATE UNIQUE INDEX

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Description:
    You see these messages in trying to load or index z36 records:

    CREATE UNIQUE INDEX IOT50.Z36_ID2 ON IOT50.Z36 (Z36_NUMBER ASC) *
    ERROR at line 1:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Resolution:
    These messages indicate that the z36 file contains duplicate z36_id2 values. The z36_id2 is built on the z36_number (a unique number for each loan). Its value should be obtained from the z52 (util g 2).

    But what we found in this database, by doing sql:

    select z36_number from z36 group by z36_number having count (*) > 1;

    was that there were 12 z36 records which had '000000000' for their z36_number. We did this sql to change it to a unique value:

    update z36 set z36_number = substr(z36_rec_key,7,9) where z36_number = '000000000';

    We were then able to do util a/17/2 for z36_id2 to create the z36_id2.

    [See also KB 8192-2155, a related problem.]

    Additional Information

    faq


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • z36_id2 unique constraint error
      • z36_letter_date not updated by Courtesy Notice job
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved