IBM Support

IT29671: QUERY MIGHT FAIL WITH SQL0901N AND REASON "UNSUPPORTED LEAF NODE OF THE TREE"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Certain queries might fail with SQL0901N  and the following
    error message:
    
    SQL0901N  The SQL statement or command failed because of a
    database system
    error. (Reason "Unsupported leaf node of the tree".)
    SQLSTATE=58004
    
    The db2diag.log will report the following message:
    
    2019-03-08-16.08.31.205958+060 E191931A2426 LEVEL: Info (Origin)
    PID : 53412178 TID : 73866 PROC : db2sysc 0
    INSTANCE: DB2INST1 NODE : 000 DB : MYDB
    APPHDL : 0-44276 APPID: *LOCAL.XXXX.190308150637
    AUTHID : DB2INST1 HOSTNAME: MYHOST1
    EDUID : 73866 EDUNAME: db2agent (MYDB) 0
    FUNCTION: DB2 UDB, SW- common services, sqlnn_cmpl, probe:650
    MESSAGE : ZRC=0x803100AF=-2144272209=SQLNN_E_BADNEWS
    "unexpected error but state is OK"
    DATA #1 : String, 62 bytes
    An unexpected error was detected during statement compilation.
    DATA #2 : Boolean, 1 bytes
    true
    DATA #3 : Boolean, 1 bytes
    false
    DATA #4 : Boolean, 1 bytes
    true
    DATA #5 : Boolean, 1 bytes
    false
    DATA #6 : Hex integer, 4 bytes
    0x00000000
    DATA #7 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes
    sqlcaid : SQLCA sqlcabc: 136 sqlcode: -901 sqlerrml: 33
    sqlerrmc: Unsupported leaf node of the tree
    sqlerrp : SQLNQ4A0
    sqlerrd : (1) 0x801A006D (2) 0x00000000 (3) 0x00000000
    (4) 0x00000000 (5) 0xFFFFFE66 (6) 0x00000000
    sqlwarn : (1) (2) (3) (4) (5) (6)
    (7) (8) (9) (10) (11)
    sqlstate:
    DATA #8 : Hex integer, 4 bytes
    0x00000040
    DATA #9 : String with size, 724 bytes
    <query>
    DATA #10: String, 332 bytes
    Compiler error stack for rc = -2144272209:
    
    with the following stack:
    
    sqlnn_cmpl[370]
    sqlnr_exe[1200]
    sqlnr_rcc[100]
    sqlnr_seq[100]
    sqlnr_comp[110]
    sqlnr_optprep_action[100]
    sqlnr_optprep_chunk2[550]
    sqlnr_generate_between4eao[520]
    sqlnr_exists_augment[800]
    sqlnq_hxp::sqlnq_hxp_pid[40]
    sqlnq_qtb::add_head_exp[60]
    sqlnq_fun_tres[140]
    sqlnq_fun_res_walk[410]
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * all                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to Db2 11.1.4.6 or higher                            *
    ****************************************************************
    

Problem conclusion

  • Upgrade to Db2 11.1.4.6 or highera
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT29671

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-10

  • Closed date

    2021-03-31

  • Last modified date

    2022-03-29

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

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

    IT29706 IT30051

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RB10 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2022