Microsoft Knowledge Base Email Alertz

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

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 918848 - Last Review: June 8, 2006 - Revision: 1.3

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"

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.

APPLIES TO
  • Microsoft BizTalk Server 2004 Service Pack 1
Keywords: 
kbtshoot kbprb KB918848
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate