IBM Support

JR49600: CMVC 234687 - Sorting gift registry results by EVENTDATE DESC fails

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Setting the value of sortByFieldName to EVENTDATE DESC results
    in invalid SQL causing an error like the following:
    
     [2/14/14 4:34:21:969 CST] 00000049 WC_GIFTREGIST 2
    com.ibm.commerce.giftregistry.beans.GiftRegistrySearchDataBeanBa
    se executeSimilarMatchesSearchOnDB2() An exception was caught
    while running the similar matches query. Returning null.
     [2/14/14 4:34:21:970 CST] 00000049 WC_GIFTREGIST 2
    com.ibm.commerce.giftregistry.beans.GiftRegistrySearchDataBeanBa
    se executeSimilarMatchesSearchOnDB2()
    com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error:
    SQLCODE=-206, SQLSTATE=42703, SQLERRMC=EVENTDATE, DRIVER=4.12.55
    

Local fix

  • Set the sortByFieldName value to EVENTDESC which will return the
     results in ascending order
    

Problem summary

  • USERS AFFECTED:
     WebSphere Commerce v7 users who are using the sortByFieldName
    parameter with a DESC value
    
     PROBLEM ABSTRACT:
     Sorting gift registry results by EVENTDATE DESC fails
    
     BUSINESS IMPACT:
     Low - cannot control the order in which the results are sorted
    
     RECOMMENDATION:
    

Problem conclusion

  • The code has been updated to allow the SQL to be formed
    correctly
     -------------------------------------------------------------
     The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
     http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR49600

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-12

  • Closed date

    2014-06-23

  • Last modified date

    2014-06-23

  • 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

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021