Namespace: Microsoft.BusinessData.SharePoint

The MetadataException complex type is an error complex type that contains information about a protocol-server-side error because of a syntactic or semantic violation of a MetadataModel constraint in the  metadata store. The complex type MUST only be included as part of a SOAP fault as specified in Complex Types (section 2.2.4).

 <xs:complexType name="MetadataException" xmlns:xs="http://www.w3.org/2001/XMLSchema">
     <xs:element minOccurs="0" name="explicitMessage" type="xs:boolean"/>
     <xs:element minOccurs="0" name="innerExceptionToStringed" nillable="true" type="xs:string"/>
     <xs:element minOccurs="0" name="innerExceptionTypeFullName" nillable="true" type="xs:string"/>
     <xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
     <xs:element minOccurs="0" name="metadataObjectTypeName" nillable="true" type="xs:string"/>
     <xs:element minOccurs="0" name="serverStackTrace" nillable="true" type="xs:string"/>

explicitMessage: An implementation-specific error message detailing the constraint violation.

innerExceptionToStringed: The detailed reason for the error.

innerExceptionTypeFullName: A name for the kind of violation that caused this fault. The client MUST ignore this value.

message: The detailed reason for the error.

metadataObjectTypeName: The type of MetadataObject being accessed when the error occurred.

serverStackTrace: The implementation-specific representation of the location on the server where the error is occurred.