Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Error message when you use the Commerce Server 2007 order adapter to process an order: "String was not recognized as a valid DateTime"


View products that this article applies to.

Symptoms

Consider the following scenario. You use the Microsoft Commerce Server 2007 order adapter as a receive port in Microsoft BizTalk Server. On the server that is running BizTalk Server, the Formats setting in Regional and Language Options dialog box is set to a format other than English (United States). You process an order. In this scenario, the following event is logged in the Application log:

Event Type: Error
Event Source: Commerce Server Orders Receive Adapter
Event Category: None
Event ID: 0
Description:
Failed submitting message to BizTalk. Message: String was not recognized as a valid DateTime.
Stack trace:
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
at Microsoft.CommerceServer.Adapter.Orders.OrdersReceiveEndpoint.get_TimeWindo�w ()
at Microsoft.CommerceServer.Adapter.Orders.OrdersReceiveEndpoint.SubmitBatch()�. Failed submitting message to BizTalk. Message: String was not recognized as a valid DateTime.

Note This problem may also occur if the Formats setting of the user account that is configured for the BizTalk Server service is set to a format other than English (United States).

↑ Back to the top


Cause

This problem occurs because, when the "DateTime of Query Window" registry entry is reset, a value of the DateTime data type is formatted by using the English (United States) format setting. However, the configured format setting should be used. The "DateTime of Query Window" registry entry is located under the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Commerce Server 2007 BizTalk Adapters
For example, you set the Formats setting in the Regional and Language Options dialog box to English (United Kingdom). The Commerce Server 2007 order adapter incorrectly interprets the date string "01/06/2008" as "1st. June 2008."

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Commerce Server 2007 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have Commerce Server 2007 Service Pack 1 installed to apply this hotfix.

Restart information

You do not have to restart the computer after you apply this hotfix. You must restart the BizTalk service after you apply this hotfix.

Registry information

You do not have to change the registry.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Microsoft.commerceserver.adapter.common.dll6.0.4036.4140,31207-Feb-200812:52x86
Microsoft.commerceserver.adapter.orders.receiveadapter.dll6.0.4036.454,29607-Feb-200812:52x86
Microsoft.commerceserver.adapter.orders.sendadapter.dll6.0.4036.462,48807-Feb-200812:52x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684� Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: KB947805, kbhotfixserver, kbqfe, kbpubtypekc, kbfix, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 947805
Revision : 1
Created on : 5/28/2008
Published on : 5/28/2008
Exists online : False
Views : 419