Multiple data type for BizTalk Schema elements



The XML Validator failed to validate. Details: The xsi:type attribute value ‘’ is not valid for the element ‘’, either because it is not a type validly derived from the type in the schema, or because it has xsi:type derivation blocked.



This issue is occurred when we validate the schema. Main reason is that for a element field the data type is defined more than one format e.g. in below xml file value field has data type double and string both. so when we validate this xml with schema then it throws exception.


When any element has more than one datatype then we need also define this in schema property as below:

Select element and open properties window of that element as below:

Expend Advanced in Properties-> Derived By->  Select Union


Now select multiple datatypes which is required in Member Types.

Note: You can not select all data types in Member Types



Now save the change and validate the xml with validate instance, it will working fine.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s