Microsoft KB Archive/840186

= BUG: A promoted property that has a default value in the document schema may not appear on the message context when you receive a document in BizTalk Server 2004 =

Article ID: 840186

Article Last Modified on 3/20/2007

-

APPLIES TO


 * Microsoft BizTalk Server 2004 Developer Edition
 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Partner Edition
 * Microsoft BizTalk Server 2004 Standard Edition

-





SYMPTOMS
In a document schema in Microsoft BizTalk Server 2004, you may promote a property with a default value set. When you receive a document where the initial value of the property is not set, the empty property may remain empty and may not be promoted to the context properties of the document.



CAUSE
This issue occurs in BizTalk Server 2004 when you use a Pipeline that performs no data validation on the contents of the received document.



WORKAROUND
To work around this issue, use one of the following methods:
 * In the Pipeline file, add the XML Validator component to the Validate stage.
 * In the Pipeline file, add the XML Disassembler component to the Disassemble stage, and set the Validate document structure property to True on the XML Disassembler component.



Steps to reproduce the behavior

 * 1) Create a schema with a promoted property, and then set the default value on that property.
 * 2) Receive a document for that schema that contains an empty element for the promoted property.
 * 3) Make sure that a pipeline is used on the receive location that does not perform any document validation.
 * 4) View the context properties of the document.

For more information about schemas or promoting properties, visit the following Microsoft Developer Network (MSDN) Web site:

http://msdn2.microsoft.com/en-us/library/ms916329.aspx

Keywords: kbtshoot kbnofix kbbtsorchestration kbbug KB840186

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.