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 unique constraint error

    z36_id2 unique constraint error

    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:
    We see these messages in the pc_server log:

    Oracle error: io_z36_write
    ORA-00001: unique constraint (xxx50.Z36_ID2) violated

    Resolution:
    The z36_id2 is built on the z36_number (a unique number for each loan). Its value is obtained from the z52 (util g/2) last-loan-number counter. This value needs to be equal to or higher than the z36_number of any existing z36 record. You can use this SQL to find the highest z36_number:

    SQL-xxx50> select max (z36_number) from z36;

    If this number is higher than the last-loan-number, then use util g/2 Update to make the last-loan-number higher.

    Note that the ./com_io/io_z36 program reads the last-loan-number, increments the counter, and writes the z36. If there is an error (such as the preceding), the program will re-read the z52 up to 1000 times, getting a new last-loan-number each time, in trying to find a number that works. Thus, though the "unique constraint ... Z36_ID2" message appears in the log, the program may eventually acquire a unique number and loan the item successfully.

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

    Additional Information

    faq


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • z36_effective_due_date is always zero
      • z36_id2: cannot CREATE UNIQUE INDEX
    • 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