Microsoft KB Archive/918848

= Error message in Visual Studio when you try to generate an instance of a schema in a BizTalk Server 2004 SP1 project: &quot;Failed to create instance for schema&quot; =

Article ID: 918848

Article Last Modified on 6/8/2006

-

APPLIES TO


 * Microsoft BizTalk Server 2004 Service Pack 1

-





SYMPTOMS
In Microsoft Visual Studio, when you try to generate an instance of a schema in a Microsoft BizTalk Server 2004 Service Pack 1 project, you may receive an error message that resembles the following error message:

Failed to create instance for schema .xsd

Object reference not set to an instance of an object.

Note In this error message,  represents the name of the schema.

This issue occurs when you try to generate an instance output of Native type. This issue does not occur when you generate an instance output of XML type.



CAUSE
This issue may occur if the following conditions are true:
 * The Wrap Character Type property for a field in the schema is set to a value other than None.
 * The Wrap Character property for a field in the schema is not set.



RESOLUTION
To resolve this issue, use one of the following methods:
 * If you set the Wrap Character Type property to a value other than None, set the Wrap Character property.
 * if you do not set the Wrap Character property, do not set the Wrap Character Type property.

Keywords: kbtshoot kbprb KB918848

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.