IBM Support

JR44369: CMVC 224386 - THIS FIX IS TO PREVENT ORA-01795 EXCEPTION IN GETCATALOGENTRYATTRIBUTESCMDIMPL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When there are a large number of catentries in a product set, an
    error similar to the following may be seen when adding an item
    to the cart when an Oracle database is being used with WebSphere
     Commerce:
    
    CWXFD2003E: Exception executing query "SELECT CATENTRY_ID_1 FROM
    ( SELECT CATENTRY.CATENTRY_ID CATENTRY_ID_1 FROM CATENTRY WHERE
    CATENTRY.CATENTRY_ID IN (?)  AND CATENTRY.MARKFORDELETE = 0  AND
    ( EXISTS (SELECT 1 FROM PRODUCTSET, PRSETCEREL WHERE
    PRODUCTSET.MARKFORDELETE=0 AND
    PRODUCTSET.PRODUCTSET_ID=PRSETCEREL.PRODUCTSET_ID AND
    PRODUCTSET.PRODUCTSET_ID IN
    ...
    Caused by: java.sql.SQLSyntaxErrorException: ORA-01795: maximum
    number of expressions in a list is 1000
    
    This issue is caused by a limitation with Oracle databases.  If
    a product set has more than 1000 catalog entries, the Oracle
    database will throw the above exception.
    

Local fix

Problem summary

  • USERS AFFECTED:
    All users using Oracle database with large product sets
    
    PROBLEM ABSTRACT:
    'SQLSyntaxErrorException: ORA-01795: maximum number of
    expressions in a list is 1000' error may appear when adding an
    item to cart
    
    
    BUSINESS IMPACT:
    Cannot complete orders
    
    RECOMMENDATION:
    

Problem conclusion

  • This ifix changes the query used by creating multiple expression
     lists with OR conditions, keeping each expression list size to
    1000.
    -------------------------------------------------------------
    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

    JR44369

  • 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

    2012-10-12

  • Closed date

    2013-04-03

  • Last modified date

    2013-04-03

  • 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"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
03 April 2013