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. ETL error: ORA-00001: unique constraint (.) violated

    ETL error: ORA-00001: unique constraint (.) violated

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • Article Type: General
    • Product: Aleph
    • Product Version: 2

    Description:
    In our last ETL p_arc_01 process (full ETL) we noticed some errors in the log. In the log file : abc50 $data_scratch/p_arc_01_transform.log:

    PROCESS_CODE TASK_CODE ERROR_MESSAGE

    8296 684 ORA-00001: unique constraint (.) violated
    8296 684 ORA-00001: unique constraint (.) violated
    8296 684 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated
    8296 1001 ORA-00001: unique constraint (.) violated

    Resolution:
    The "unique constraint violated" errors are coming from the process of copying the extracted values from Aleph into the "STG_" tables. The extract process gets information from Aleph libraries as well as Aleph tables and loads it into ARC tables prefixed with "MRR_" (for mirror). These tables allow for duplicate keys to be inserted, as they are never used for reports. However, when the records in the MRR tables are loaded into the STG tables, there can be no duplicates. So, for each duplicate value in the MRR tables, there will be an error message that says that a unique constraint has been violated. In other words, the records must all have unique keys, but the process has tried to insert a duplicate key and that is not allowed.

    The unique constraint errors from the 1001 step are all duplicate records that appear in your tab_base file. It appears that these bases are included more than once (BC, LOC, OHIOLINK, SIMON, and OXFORD (3 times)). If you remove these duplicate entries, I believe those errors will be eliminated. The errors from the 684 step are related to Budget Groups.

    I have not yet been able to figure this out completely, but it appears that perhaps you have Budget Groups such as MON, SER and OTH that have names in both English and French. I'm not sure that there is anything you would want to do about that or if eliminating those would even make a difference. In any case, these particular errors are completely unimportant and can be ignored. The fact that a duplicate record exists means that there is at least one record in ARC for each defined Budget Group and each defined Base, so you won't miss any data no matter what.


    • Article last edited: 10/8/2013
    View article in the Exlibris Knowledge Center
    1. Back to top
      • ETL (p_arc_01): locking or not locking?
      • ETL errors: 'no space left on device' regarding disk space on Aleph server
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 2
      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