Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

How to Avoid Duplicate Orders Numbers in Commerce Server

ravikanth | June 5, 2010

Commerce server Order system auto generates tracking number. On application start event, it will continue to allocate a batch of tracking numbers from tracking table even if you don’t use them, so you’ll continue to see that counter jump up even if you’re not de-queuing any of those values when saving your order (this is by design). As per our application architecture or topology, we have three data centers having multiple front end servers and each datacenter will have a commerce server site with a database cluster and there is a transactional replication between these commerce server transaction databases.

There is big risk of order numbers getting duplicated during replication. Having unique prefix/suffix solution may not match to our requirements. I thought of setting up some sort of centralized Order Tracking service which all WFEs request tracking numbers from database (like one master database, a WCF service, SQL components). I also created SQL scripts which locks table and give unique number to each request – click here to download the code. Once we get order number, we assign the number to card and save it in commerce server. For this, you can refer to msdn link.

http://blogs.msdn.com/b/nihitk/archive/2006/06/21/cs2007-predefined-trackingnumber-for-order.aspx

I have seen this as big monster problem but, end up with a very small fix leveraging OOB features. Order system keep the track of order numbers in IdentityCounter table. The idea of setting aside 10 million sequence numbers for each of the 3 instances has a good fix as we don’t think we’ll run out of that many order numbers soon and thus may not have to worry about doing central master doling out order numbers or worrying about duplicating order numbers across sites.

Learning – don’t see every thing as big issue and try to accommodate the design with out of box features or with little acceptable customizations.

Comments
No Comments »
Categories
Commerce Server 2009
Tags
Order Number, Order subsystem
Comments rss Comments rss
Trackback Trackback

Connect to Profile & Order subsystems without HTTPS

ravikanth | June 29, 2008

To open to customer and order manager tool, you should install SSL certificate on web server and SSL secure channel should be enable in profile and order virtual directories. You can use SelfSSL tool to create SSL certificate. SelfSSL.exe is part IIS 6.0 resource kit tools and you can download it from Microsoft site.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/993a8a36-5761-448f-889e-9ae58d072c09.mspx

If you don’t want to install SSL, then there is a trick to do that.

  1. Open “CustomerAndOrdersManager.exe.config” file located in  “C:Program FilesMicrosoft Commerce Server 2007Business User Applications” folder.
  2. Go to Configuration -> ApplicationSettlings -> Microsoft.CommerceServer.UI.CustomerAndOrdersManager.Properties.Settings -> AllowHTTP setting.
  3. Change value from “False” to “True”.
  4. Now your “Customer & Order manager” tool  will not ask for HTTPS to connect to profile and order subsystem.
Comments
No Comments »
Categories
Troubleshoot, commerce server 2007
Tags
commerce server, commerce server 2007, ecommerce, learn commerce server SP2, Order subsystem, profile subsystem
Comments rss Comments rss
Trackback Trackback

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool
  • Marketing Web service Exception: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
  • Download Commerce Server 2009 Help Document
  • Commerce Server 2009 work with SharePoint 2010?
  • Failed to set value for profile property ‘email_address’.
  • ArgumentException: An item with the same key has already been added.
  • Please note that one or more items were removed from your order because the product is no longer sold.
  • How to Avoid Duplicate Orders Numbers in Commerce Server
  • Error: Microsoft.Commerce.Contracts.Faults.ItemDoesNotExistFault

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category CategoryConfiguration commerce server commerce server 2007 commerce server manager Commerce Server SP2 discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .