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 (840186)



The information in this article 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.

MORE INFORMATION

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:

Modification Type:MajorLast Reviewed:6/27/2006
Keywords:kbtshoot kbnofix kbBTSOrchestration kbbug KB840186 kbAudDeveloper kbAudITPRO