BUG: PORequestApproval.wsc Component Is Hard-Coded to Expect the English Date/Time Format (312759)
The information in this article applies to:
- Microsoft BizTalk Server 2000
- Microsoft BizTalk Server 2002
This article was previously published under Q312759 SYMPTOMS
In the Microsoft BizTalk Server tutorial, PORequestApproval.wsc contains the following statement which expects an English date/time format:
Line 47:<BR/>
'Generate a Unique Number used to generate unique files using a mask<BR/>
strTimeNow = left(Replace(CStr(FormatDateTime(Now(), 3)),":",""), 6)
The date and time are used to generate unique file names.
CAUSE
This problem occurs because the script is expecting the date and time in the following format:
MM/DD/YY HH:MM:SS
This may cause errors when the script tries to generate a unique file name on localized platforms that are not using the English date/time format.
RESOLUTION
To resolve this problem, modify the script to adjust for your local date/time format by using the DatePart function:
strTimeNow = DatePart("h", Now()) & DatePart("n", Now()) & DatePart("s", Now())
As an alternative, you can change your regional setting to use English date/time format.
STATUSMicrosoft has confirmed that this is a problem in Microsoft BizTalk Server 2002.
Modification Type: | Major | Last Reviewed: | 6/4/2003 |
---|
Keywords: | kbbug kbnofix KB312759 |
---|
|