Microsoft KB Archive/917844

= 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 =

Article ID: 917844

Article Last Modified on 5/5/2006

-

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:



Note  represents the namespace for a schema that is the source or destination schema in a BizTalk map. and  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.

