|
Home > Archive > Commerce Server General > August 2004 > Executing Total Pipeline in CS2002
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 |
Executing Total Pipeline in CS2002
|
|
| Ravi Shankar 2004-05-30, 10:45 am |
| This could be because
1. You do not have defined addresses for the current
logged in user
2. The state in your address does not translate to any
of the existing states in the database
3. You have not defined a blanket taxation plan for all
countries and states
HTH.
>-----Original Message-----
>When I execute the Total pipeline: oCart.RunPipeline(New
PipelineInfo("total"))
> in the shopping cart or at checkout I get the following
error:
>
>Component Execution failed for component[0x5] hr:
0x80004005 ProgID: Commerce.SampleRegionalTax.1
Dictionary error: Value for key 'region_code' in
dictionary '' missing (expected a variant of type 8)
(orderform=default)
>Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and
where it originated in the code.
>
>Exception Details: System.Exception: Component Execution
failed for component[0x5] hr: 0x80004005 ProgID:
Commerce.SampleRegionalTax.1 Dictionary error: Value for
key 'region_code' in dictionary '' missing (expected a
variant of type 8) (orderform=default)
>
>Thank you in advance for your help
>.
>
| |
|
| Thank you for your reply, here is the situation:
There is currently only one tax rate for California, the order has the same billing and shipping address in California, and I am not entirely sure what you mean by a blanket taxation plan, how would I set that up in BizDesk?
Regards,
Fadi
----- Ravi Shankar wrote: -----
This could be because
1. You do not have defined addresses for the current
logged in user
2. The state in your address does not translate to any
of the existing states in the database
3. You have not defined a blanket taxation plan for all
countries and states
HTH.
>-----Original Message-----
>When I execute the Total pipeline: oCart.RunPipeline(New
PipelineInfo("total"))
> in the shopping cart or at checkout I get the following
error:
0x80004005 ProgID: Commerce.SampleRegionalTax.1
Dictionary error: Value for key 'region_code' in
dictionary '' missing (expected a variant of type 8)
(orderform=default)[vbcol=seagreen]
>Description: An unhandled exception occurred during the
execution of the current web request. Please review the
stack trace for more information about the error and
where it originated in the code.
failed for component[0x5] hr: 0x80004005 ProgID:
Commerce.SampleRegionalTax.1 Dictionary error: Value for
key 'region_code' in dictionary '' missing (expected a
variant of type 8) (orderform=default)[vbcol=seagreen]
>.
>
| |
| DanielT 2004-08-10, 5:52 pm |
| You need to add the address to the Shopping cart like so:
Profile shippingAddressProfile;
....
OrderAddress ship = new OrderAddress("Shipping Address",
shippingAddressProfile);
shoppingCart.Addresses.Add(ship);
Also make sure you're setting country_code on the Profile.
--DanielT
|
|
|
|
|