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_TimeWindow () 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).
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."
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.
You must have Commerce Server 2007 Service Pack 1 installed to apply this hotfix.
You do not have to restart the computer after you apply this hotfix. You must restart the BizTalk service after you apply this hotfix.
You do not have to change the registry.
Hotfix replacement information
This hotfix does not replace a previously released hotfix.
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.