IBM Support

JR56014: Shoppers who have coupons from deleted promotions cannot acquire new coupons for promotions with per-shopper redemption limit

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Shoppers who have been given coupons for a promotion which has
    since been deleted will be unable to receive coupons for any
    other promotion that has per-shopper limits.
    
    While checking that the shopper has not yet reached the limit
    for the new coupon's promotion, existing coupons in the
    shopper's wallet are matched to their corresponding promotions.
     When a deleted promotion is encountered, a NullPointerException
     is raised and processing ends before issuing the new coupon.
    
    Sample trace entry that indicates this issue has occurred:
    
    [6/21/16 13:35:41:909 EDT] 000000c5 PromotionAppl 1   [Major
    error code: -2700, Minor error code: 0
    Error message: No coupons and be issued for this promotion.
    Exception is:
    com.ibm.commerce.marketing.promotion.persistence.PersistenceObje
    ctReadException: java.lang.NullPointerException
    Promotion is: Your promotion name-10005602, Version=N,
    Revision=N]
    

Local fix

  • Execute the follow SQL statements to remove all coupon entries
    from the PX_COUPON table that are associated with promotions
    that are deleted or marked for deletion:
    
    /*Promotions that have been deleted*/
     delete from px_coupon where name not in (select name from
    px_promotion)"
    
    /*Promotions that have been marked for deletion*/
    delete from px_coupon where name in (select name from
    px_promotion where status=2)
    

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 and Version 8 business users who
    use marketing activities to issue coupons that are associated
    with promotions with 'per shopper limit' field defined and have
    also deleted promotions that have coupons issued to shoppers.
    
    PROBLEM ABSTRACT:
    Shoppers who have coupons from deleted promotions cannot acquire
     new coupons for promotions with per-shopper redemption limit
    
    BUSINESS IMPACT:
    Shopper cannot acquire new coupons for promotions that
    specifically has 'per shopper redemption limit' set if there is
    already a coupon in shopper's wallet that is associated with a
    deleted promotion.
    
    RECOMMENDATION:
    

Problem conclusion

  • Logic was altered to bypass the deleted promotions when checking
     redemption limits, avoiding the null pointer situation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR56014

  • Reported component name

    WC COM PROF ED

  • Reported component ID

    5724I4000

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive / Xsystem

  • Submitted date

    2016-05-27

  • Closed date

    2016-08-02

  • Last modified date

    2016-08-02

  • 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 COM PROF ED

  • Fixed component ID

    5724I4000

Applicable component levels

  • R700 PSY

       UP

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

Document Information

Modified date:
12 December 2021