Commerce Server General - Exception when running basket pipeline...

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > January 2006 > Exception when running 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 Exception when running basket pipeline...
ams8764@netscape.net

2006-01-06, 5:54 pm

We are using Commerce Server 2002 SP3 in an ASP.NET 1.1 application
running on Windows 2000 Advanced Server SP4.

We are getting an exception when running the basket pipeline (which is
the default pipeline, not a custom one).

This exception does not occur in all cases, only for one user and on
our production machine.

I copy hereafter the information I gathered from our exception catching
mecanism.

I would appreciate any help in a starting point to investigate this
issue.


1) Exception Information
****************************************
*****
Exception Type: OurApp.VorException
Message: Cannot run pipeline <basket> on PurchaseOrder with
ID=75dc550e-d1af-4ac2-b79e-525cff37968c

2) Exception Information
****************************************
*****
Exception Type: System.Configuration.ConfigurationException
Message: The message for the resource id ur_badpayment was not found in
the specified resources. (X:\XYZ\web.config line 152)
BareMessage: The message for the resource id ur_badpayment was not
found in the specified resources.
Filename: X:\XYZ\web.config
Line: 152
TargetSite: System.Object Evaluate(System.String,
System.Web.Configuration.SectionRecord)
HelpLink: NULL
Source: System.Web

StackTrace Information
****************************************
*****
at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String
configKey, SectionRecord section)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
configKey, Boolean cacheResult)
at System.Web.HttpContext.GetConfig(String name)
at
Microsoft.CommerceServer.Runtime.CommerceApplicationModule.get_MessageManager()
at Microsoft.CommerceServer.Runtime.Orders.PipelineInfo..ctor(String
pipelineName)
at OurApp.RunPipeline(PurchaseOrder pOrder)
****************************************
*****

We do have MessageManager strings defined in a satellite assembly, but
for the "pur_badpayment " string, not for "ur_badpayment ".

Thanks in advance,

AMS

Ravi Shankar

2006-01-09, 5:57 pm

Hi ams8764,

Looks like you're executing a purchaseorder.runpipeline("basket.pcf") call
somewhere in your code. If for some reason you want to operate on the
purchase order object again, you should load the PO into the basket using the
basket.Load(PurchaseOrder) call and then run
basket.runpipeline("basket.pcf")... If you're doing this as part of order
modification then you should typically cancel the previous PO using the
"status_code" variable and post reconfirmation of the basket persist it as a
new PO object (remember you can persist a po with the same tracking number as
the cancelled PO is you wish)

Hope this helps.
--
Ravi Shankar


"ams8764@netscape.net" wrote:

> We are using Commerce Server 2002 SP3 in an ASP.NET 1.1 application
> running on Windows 2000 Advanced Server SP4.
>
> We are getting an exception when running the basket pipeline (which is
> the default pipeline, not a custom one).
>
> This exception does not occur in all cases, only for one user and on
> our production machine.
>
> I copy hereafter the information I gathered from our exception catching
> mecanism.
>
> I would appreciate any help in a starting point to investigate this
> issue.
>
>
> 1) Exception Information
> ****************************************
*****
> Exception Type: OurApp.VorException
> Message: Cannot run pipeline <basket> on PurchaseOrder with
> ID=75dc550e-d1af-4ac2-b79e-525cff37968c
>
> 2) Exception Information
> ****************************************
*****
> Exception Type: System.Configuration.ConfigurationException
> Message: The message for the resource id ur_badpayment was not found in
> the specified resources. (X:\XYZ\web.config line 152)
> BareMessage: The message for the resource id ur_badpayment was not
> found in the specified resources.
> Filename: X:\XYZ\web.config
> Line: 152
> TargetSite: System.Object Evaluate(System.String,
> System.Web.Configuration.SectionRecord)
> HelpLink: NULL
> Source: System.Web
>
> StackTrace Information
> ****************************************
*****
> at System.Web.Configuration.HttpConfigurationRecord.Evaluate(String
> configKey, SectionRecord section)
> at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
> configKey, Boolean cacheResult)
> at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
> configKey, Boolean cacheResult)
> at System.Web.Configuration.HttpConfigurationRecord.GetConfig(String
> configKey, Boolean cacheResult)
> at System.Web.HttpContext.GetConfig(String name)
> at
> Microsoft.CommerceServer.Runtime.CommerceApplicationModule.get_MessageManager()
> at Microsoft.CommerceServer.Runtime.Orders.PipelineInfo..ctor(String
> pipelineName)
> at OurApp.RunPipeline(PurchaseOrder pOrder)
> ****************************************
*****
>
> We do have MessageManager strings defined in a satellite assembly, but
> for the "pur_badpayment " string, not for "ur_badpayment ".
>
> Thanks in advance,
>
> AMS
>
>

Quinn Wilson

2006-01-19, 7:58 am

Ravi Shankar wrote:
> Hi ams8764,
>
> Looks like you're executing a purchaseorder.runpipeline("basket.pcf") call
> somewhere in your code. If for some reason you want to operate on the
> purchase order object again, you should load the PO into the basket using the
> basket.Load(PurchaseOrder) call and then run
> basket.runpipeline("basket.pcf")... If you're doing this as part of order
> modification then you should typically cancel the previous PO using the
> "status_code" variable and post reconfirmation of the basket persist it as a
> new PO object (remember you can persist a po with the same tracking number as
> the cancelled PO is you wish)


Hi Ravi. Is this what you do? I also need to make order modifications.
What does this do? Create a new order using the same ordergroup_id ? new
ordergroup_id ? Can you elaborate on what you do? Or provide some reference?

>
> Hope this helps.

Ravi Shankar

2006-01-21, 2:48 am

Hi Quinn,

Yes, this is the process we followed at our site. The Order Modification was
treated as a combination of order cancellation and creation of new order. To
achieve this we followed the step as

1. When the user wishes to modify their order the existing order is marked
as cancelled (only if the user was allowed.. what happened was the backoffice
updated the order status based on the order state. So once the order was
released for picking the user was to be prevented from modification.. the
user could return the complete order and this was handled as part of the
sales return process ). This was achieved by setting the
"order_status_code" to 8 (a code we created for deleted)
2. The order deletion was communicated to the backend system
3. The ordergroup was loaded into the users basket using the
basket.add(ordergroup) call. The addresses speciied in the order were
reloaded into the ordergroup.addresses collection.
4. The user was redirected to the basket page (after execution of the
basket pipeline which re-evaluates the discounts, promotions, etc)
5. Once the user confirms, they were sent through the same order
confirmation stages as for a new order (shipping, credit, etc) and a new
order was logged in the system.

In our system, since it was cash on delivery we did not face much issues
pertaining to payments, but it is my opinion that the payments would need to
be addressed in terms of refund or execess over authorised amount somewhere
in the checkout process...

There is no reference (to my knowledge) to which I can direct you to. We
used the business process as defined to provide this functionality.
--
Ravi Shankar


"Quinn Wilson" wrote:

> Ravi Shankar wrote:
>
> Hi Ravi. Is this what you do? I also need to make order modifications.
> What does this do? Create a new order using the same ordergroup_id ? new
> ordergroup_id ? Can you elaborate on what you do? Or provide some reference?
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com