Documentation Center

Error Report XML Structure

Error Report XML Structure contains a logobject with the exceptions per object

XML Structure

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="logger">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="logs" minOccurs="1" maxOccurs="1" />
      </xs:choice>
      <xs:attribute name="applicationname" use="required" type="xs:string"/>
      <xs:attribute name="userid" use="required" type="xs:string" />
      <xs:attribute name="serverrequestid" use="optional" type="xs:string" />
      <xs:attribute name="serverhostname" use="optional" type="xs:string" />
    </xs:complexType>
  </xs:element>
  <xs:element name="logs">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="error" minOccurs="0" maxOccurs="unbounded" type ="LogEntryComplexType" />
        <xs:element name="warning" minOccurs="0" maxOccurs="unbounded" type ="LogEntryComplexType" />
        <xs:element name="message" minOccurs="0" maxOccurs="unbounded" type ="LogEntryComplexType" />
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="LogEntryComplexType">
    <xs:choice maxOccurs="unbounded">
      <xs:element ref="basedescription" minOccurs="1" maxOccurs="1" />
      <xs:element ref="desc" minOccurs="1" maxOccurs="1" />
      <xs:element ref="param" minOccurs="0" maxOccurs="unbounded" />
      <xs:element ref="relatedinfo" minOccurs="0" maxOccurs="1" />
    </xs:choice>
    <xs:attribute name="logid" use="required" type="xs:string"/>
    <xs:attribute name="resourceid" use="required" type="xs:string"/>
    <xs:attribute name="resourcelib" use="required" type="xs:string"/>
    <xs:attribute name="number" use="required" type="xs:string" />
  </xs:complexType>
  <xs:element name ="basedescription" type="StringContent"/>
  <xs:element name ="desc" type="StringContent"/>
  <xs:element name ="param">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute name ="paramname" use="required" type ="xs:string"/>
          <xs:attribute name ="paramtype" use="required">
            <xs:simpleType>
              <xs:restriction base ="xs:string">
                <xs:enumeration value ="String"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name ="relatedinfo">
    <xs:complexType>
      <xs:choice minOccurs="1" maxOccurs="unbounded">
        <xs:element name="conref" minOccurs="0" maxOccurs="unbounded" type="StringContent"/>
        <xs:element name="hyperlink" minOccurs="0" maxOccurs="unbounded" type ="StringContent" />
        <xs:element name="link" minOccurs="0" maxOccurs="unbounded" type ="StringContent" />
        <xs:element name="varid" minOccurs="0" maxOccurs="unbounded" type ="StringContent" />
        <xs:element ref="ishobject" minOccurs="0" maxOccurs="unbounded" />
        <xs:element ref="parseerror" minOccurs="0" maxOccurs="unbounded" />
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <xs:element name="parseerror">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="reason" minOccurs="1" maxOccurs="1" type="StringContent"/>
        <xs:element name="line" minOccurs="1" maxOccurs="1" type="StringContent"/>
        <xs:element name="linepos" minOccurs="1" maxOccurs="1" type="StringContent"/>
        <xs:element name="errorcode" minOccurs="1" maxOccurs="1" type="StringContent"/>
        <xs:element name="srctext" minOccurs="1" maxOccurs="1" type="StringContent"/>
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <xs:element name="ishobject">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element ref="ishfields" minOccurs="1" maxOccurs="1" />
      </xs:choice>
      <xs:attribute name="ishref" use="required" type="xs:string" />
      <xs:attribute name="ishlogicalref" use="optional" type="xs:string" />
      <xs:attribute name="ishversionref" use="optional" type="xs:string" />
      <xs:attribute name="ishlngref" use="optional" type="xs:string" />
      <xs:attribute name="ishtype" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="ISHNone" />
            <xs:enumeration value="ISHNotFound" />
            <xs:enumeration value="ISHModule" />
            <xs:enumeration value="ISHMasterDoc" />
            <xs:enumeration value="ISHLibrary" />
            <xs:enumeration value="ISHTemplate" />
            <xs:enumeration value="ISHIllustration" />
            <xs:enumeration value="ISHReusedObj" />
            <xs:enumeration value="ISHPublication" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="ishfields">
    <xs:complexType>
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="ishfield"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ishfield">
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="xs:string">
          <xs:attribute name="name" use="required" type="xs:string" />
          <xs:attribute name="level" use="required" type="IshLevel"/>
          <xs:attribute name="ishvaluetype" use="optional" type="IshValueType"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name ="IshLevel">
    <xs:restriction base="xs:string">
      <xs:enumeration value="logical"/>
      <xs:enumeration value="version"/>
      <xs:enumeration value="lng"/>
      <xs:enumeration value="none"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="IshValueType">
    <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
      <xs:enumeration value="value"/>
      <xs:enumeration value="element"/>
      <xs:enumeration value="id"/>
    </xs:restriction>
  </xs:simpleType>
  <!-- Complex types -->
  <xs:complexType name="StringContent">
    <xs:simpleContent>
      <xs:extension base="xs:string" />
    </xs:simpleContent>
  </xs:complexType>
</xs:schema>

Example

<logger applicationname="InfoShareAuthorSQL2012" userid="Admin" serverrequestid="5" serverhostname="APPSERVERNAME">
  <logs>
    <error logid="0" resourceid="InvalidCurrentMetadata" resourcelib="isAuthor" number="-106011">
      <basedescription>
      The supplied expected metadata value "Draft" does not match the current database value "To be reviewed" so we rolled back your operation. 
      To make the operation work you should make sure your value matches the latest database value. [f:158 fe:FSTATUS ft:LOV] [106011;InvalidCurrentMetadata]</basedescription>
      <desc>The supplied expected metadata value "Draft" does not match the current database value "To be reviewed" so we rolled back your operation. 
      To make the operation work you should make sure your value matches the latest database value. [f:158 fe:FSTATUS ft:LOV] [106011;InvalidCurrentMetadata]</desc>
      <param paramname="requiredvalue" paramtype="String">Draft</param>
      <param paramname="actualvalue" paramtype="String">To be reviewed</param>
      <param paramname="fieldid" paramtype="String">158</param>
      <param paramname="fieldelement" paramtype="String">FSTATUS</param>
      <param paramname="fieldtype" paramtype="String">LOV</param>
      <relatedinfo>
        <ishobject ishref="GUID-3621EF6B-7DE9-452B-A04C-28031AC403E9" ishtype="ISHLibrary" ishlogicalref="354987" ishversionref="354988" ishlngref="354989">
          <ishfields>
            <ishfield name="VERSION" level="version">1</ishfield>
            <ishfield name="DOC-LANGUAGE" level="lng">en</ishfield>
            <ishfield name="FSTATUS" level="lng">To be reviewed</ishfield>
          </ishfields>
        </ishobject>
      </relatedinfo>
    </error>
    <error logid="1" resourceid="InvalidStatusTransitionDueToCheckout" resourcelib="isAuthor" number="-273">
      <basedescription>The object cannot be moved to the requested status because it is checked out. [273;InvalidStatusTransitionDueToCheckout]</basedescription>
      <desc>The object cannot be moved to the requested status because it is checked out. [273;InvalidStatusTransitionDueToCheckout]</desc>
      <relatedinfo>
        <ishobject ishref="GUID-4236ADB7-CAB9-4F7D-B794-A33BAD52F8FF" ishtype="ISHLibrary" ishlogicalref="355024" ishversionref="355025" ishlngref="355026">
          <ishfields>
            <ishfield name="VERSION" level="version">1</ishfield>
            <ishfield name="DOC-LANGUAGE" level="lng">en</ishfield>
            <ishfield name="FSTATUS" level="lng">Draft</ishfield>
          </ishfields>
        </ishobject>
      </relatedinfo>
    </error>
  </logs>
</logger>