maandag 31 januari 2011

Resolving Schema type Name error

I've downloaded the xCBL 3.5 schema from their webiste.

When just including the Order.xsd schema in a BizTalk Project, I got following error when building the solution:

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

Now, the reason for this is quite simple - when the project is compiled, a .NET class will be generated for each top level element in your schema. If you have two schemas which share the same top level element name a clash will occur.

The solution is to change the generated type name for the schema. To do so, select the schema in the Solution Explorer and press F4 to display the Properties window. Then change the Type Name property so that it is not the same as any of the top level elements.

2 opmerkingen:

  1. It's genuinely very complex in this active life to listen news on TV, thus I only use internet for that purpose, and take the most recent information.

    BeantwoordenVerwijderen
  2. Ahaa, its fastidious discussion concerning this post at this place at this weblog, I have read all that, so now me also commenting at this place.

    BeantwoordenVerwijderen