IBM Support

IC98170: 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 inserting 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 10.1FP4.                                      *
    ****************************************************************
    

Problem conclusion

  • First fixed in Version 10.1FP4.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC98170

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-06

  • Closed date

    2014-12-15

  • Last modified date

    2014-12-15

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

    IC97460

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • RA10 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 10.1

Reference #: IC98170

Modified date: 15 December 2014