IBM Support

IC97460: MERGE COMMAND WITH INSERT IN XML COLUMN RETURN ERROR SQL16084N

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Merge command with insert  in xml column return error SQL16084N.
    
    When run a sql command like example below with a insert in a xml
    column:
    
    MERGE INTO
    WHEN NOT MATCHED
    THEN INSERT (XML_column) VALUES ( '<Cust><addr></addr></Cust>')
    
    Return Error:
    
    DB21034E  The command was processed as an SQL statement because
    it was not a
    valid Command Line Processor command.  During SQL processing it
    returned:
    SQL16084N  An assigned value in the copy clause of a transform
    expression is
    not a sequence with exactly one item that is a node. Error
    QName=err:XUTY0013.
    SQLSTATE=10705
    

Local fix

  • The error will stop to happen after insert the first record in
    the table with xml column, after that the merge command can run
    without problem.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Problem Description above.                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 10.                      *
    ****************************************************************
    

Problem conclusion

  • First Fixed in Version 9.7 Fix Pack 10.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC97460

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-06

  • Closed date

    2014-10-22

  • Last modified date

    2014-10-22

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

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

    IC98170 IC98175

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC97460

Modified date: 22 October 2014