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.

You may receive an error message when you try to compile a BizTalk Server 2006 solution in Visual Studio 2005, or you may receive an error message when you try to select a schema in Visual Studio .NET 2003


View products that this article applies to.

Symptoms

In Microsoft Visual Studio 2005, you may receive an error message that resembles the following when you try to compile a Microsoft BizTalk Server 2006 solution:
Namespace:Element1 cannot be a member of substitution group with head element Namespace:Element2.
Note Namespace represents the namespace for a schema that is the source or destination schema in a BizTalk map. Element1 and Element2 represent elements in the schema.

In Microsoft Visual Studio .NET 2003, you may receive an error message that resembles one of the following error messages when you try to select a schema as the source or destination schema in a BizTalk map in a Microsoft BizTalk Server 2004 project:
Error message 1
Failed to load Source Schema.

Reason:
'xs' is an undeclared namespace.
Error message 2
Failed to load Target Schema.

Reason:
'xs' is an undeclared namespace.
Additionally, the XSLT that is produced by the BizTalk Mapper may not appear as expected.

↑ Back to the top


Cause

This issue occurs if the schema contains the substitutionGroup element.

↑ Back to the top


Resolution

To resolve this issue, modify the schema so that the schema does not contain the substitutionGroup element.

↑ Back to the top


Workaround

To work around this issue, add a scripting functoid that uses inline XSLT to the BizTalk solution.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

In BizTalk Server 2006 and in Microsoft BizTalk Server 2004, the Schema Editor does not support the use of the substitutionGroup element. Therefore, you cannot develop an XML schema that contains the substitutionGroup element in BizTalk Server 2006 or in BizTalk Server 2004.

The substitutionGroup element is used in many standard schemas. For example, the substitutionGroup element is used in EAN, UCC, and EDI schemas.

↑ Back to the top


References

For more information about how to use EDI schemas included with BizTalk Server 2004, click the following article number to view the article in the Microsoft Knowledge Base:
840113 FIX: The BizTalk Server EDI Adapter only supports a limited set of document types in BizTalk Server 2004

↑ Back to the top


Keywords: kbbtsmapper, kbbts, kbtshoot, kbprb, kbinfo, KB917844

↑ Back to the top

Article Info
Article ID : 917844
Revision : 1
Created on : 5/5/2006
Published on : 5/5/2006
Exists online : False
Views : 469