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: BizTalk Mapper Creates a Blank Attribute in an Element of the Output Document


View products that this article applies to.

This article was previously published under Q303312

↑ Back to the top


Symptoms

The BizTalk Mapper creates a blank attribute in an element of the output document when there is a link created from an optional field in the source schema to a destination field. This occur even if the incoming document does not contain that optional attribute.

For example, if you have an incoming document where the optional BCT05 attribute of the BCT element is not present and the BCT05 attribute is linked to the destination attribute BCT05, the following would occur:
Incoming Document:
<X12_3010_832>
<BCT />
</X12_3010_832>
Incorrect Result:
<X12_3010_832>
<BCT BCT05=""/>
</X12_3010_832>
Correct Result:
<X12_3010_832>
<BCT />
</X12_3010_832>
BCT05 in the destination document specification is optional. By using the "Incorrect Result" output, if the BCT05 attribute has min/max length that is set to greater than 0, the output document fails to validate against the destination document specification, because the BCT05 attribute incorrectly exists with a length of 0.

↑ Back to the top


Cause

This problem occurs when there is a link created from an optional field in the source schema to a destination field. The problem is that the Mapper generates XSLT that creates the destination field and copies the value of the source field. If the source field does not appear in the instance document (because it is optional), a blank destination field is created.

↑ Back to the top


Resolution

To resolve this problem, obtain the latest service pack for Microsoft BizTalk Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
299664 INFO: How to Obtain the Latest BizTalk Server 2000 Service Pack

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in BizTalk Server 2000. This problem was first corrected in Microsoft BizTalk Server 2000 Service Pack 1a.

↑ Back to the top


Keywords: KB303312, kbbiztalk2000sp1afix, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 303312
Revision : 3
Created on : 11/5/2003
Published on : 11/5/2003
Exists online : False
Views : 442