Commerce Server Blog

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

RCXml2Resx.exe tool stops working

ravikanth | July 21, 2010

Commerce server Message manager provides us to manage localized message handling. We have to follow series of steps to covert the messages to satellite assemblies. So, here are the steps we should follow.

1. Create and modify RC.XML and include your localized text and languages (you can find in %Commerce_Server_Root%\Sdk\Samples\MessageManager folder).

2. Use RCxml2Resx.exe tool to covert RC.XML file into resx file. ( You can find it %Commerce_Server_Root%\Tools folder.) The input for this tool is rc.xml file.

3. Create resources file using Resource File Generator (ResGen.exe).

4. Generate satellite assemblies by using Assembly Linker (Al.exe) command-line tools.

After adding few languages (actually I added 32 languages to the xml file), when I run RCXmlResx.exe file, you can encounter problem and tools exits with an exception (as shown below) and nothing is written in the event log.

clip_image002

I checked many places but the solution is not found. After troubleshooting further, I found this error is due to following mistakes.

  1. I used wrong locale code . Instead of “<Language Name="en-ZA" Locale="7177" />”, I kept “<Language Name="en-ZA" Locale="71777" />”.
  2. I have added wrong language locale code (in my instance, I have added “<Language Name="en-AE" Locale="1033" />”).
  3. If the language value doesn’t exists but a value (message) exists in <Entry> tags.

Note: The messages language value under <Entry> tags need not be in a sequence.

Comments
No Comments »
Categories
Commerce Server 2009, commerce server 2007
Tags
Commerce server tools
Comments rss Comments rss
Trackback Trackback

Commerce Server Profile Importer Tool

ravikanth | July 14, 2010

Two years back, I have blogged catalog importer, which will help us to import catalog data into commerce server. I have used this tool in many projects and business users like this tool as it uses excel as input parameter. Recently I see in communities asking for user profile import. User profile has some sensitive information (like password, secret question and answer, etc) and we can’t directly insert these data into database as these data should be encrypted using few algorithms (SHA1, SHA256, MD5, etc) before saving into database.

If your requirement is to import all existing user profiles then the good option is to insert data using commerce server API. I created a tool (simple and robust) which will help you to insert user profile (can extend to save address and other profiles) information in commerce server. The tool is very flexible and extensible without touching the code. Input to this tool is the excel file (sample file in data folder) and couple of constraints with this template are.

  • The work sheet name should be “UserData”.
  • Currently only 5 columns are there but you can extend the list – the column name should be same as commerce server column name. For example, if you want to import telephone number then the column name should be “GeneralInfo.tel_number”.

The code is pretty simple and self explanatory. When you run the tool, you will be prompted for excel file location. After providing the information, the tool loads data into data table and starts inserted data one by one into commerce server. The output of the tool looks like this (I have imported the sample data in the sample template file). Any wrong information in excel will lead to exception.

image

On successful import, if you query “UserObject” table (or other profile tables), you can find imported data.

image

Click here to download the tool.

Comments
No Comments »
Categories
Commerce Server 2009, commerce server 2007
Tags
Profile Importer, tools
Comments rss Comments rss
Trackback Trackback

Marketing Web service Exception: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM

ravikanth | July 4, 2010

Last week, I faced typical issue when we are trying to approve marketing campaign item from Marketing manager. Our data center is in Europe and business team is sitting in USA. They started complaining that they can’t approve the marketing items from their box and in the server we found following exception in event log.

An exception occurred in the ‘MarketingWebService’ Web service.  Exception details follow:
System.Data.SqlTypes.SqlTypeException: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
   at System.Data.SqlTypes.SqlDateTime.FromTimeSpan(TimeSpan value)
   at System.Data.SqlTypes.SqlDateTime.FromDateTime(DateTime value)|
   at System.Data.SqlClient.MetaType.FromDateTime(DateTime dateTime, Byte cb)
   at System.Data.SqlClient.TdsParser.WriteValue(Object value, MetaType type, Byte scale, Int32 actualLength, Int32 encodingByteSize, Int32 offset, TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.CommerceServer.Internal.Marketing.CampaignItemStorageManager.SetCampaignItemActiveStatusInTrans(Int32 campaignItemId, Boolean active, DateTime timestamp)

Seems to be strange but we found out that this exception is coming only when the business time is less than Europe time. After changing the business user timing from EST to Europe, the business tool started working fine. Root cause is yet to identify but in this post, I would like to convey the remedy to everyone.

Comments
2 Comments »
Categories
Commerce Server 2009, commerce server 2007
Comments rss Comments rss
Trackback Trackback

Download Commerce Server 2009 Help Document

ravikanth | June 24, 2010

By default, when you install commerce server 2009, a help document (CHM) is created in your local machine. This document has lot of useful information on CS2009/CS2007. One of the disadvantage of this is that you can’t move this document to another machine. Finbar Ryan (MS CS support team) has created a CHM file using PackageThis tool. I thought of sharing the same to the commerce community so that people can start learning commerce server without installing the software. Thanks Finbar for sharing this document to the community. Click below icon to download the file.

 

image

image

Comments
1 Comment »
Categories
What's New
Tags
commerce server CHM file.
Comments rss Comments rss
Trackback Trackback

Commerce Server 2009 work with SharePoint 2010?

ravikanth | June 20, 2010

At last, my waiting has come to an end when Microsoft has released commerce server 2009 template pack for SharePoint 2010 this week end (17th June 2010). With new CTP R2 and with manual deployment of R2, we can able to make the application work on SPS2010 with no errors.

What this template pack, we get following things

  • Default OOB site with new look and feel (green, grey, etc ).
  • Site can work on desktop browsers or mobile browsers (windows mobile, Iphone).
  • Working code on SharePoint 2010 and support deployment in SPS2010 or SharePoint foundation 2010 environment.
  • Supports only in windows 2008 or windows 2008 R2 operating systems.
  • Partners SDK – can extend code to create new websites.

After installing the application, here is how it looks.

clip_image001

image

You can download this template pack from Microsoft site and the url is http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=cfd0c459-5a11-4de6-9085-52d59e8d38e6

If this product got released four months before then I would have got a chance to work sps2010 but doesn’t matter, hope I get another opportunity soon to work on SPS2010. In next few weeks, I will start exploring the software and post my observations in this blog. So, stay tuned.

Comments
No Comments »
Categories
Commerce Server 2009, What's New
Comments rss Comments rss
Trackback Trackback

« Previous Entries

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 .