promotional code for basket pipeline
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Content Selection Framework > promotional code for basket pipeline




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    promotional code for basket pipeline  
Shri


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-07-05 11:03 PM

Hi all,

i have an issue in implementing promotional codes in retail2002 app using FP
1

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_EMPT
Y
__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 18
719
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.









[ Post a follow-up to this message ]



    RE: promotional code for basket pipeline  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-08-05 07:51 AM

The documentation states that you need to provide some key that provides use
r
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 t
he
> basket im getting "Key cannot be null " in commerce .reserver promocodes i
m
> 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 ther
e
> 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_EM
PTY
> __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 returnin
g
> 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 loadbask
et
> failed exception.But when i restart my machine basket is fine.Not sure why
> this happens
>
>
> Please guide me,
>
> Thank you
> Shri.
>
>
>
>





[ Post a follow-up to this message ]



    RE: promotional code for basket pipeline  
Shri


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-05 07: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 u
ser
> 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:
> 





[ Post a follow-up to this message ]



    RE: promotional code for basket pipeline  
Ravi Shankar


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-11-05 12:51 PM

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 o
ne
> 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 t
ry
> 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:
> 





[ Post a follow-up to this message ]



    RE: promotional code for basket pipeline  
Shri


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-19-05 12:59 PM

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 on
e
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:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:04 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register