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.