Resolving Schema type Name error

When you come accross this error while building a XSD in BizTalk:

This schema file has a TypeName that collides with the RootNode TypeName of one of its root nodes. Make sure that they are different.

Just set the ‘Root Reference’ in the schema properties to a type. This identifies the root node type that corresponds to the type for the schema. The default behaviour is to pick the first root node, and if the root node that shares a type name is not the first then you’ll see this error. Simply change the property to the relevant node and compile away.

Leave a Reply