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



The information in this article applies to:

  • Microsoft BizTalk Server 2006 Standard Edition
  • Microsoft BizTalk Server 2006 Developer Edition
  • Microsoft BizTalk Server 2006 Enterprise Edition
  • Microsoft BizTalk Server 2004 Standard Edition
  • Microsoft BizTalk Server 2004 Developer Edition
  • Microsoft BizTalk Server 2004 Enterprise Edition
  • Microsoft BizTalk Server 2004 Partner Edition

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.

CAUSE

This issue occurs if the schema contains the substitutionGroup element.

RESOLUTION

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

WORKAROUND

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

STATUS

This behavior is by design.

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.

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


Modification Type:MajorLast Reviewed:5/5/2006
Keywords:kbBTSMapper kbBTS kbtshoot kbprb kbinfo KB917844 kbAudDeveloper