IBM Support

PH04677: ERROR WHEN USING COUNT DISTINCT NESTED IN USER-DEFINED FUNCTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • Nesting a count distinct aggregation within a user defined
    function in a report fails with RSV-VAL-0010 Failed to load the
    report specification. XQE-DAT-0001 Data source adapter error:
    com.ibm.db2.jcc.am.SqlSyntaxErrorException: Invalid use of
    keyword DISTINCT or ALL with function "COUNT" for Dynamic Query
    Mode against DB2.
    
    The same has been working fine in Compatible Query Mode.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users                                                    *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to IBM Cognos Analytics 11.1.2                       *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH04677

  • Reported component name

    COG REPORT STUD

  • Reported component ID

    5724W12RS

  • Reported release

    B0A

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-10-30

  • Closed date

    2019-06-05

  • Last modified date

    2019-06-05

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

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

Fix information

Applicable component levels



Document information

More support for: Cognos Analytics
Report Authoring v11x

Software version: B0A

Reference #: PH04677

Modified date: 05 June 2019