Content Selection Framework - promotional code for basket pipeline

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > April 2005 > promotional code for basket pipeline





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author promotional code for basket pipeline
Shri

2005-04-07, 6:03 pm

Hi all,

i have an issue in implementing promotional codes in retail2002 app using FP1

Im trying to use the promotional code functionality i accociated a coupon
code and incorporated all code explainied in the FP1 help file but i run the
basket im getting "Key cannot be null " in commerce .reserver promocodes im
pasting the pipeline log file..just last few lines..the promo_codes single
list is set and promo code no is 1234567890 (its a public coupon) .Is there
any information i missed to set?

PIPELINE:++ component[0x8] about to be called ProgID:
Commerce.ReservePromoCodes
RootObject: ReadValue promo_codes VT_DISPATCH PV=[0xf0502b8] VT_EMPTY
__empty__
RootObject: ReadValue promo_code_info VT_DISPATCH PV=[0xa168fc0] VT_EMPTY
__empty__
promo_codes: ReadItem 0 VT_BSTR 1234567890 VT_EMPTY __empty__
promo_codes: ReadItem 1 VT_EMPTY __empty__ VT_EMPTY __empty__
PIPELINE:-- component [0x8] returned hr: 0x80004003, IErrorLevel=4 in 18719
milliseconds
Error Description: Component Execution failed for component[0x8] hr:
0x80004003
ProgID: Commerce.ReservePromoCodes
Key cannot be null.
Parameter name: key
PIPELINE:-- 2005/04/07 17:49:49.0593 Pipeline Execution completed returning
hr: 0x80004003
i: 0x9
hrLoop: 0x80004003
*plErrorLevel: 1000

Sink stopped at 2005/04/07 17:49:49.0593


Also after this my basket is not populating at all im getting the loadbasket
failed exception.But when i restart my machine basket is fine.Not sure why
this happens


Please guide me,

Thank you
Shri.




Ravi Shankar

2005-04-08, 2:51 am

The documentation states that you need to provide some key that provides user
identity... in the example they've used the e-mail (excerpt from the Help
File given below)

// Promo_user_identity is an alternate identifier for the
// current user. A match of the user identity may be
// required for Restricted codes.
of["promo_user_identity"] = userEmail;

In you code this seems to be missing

"Shri" wrote:

> Hi all,
>
> i have an issue in implementing promotional codes in retail2002 app using FP1
>
> Im trying to use the promotional code functionality i accociated a coupon
> code and incorporated all code explainied in the FP1 help file but i run the
> basket im getting "Key cannot be null " in commerce .reserver promocodes im
> pasting the pipeline log file..just last few lines..the promo_codes single
> list is set and promo code no is 1234567890 (its a public coupon) .Is there
> any information i missed to set?
>
> PIPELINE:++ component[0x8] about to be called ProgID:
> Commerce.ReservePromoCodes
> RootObject: ReadValue promo_codes VT_DISPATCH PV=[0xf0502b8] VT_EMPTY
> __empty__
> RootObject: ReadValue promo_code_info VT_DISPATCH PV=[0xa168fc0] VT_EMPTY
> __empty__
> promo_codes: ReadItem 0 VT_BSTR 1234567890 VT_EMPTY __empty__
> promo_codes: ReadItem 1 VT_EMPTY __empty__ VT_EMPTY __empty__
> PIPELINE:-- component [0x8] returned hr: 0x80004003, IErrorLevel=4 in 18719
> milliseconds
> Error Description: Component Execution failed for component[0x8] hr:
> 0x80004003
> ProgID: Commerce.ReservePromoCodes
> Key cannot be null.
> Parameter name: key
> PIPELINE:-- 2005/04/07 17:49:49.0593 Pipeline Execution completed returning
> hr: 0x80004003
> i: 0x9
> hrLoop: 0x80004003
> *plErrorLevel: 1000
>
> Sink stopped at 2005/04/07 17:49:49.0593
>
>
> Also after this my basket is not populating at all im getting the loadbasket
> failed exception.But when i restart my machine basket is fine.Not sure why
> this happens
>
>
> Please guide me,
>
> Thank you
> Shri.
>
>
>
>

Shri

2005-04-11, 2:49 am

Hi Ravi,

Thanks for the reply i got that problem solved. It was my mistake passed one
more empty string in promocode simple list.I got discounts reflected. But i
have a major problem now.

Most of the times i get failed to initialize basket exception whenever i try
to access the cart.In GetBasket method im geting this exception.when i
restart the machine and run it will be ok but after twice or thrice when i
visit the page then all will be blank ill get "Failed to initialize basket".
What does this mean a memory issue or something else.

Please help me out. I searched for this i didnt get any information at all.

Thanks,
Shri.

"Ravi Shankar" wrote:
[vbcol=seagreen]
> The documentation states that you need to provide some key that provides user
> identity... in the example they've used the e-mail (excerpt from the Help
> File given below)
>
> // Promo_user_identity is an alternate identifier for the
> // current user. A match of the user identity may be
> // required for Restricted codes.
> of["promo_user_identity"] = userEmail;
>
> In you code this seems to be missing
>
> "Shri" wrote:
>
Ravi Shankar

2005-04-11, 7:51 am

That smells of a permissions issue. Check
1. DTC
2. IIS Site Permissions
3. COM+ Commerce Service Permissions
4. SQL Permissions for ASPNET/IIS Service Account

"Shri" wrote:
[vbcol=seagreen]
> Hi Ravi,
>
> Thanks for the reply i got that problem solved. It was my mistake passed one
> more empty string in promocode simple list.I got discounts reflected. But i
> have a major problem now.
>
> Most of the times i get failed to initialize basket exception whenever i try
> to access the cart.In GetBasket method im geting this exception.when i
> restart the machine and run it will be ok but after twice or thrice when i
> visit the page then all will be blank ill get "Failed to initialize basket".
> What does this mean a memory issue or something else.
>
> Please help me out. I searched for this i didnt get any information at all.
>
> Thanks,
> Shri.
>
> "Ravi Shankar" wrote:
>
Shri

2005-04-19, 7:59 am

Hi Ravi,

I figured out the problem. That was actually the marshalled data in basket
group was wrongly saved for that particular user.(im not sure why though..i
deleted that row and created a new basket from then it works fine) May be one
of discount definition is wrong earlier.

Fine i was just proceeding with GWP.I heard that FP1 there is no direct
support for GWP howover using the documentation i can able to obtain the
expression that qualifies for discount.(say expression id).I just want to
know using this how do i get to know what are the products or category
affected that i need to add to basket through coding. i can able to see in
the mktg_expression table "u_expr_prodpicker_category_id" and
"u_expr_prodpicker_product_id" do i have to manually query these table and
get the results or is there any other way to do it effeciantly.

Thanks,
Sridhar S

"Ravi Shankar" wrote:
[vbcol=seagreen]
> That smells of a permissions issue. Check
> 1. DTC
> 2. IIS Site Permissions
> 3. COM+ Commerce Service Permissions
> 4. SQL Permissions for ASPNET/IIS Service Account
>
> "Shri" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com