IBM Support

RS03606: RUNNING PROGRESSIVE MIGRATION SCRIPT THROWS AN SQLEXCEPTION ABOUT INVALID FOREIGN KEY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Running progressive migration script throws following error
    :
    
    ALTER TABLE ILOG89.BASELINE ADD CONSTRAINT BSLN_PARENT
    FOREIGN KEY (PARENT) REFERENCES ILOG89.BASELINE ON DELETE
    CASCADE
    DB21034E The command was processed as an SQL statement
    because it was not a
    valid Command Line Processor command.
    During SQL processing it returned:
    SQL0667N The FOREIGN KEY
    "BSLN_PARENT" cannot be created because the table
    contains
    rows with foreign key values that cannot be found in the parent
    key
    of the parent table. SQLSTATE=23520
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users running progressive migration script.                  *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Running progressive migration script throws following error  *
    * :                                                            *
    *                                                              *
    * ALTER TABLE ILOG89.BASELINE ADD CONSTRAINT BSLN_PARENT       *
    * FOREIGN KEY (PARENT) REFERENCES ILOG89.BASELINE ON DELETE    *
    * CASCADE                                                      *
    * DB21034E The command was processed as an SQL statement       *
    * because it was not a                                         *
    * valid Command Line Processor command. During SQL processing  *
    * it returned:                                                 *
    * SQL0667N The FOREIGN KEY "BSLN_PARENT" cannot be created     *
    * because the table                                            *
    * contains rows with foreign key values that cannot be found   *
    * in the parent key                                            *
    * of the parent table. SQLSTATE=23520                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The script is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    RS03606

  • Reported component name

    WS DECISION CTR

  • Reported component ID

    5725B6900

  • Reported release

    892

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-04-09

  • Closed date

    2020-04-15

  • Last modified date

    2020-04-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WS DECISION CTR

  • Fixed component ID

    5725B6900

Applicable component levels

  • R892 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"892","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 November 2021