IBM Support

LI77507: CMVC 230175 - DuplicateKeyException in WebSphere Commerce when publishing workspace task for tables SHPMODCLCD and CATENCALCD

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following error shows up in the IBM WebSphere Commerce logs
    while publishing a workspace task using the Workspace
    Administration Console:
    
    1.  CommerceSrvr E
    com.ibm.commerce.context.content.resources.ResourceContentEventL
    istener
    processActivityEvent(WCSEvent ae) CMN0409E: The following error
    occurred
    during processing:
    "{0}".com.ibm.commerce.context.content.resources.exception.Resou
    rceExcep
    tion: com.ibm.websphere.ce.cm.DuplicateKeyException: DB2 SQL
    Error:
    SQLCODE=-803, SQLSTATE=23505, SQLERRMC=2;DB2INST1.SHPMODCLCD ,
    DRIVER=4.3.111
    at
    com.ibm.commerce.context.content.resources.AbstractResourceManag
    erImpl.c
    ommit(AbstractResourceManagerImpl.java:1173)
    at
    com.ibm.commerce.context.content.resources.AbstractResourceConta
    inerImpl
    .commit(AbstractResourceContainerImpl.java:164)
    at
    com.ibm.commerce.context.content.resources.file.ManagedFileConta
    iner.com
    mit(ManagedFileContainer.java:108)
    at
    com.ibm.commerce.context.content.resources.ResourceContainerMana
    ger.comm
    it(ResourceContainerManager.java:531)
    at
    com.ibm.commerce.context.content.resources.ResourceContentEventL
    istener.
    processActivityEvent(ResourceContentEventListener.java:93)
    
    
    2.  CommerceSrvr E
    com.ibm.commerce.context.content.resources.ResourceContentEventL
    istener
    processActivityEvent(WCSEvent ae) CMN0409E: The following error
    occurred
    during processing:
    "{0}".com.ibm.commerce.context.content.resources.exception.Resou
    rceExcep
    tion: com.ibm.websphere.ce.cm.DuplicateKeyException: DB2 SQL
    Error:
    SQLCODE=-803, SQLSTATE=23505, SQLERRMC=2;DB2INST1.CATENCALCD,
    DRIVER=4.3.111
    at
    com.ibm.commerce.context.content.resources.AbstractResourceManag
    erImpl.c
    ommit(AbstractResourceManagerImpl.java:1173)
    at
    com.ibm.commerce.context.content.resources.AbstractResourceConta
    inerImpl
    .commit(AbstractResourceContainerImpl.java:164)
    at
    com.ibm.commerce.context.content.resources.file.ManagedFileConta
    iner.com
    mit(ManagedFileContainer.java:108)
    at
    com.ibm.commerce.context.content.resources.ResourceContainerMana
    ger.comm
    it(ResourceContainerManager.java:531)
    at
    com.ibm.commerce.context.content.resources.ResourceContentEventL
    istener.
    processActivityEvent(ResourceContentEventListener.java:93)
    
    
     The failure is related to the Unique Indexes in the tables
    SHPMODCLCD and CATENCALCD.  When publishing the workspace task,
    if there is already an entry in the staging database schema with
    the same Unique Index, the DuplicateKeyException will be thrown.
    

Local fix

Problem summary

  • USERS AFFECTED:
     When publishing content in  he tables SHPMODCLCD and
    CATENCALCD, ensure that there is no duplicate entry in the base
    schema for the Unique Indexes column.
    
     PROBLEM ABSTRACT:
     DuplicateKeyException is encountered in WebSphere Commerce when
    publishing a workspace task for the tables SHPMODCLCD and
    CATENCALCD
    
     BUSINESS IMPACT:
     WebSphere Commerce users on v7.0 who use the Workspace
    Administration Console .
    
     RECOMMENDATION:
    

Problem conclusion

  • Installing APAR JR39100 can resolve the DuplicateKeyException
    issue by replacing the duplicated entry in the staging base
    schema so that the new entry published will be committed.
    
     -------------------------------------------------------------
     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

    LI77507

  • Reported component name

    WC BUS ED ILINU

  • Reported component ID

    5724I3804

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive

  • Submitted date

    2013-08-19

  • Closed date

    2013-10-10

  • Last modified date

    2013-10-10

  • 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 ED ILINU

  • Fixed component ID

    5724I3804

Applicable component levels

  • R600 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":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 October 2013