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.

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"


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB918848, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 918848
Revision : 1
Created on : 6/8/2006
Published on : 6/8/2006
Exists online : False
Views : 273