Commerce Server General - can't able to reuse basket pipeline

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > February 2006 > can't able to reuse 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 can't able to reuse basket pipeline
Zoom

2006-02-20, 7:47 am

Hi,

I'm using basket pipeline of retail2002 in one of my project. It throws me
this error

"Failed to save basket as an order. at
Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder()"

Unable to figure out the reason for the error. pls help
Ravi Shankar

2006-02-20, 5:52 pm

Hi Zoom,

The most probable cause is wrong DTC configuration. What other information
is thrown along with that message ?
--
Ravi Shankar


"Zoom" wrote:

> Hi,
>
> I'm using basket pipeline of retail2002 in one of my project. It throws me
> this error
>
> "Failed to save basket as an order. at
> Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder()"
>
> Unable to figure out the reason for the error. pls help

Zoom

2006-02-22, 7:48 am

Hi Shankar,

Thanks for your reply.
I guess there is nothing to do with DTC configuration.
Because basket pipeline was working fine initially. When i tried to add a
component to the pipeline. It went for a toss. When i reverted it back also,
it doesn't work. Then i tried to get the basket pipeline component from newly
unpacked retail2002 site. It also fails.

This is the complete correct which i got in my application.
Failed to save basket as an
order.Microsoft.CommerceServer.Runtime.CommerceException: SaveAsOrder Failed.
---> Microsoft.CommerceServer.Runtime.CommerceException: SaveAsOrderHelper
Failed. ---> System.Runtime.InteropServices.COMException (0x80040E57): String
or binary data would be truncated.[22001] The statement has been
terminated.[01000] String or binary data would be truncated. at
Microsoft.CommerceServer.Interop.Orders.DBStorageClass.InsertData(Object
vtReserved, Object pdispData) at
Microsoft.CommerceServer.Interop.Orders.MTSHelperImpl.SaveDictToTable(Int16&
bExists, IDictionary& dict, String& table, String& key, Object& exception,
Object& exception2, DBStorage& dbs, Boolean& bReinitializeDBS, String&
SavePrefix, String& dsn, String& userid) at
Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.Save(LoadedFromState
my_save_to, String SavePrefix) at
Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
Object& out_vtOutTrackingNumber) --- End of inner exception stack trace ---
Server stack trace: at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source) at
Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
Object& out_vtOutTrackingNumber) at
System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean
fExecuteInContext) at
System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,
Int32 type) at
Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
Object& out_vtOutTrackingNumber) at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsOrder(Object&
vtOutTrackingNumber) --- End of inner exception stack trace --- at
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source) at
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsOrder(Object&
vtOutTrackingNumber) at
Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder()


"Ravi Shankar" wrote:
[vbcol=seagreen]
> Hi Zoom,
>
> The most probable cause is wrong DTC configuration. What other information
> is thrown along with that message ?
> --
> Ravi Shankar
>
>
> "Zoom" wrote:
>
Ravi Shankar

2006-02-22, 5:57 pm

Everytime you changed the pipeline did you do an IISRESET to ensure that the
changes got relected ?
--
Ravi Shankar


"Zoom" wrote:
[vbcol=seagreen]
> Hi Shankar,
>
> Thanks for your reply.
> I guess there is nothing to do with DTC configuration.
> Because basket pipeline was working fine initially. When i tried to add a
> component to the pipeline. It went for a toss. When i reverted it back also,
> it doesn't work. Then i tried to get the basket pipeline component from newly
> unpacked retail2002 site. It also fails.
>
> This is the complete correct which i got in my application.
> Failed to save basket as an
> order.Microsoft.CommerceServer.Runtime.CommerceException: SaveAsOrder Failed.
> ---> Microsoft.CommerceServer.Runtime.CommerceException: SaveAsOrderHelper
> Failed. ---> System.Runtime.InteropServices.COMException (0x80040E57): String
> or binary data would be truncated.[22001] The statement has been
> terminated.[01000] String or binary data would be truncated. at
> Microsoft.CommerceServer.Interop.Orders.DBStorageClass.InsertData(Object
> vtReserved, Object pdispData) at
> Microsoft.CommerceServer.Interop.Orders.MTSHelperImpl.SaveDictToTable(Int16&
> bExists, IDictionary& dict, String& table, String& key, Object& exception,
> Object& exception2, DBStorage& dbs, Boolean& bReinitializeDBS, String&
> SavePrefix, String& dsn, String& userid) at
> Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.Save(LoadedFromState
> my_save_to, String SavePrefix) at
> Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
> in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
> Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
> Object& out_vtOutTrackingNumber) --- End of inner exception stack trace ---
> Server stack trace: at
> Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
> message, Exception inner, String source) at
> Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
> in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
> Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
> Object& out_vtOutTrackingNumber) at
> System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean
> fExecuteInContext) at
> System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage
> msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]:
> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg) at
> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,
> Int32 type) at
> Microsoft.CommerceServer.Interop.Orders. PrivateOrderGroupMtsTxHelperFreeThreaded
.SaveAsOrderHelper(Object
> in_User, Object in_dsn, Object in_GenID, Object& in_out_OrderGroupData,
> Object& loaded_from, Object& in_out_exists_in_databse, Object SavePrefix,
> Object& out_vtOutTrackingNumber) at
> Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsOrder(Object&
> vtOutTrackingNumber) --- End of inner exception stack trace --- at
> Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
> message, Exception inner, String source) at
> Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsOrder(Object&
> vtOutTrackingNumber) at
> Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder()
>
>
> "Ravi Shankar" wrote:
>
Zoom

2006-02-22, 5:57 pm

Yes i do IISRESET whenever i make changes in basket pipeline

------
Hari.R

"Ravi Shankar" wrote:
[vbcol=seagreen]
> Everytime you changed the pipeline did you do an IISRESET to ensure that the
> changes got relected ?
> --
> Ravi Shankar
>
>
> "Zoom" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com