|
Home > Archive > Commerce Server General > November 2004 > Basket.Add(PurchaseOrder) misbehaviour ?
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 |
Basket.Add(PurchaseOrder) misbehaviour ?
|
|
| Ravi Shankar 2004-10-26, 5:48 pm |
| I was using this call (Basket.Add(PurchaseOrder)) to implement a Order
Modification processs and found that post this call, calls to the total &
checkout pipelines failed with component execution errors from standard
components.
Upon detailed investigation I found that this call copies all
keys/dictionaries from the PurchaseOrder into the Basket EXCEPT the
"Addresses" dictionary. Because of this address id's are available inder
billing_address and shipping address but the "Splitter" component failed to
create a "Shipments" dictionary with no sub-entries. This cause the
multi-ship architecture components to fail.
Can someone please verify this. Is this behaviour by design or a bug ?
Regards.
--
Ravi Shankar
| |
| Jason Xu 2004-10-27, 5:49 pm |
| Thansk for your message Ravi.
I am not very clear about your question.
Is this the issue - the addess dictionary is not added to basket when you
call Basket.Add(PurchaseOrder)?
The Splitter does not work you think is because there is no address
dictionary passed into the pipeline, right?
Just want to clarify the question first.
Thanks,
Jason
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
thread-index: AcS7dmOx9rICZE55TbiQk3EIKtAXNQ==
X-WBNR-Posting-Host: 15.211.169.100
From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
Subject: Basket.Add(PurchaseOrder) misbehaviour ?
Date: Tue, 26 Oct 2004 09:11:02 -0700
Lines: 17
Message-ID: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15023
X-Tomcat-NG: microsoft.public.commerceserver.general
I was using this call (Basket.Add(PurchaseOrder)) to implement a Order
Modification processs and found that post this call, calls to the total &
checkout pipelines failed with component execution errors from standard
components.
Upon detailed investigation I found that this call copies all
keys/dictionaries from the PurchaseOrder into the Basket EXCEPT the
"Addresses" dictionary. Because of this address id's are available inder
billing_address and shipping address but the "Splitter" component failed to
create a "Shipments" dictionary with no sub-entries. This cause the
multi-ship architecture components to fail.
Can someone please verify this. Is this behaviour by design or a bug ?
Regards.
--
Ravi Shankar
| |
| Ravi Shankar 2004-10-27, 5:49 pm |
| Yes on both counts Jason.
Because the address dictionary was not copied into the basket from the
purchaseorder object.. in the total pipeline the splitter components created
an empty shipments directory which cause a lot of other components to fail.
That is how I backtracked to notice that the addresses dictionary was not
copied 
Regards.
"Jason Xu" wrote:
> Thansk for your message Ravi.
>
> I am not very clear about your question.
>
> Is this the issue - the addess dictionary is not added to basket when you
> call Basket.Add(PurchaseOrder)?
>
> The Splitter does not work you think is because there is no address
> dictionary passed into the pipeline, right?
>
> Just want to clarify the question first.
>
> Thanks,
> Jason
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2001 Microsoft Corporation. All rights
> reserved.
>
> --------------------
> Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
> thread-index: AcS7dmOx9rICZE55TbiQk3EIKtAXNQ==
> X-WBNR-Posting-Host: 15.211.169.100
> From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
> Subject: Basket.Add(PurchaseOrder) misbehaviour ?
> Date: Tue, 26 Oct 2004 09:11:02 -0700
> Lines: 17
> Message-ID: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15023
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> I was using this call (Basket.Add(PurchaseOrder)) to implement a Order
> Modification processs and found that post this call, calls to the total &
> checkout pipelines failed with component execution errors from standard
> components.
>
> Upon detailed investigation I found that this call copies all
> keys/dictionaries from the PurchaseOrder into the Basket EXCEPT the
> "Addresses" dictionary. Because of this address id's are available inder
> billing_address and shipping address but the "Splitter" component failed to
> create a "Shipments" dictionary with no sub-entries. This cause the
> multi-ship architecture components to fail.
>
> Can someone please verify this. Is this behaviour by design or a bug ?
>
> Regards.
> --
> Ravi Shankar
>
| |
| Jason Xu 2004-10-28, 5:49 pm |
| This is by design. When calling Basket.Add(PurchaseOrder), Addresses are
not copied.
Thanks,
Jason
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
thread-index: AcS8RbSWQMnZi35FSSuIvpxW6xg9Tw==
X-WBNR-Posting-Host: 15.211.169.100
From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
References: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
<Dm5OhEEvEHA.2384@cpmsftngxa10.phx.gbl>
Subject: RE: Basket.Add(PurchaseOrder) misbehaviour ?
Date: Wed, 27 Oct 2004 09:55:04 -0700
Lines: 73
Message-ID: <B8DAAAD9-343C-4D6D-ACE6-C754D6A81297@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15030
X-Tomcat-NG: microsoft.public.commerceserver.general
Yes on both counts Jason.
Because the address dictionary was not copied into the basket from the
purchaseorder object.. in the total pipeline the splitter components
created
an empty shipments directory which cause a lot of other components to fail.
That is how I backtracked to notice that the addresses dictionary was not
copied 
Regards.
"Jason Xu" wrote:
> Thansk for your message Ravi.
>
> I am not very clear about your question.
>
> Is this the issue - the addess dictionary is not added to basket when you
> call Basket.Add(PurchaseOrder)?
>
> The Splitter does not work you think is because there is no address
> dictionary passed into the pipeline, right?
>
> Just want to clarify the question first.
>
> Thanks,
> Jason
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2001 Microsoft Corporation. All
rights
> reserved.
>
> --------------------
> Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
> thread-index: AcS7dmOx9rICZE55TbiQk3EIKtAXNQ==
> X-WBNR-Posting-Host: 15.211.169.100
> From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
> Subject: Basket.Add(PurchaseOrder) misbehaviour ?
> Date: Tue, 26 Oct 2004 09:11:02 -0700
> Lines: 17
> Message-ID: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15023
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> I was using this call (Basket.Add(PurchaseOrder)) to implement a Order
> Modification processs and found that post this call, calls to the total &
> checkout pipelines failed with component execution errors from standard
> components.
>
> Upon detailed investigation I found that this call copies all
> keys/dictionaries from the PurchaseOrder into the Basket EXCEPT the
> "Addresses" dictionary. Because of this address id's are available inder
> billing_address and shipping address but the "Splitter" component failed
to
> create a "Shipments" dictionary with no sub-entries. This cause the
> multi-ship architecture components to fail.
>
> Can someone please verify this. Is this behaviour by design or a bug ?
>
> Regards.
> --
> Ravi Shankar
>
| |
| Ravi Shankar 2004-10-29, 2:47 am |
| Any specific Reason ?
OR
Is it that one is supposed to load them afresh from the profiles ?
The ID's for addresses as in Billing_address & shipping address are retained.
Regards.
"Jason Xu" wrote:
> This is by design. When calling Basket.Add(PurchaseOrder), Addresses are
> not copied.
>
> Thanks,
> Jason
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2001 Microsoft Corporation. All rights
> reserved.
> --------------------
> Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
> thread-index: AcS8RbSWQMnZi35FSSuIvpxW6xg9Tw==
> X-WBNR-Posting-Host: 15.211.169.100
> From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
> References: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
> <Dm5OhEEvEHA.2384@cpmsftngxa10.phx.gbl>
> Subject: RE: Basket.Add(PurchaseOrder) misbehaviour ?
> Date: Wed, 27 Oct 2004 09:55:04 -0700
> Lines: 73
> Message-ID: <B8DAAAD9-343C-4D6D-ACE6-C754D6A81297@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15030
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Yes on both counts Jason.
>
> Because the address dictionary was not copied into the basket from the
> purchaseorder object.. in the total pipeline the splitter components
> created
> an empty shipments directory which cause a lot of other components to fail.
> That is how I backtracked to notice that the addresses dictionary was not
> copied 
>
> Regards.
>
> "Jason Xu" wrote:
>
> rights.
> rights
> to
>
| |
| Jason Xu 2004-11-01, 5:50 pm |
| Basket.Add(OrderPurchase) is designed to copy LineItems only. No other data
should be copied.
Do you have a PipelineInfo object defined before your run the basket
pipeline?
Thanks,
Jason
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
thread-index: AcS9kX7xJFqaQovaQTiL8w9wDiqAwg==
X-WBNR-Posting-Host: 15.211.169.100
From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
References: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
<Dm5OhEEvEHA.2384@cpmsftngxa10.phx.gbl>
<B8DAAAD9-343C-4D6D-ACE6-C754D6A81297@microsoft.com>
<5FCrMoTvEHA.3152@cpmsftngxa10.phx.gbl>
Subject: RE: Basket.Add(PurchaseOrder) misbehaviour ?
Date: Fri, 29 Oct 2004 01:30:07 -0700
Lines: 122
Message-ID: <59522377-0F0E-4C4F-8D8B-A1AE1A286CC7@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15037
X-Tomcat-NG: microsoft.public.commerceserver.general
Any specific Reason ?
OR
Is it that one is supposed to load them afresh from the profiles ?
The ID's for addresses as in Billing_address & shipping address are
retained.
Regards.
"Jason Xu" wrote:
> This is by design. When calling Basket.Add(PurchaseOrder), Addresses are
> not copied.
>
> Thanks,
> Jason
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2001 Microsoft Corporation. All
rights
> reserved.
> --------------------
> Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
> thread-index: AcS8RbSWQMnZi35FSSuIvpxW6xg9Tw==
> X-WBNR-Posting-Host: 15.211.169.100
> From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
> References: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
> <Dm5OhEEvEHA.2384@cpmsftngxa10.phx.gbl>
> Subject: RE: Basket.Add(PurchaseOrder) misbehaviour ?
> Date: Wed, 27 Oct 2004 09:55:04 -0700
> Lines: 73
> Message-ID: <B8DAAAD9-343C-4D6D-ACE6-C754D6A81297@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15030
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Yes on both counts Jason.
>
> Because the address dictionary was not copied into the basket from the
> purchaseorder object.. in the total pipeline the splitter components
> created
> an empty shipments directory which cause a lot of other components to
fail.
> That is how I backtracked to notice that the addresses dictionary was not
> copied 
>
> Regards.
>
> "Jason Xu" wrote:
>
you[vbcol=seagreen]
> rights.
> rights
&[vbcol=seagreen]
inder[vbcol=seagreen]
failed[vbcol=seagreen]
> to
>
| |
| Ravi Shankar 2004-11-02, 2:46 am |
| Actually it copies the OrderForm object also. The bevaiour is flaky if an
orderform exists.. Anyways, I copied all the missing items across into the
cart and then reran the total pipeline to recreate the totals.
Thanks.
"Jason Xu" wrote:
> Basket.Add(OrderPurchase) is designed to copy LineItems only. No other data
> should be copied.
>
> Do you have a PipelineInfo object defined before your run the basket
> pipeline?
>
> Thanks,
> Jason
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> You assume all risk for your use. © 2001 Microsoft Corporation. All rights
> reserved.
> --------------------
> Thread-Topic: Basket.Add(PurchaseOrder) misbehaviour ?
> thread-index: AcS9kX7xJFqaQovaQTiL8w9wDiqAwg==
> X-WBNR-Posting-Host: 15.211.169.100
> From: =?Utf-8?B?UmF2aSBTaGFua2Fy?= <shankycheil@newsgroup.nospam>
> References: <6B336122-5371-4A85-8981-50783A26150E@microsoft.com>
> <Dm5OhEEvEHA.2384@cpmsftngxa10.phx.gbl>
> <B8DAAAD9-343C-4D6D-ACE6-C754D6A81297@microsoft.com>
> <5FCrMoTvEHA.3152@cpmsftngxa10.phx.gbl>
> Subject: RE: Basket.Add(PurchaseOrder) misbehaviour ?
> Date: Fri, 29 Oct 2004 01:30:07 -0700
> Lines: 122
> Message-ID: <59522377-0F0E-4C4F-8D8B-A1AE1A286CC7@microsoft.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Utf-8"
> Content-Transfer-Encoding: 8bit
> X-Newsreader: Microsoft CDO for Windows 2000
> Content-Class: urn:content-classes:message
> Importance: normal
> Priority: normal
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15037
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Any specific Reason ?
> OR
> Is it that one is supposed to load them afresh from the profiles ?
> The ID's for addresses as in Billing_address & shipping address are
> retained.
>
> Regards.
>
> "Jason Xu" wrote:
>
> rights.
> rights
> fail.
> you
> &
> inder
> failed
>
>
|
|
|
|
|