Commerce Server General - Order creating

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2004 > Order creating





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 Order creating
alexp

2004-09-03, 5:49 pm

Hi,
I am trying to use OrderGroupClass , C#., Commerce Server 2002:

Init(siteName);
OrderFormClass of = new OrderFormClass();
for (int i =0; i<lineItems.Length; i++)
{
of.AddItem(lineItems[i].Sku,System.Convert.ToInt32(lineItems[i].Qty),
System.Convert.ToInt32(lineItems[i].Price));
}
OrderGroupClass og = new OrderGroupClass();
og.Initialize(sTransactionDSN, userID, new LRUCacheClass());
og.AddOrderform(of,"MyForm");
og.SaveAsBasket();

As a result I have following after og.SaveAsOrder():
System.Runtime.InteropServices.COMException (0x80040E14): Syntax error
converting from a character string to uniqueidentifier at
Microsoft.CommerceServer.Interop.Orders.OrderGroupClass.SaveAsBasket()

Can anybody help me please?

Vinod Kumar[MSFT]

2004-09-23, 5:51 pm

What is userID where is it initalized? Is there some other code in the
project? I just want you to check if you're setting a malformed string for
the Guid field.


This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
--------------------
From: "alexp" <alex@utilitran.com>
Newsgroups: microsoft.public.commerceserver.general
Subject: Order creating
Date: Fri, 03 Sep 2004 18:25:53 -0400
Organization: www.talkaboutsoftware.com
Message-ID:
< 1e88d2b6e9789dd59ba9b5598f3abc73@localho
st.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
Content-Type: text/plain;
X-Complaints-To: abuse@supernews.com
Lines: 22
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.zanker.org!zen.net.uk!dedekind.zen.co.uk!216
.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganew
s.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.ne
t!ntli.net!sn-xit-02!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!n
ot-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14703
X-Tomcat-NG: microsoft.public.commerceserver.general

Hi,
I am trying to use OrderGroupClass , C#., Commerce Server 2002:

Init(siteName);
OrderFormClass of = new OrderFormClass();
for (int i =0; i<lineItems.Length; i++)
{
of.AddItem(lineItems[i].Sku,System.Convert.ToInt32(lineItems[i].Qty),
System.Convert.ToInt32(lineItems[i].Price));
}
OrderGroupClass og = new OrderGroupClass();
og.Initialize(sTransactionDSN, userID, new LRUCacheClass());
og.AddOrderform(of,"MyForm");
og.SaveAsBasket();

As a result I have following after og.SaveAsOrder():
System.Runtime.InteropServices.COMException (0x80040E14): Syntax error
converting from a character string to uniqueidentifier at
Microsoft.CommerceServer.Interop.Orders.OrderGroupClass.SaveAsBasket()

Can anybody help me please?


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com