Error message in Visual Studio when you try to generate an instance of a schema in a BizTalk Server 2004 SP1 project: "Failed to create instance for schema" (918848)



The information in this article 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 SchemaName.xsd
Object reference not set to an instance of an object.
Note In this error message, SchemaName 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.

Modification Type:MajorLast Reviewed:6/8/2006
Keywords:kbtshoot kbprb KB918848 kbAudDeveloper