Export (0) Print
Expand All

Error Message Format for Windows SharePoint Services

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Methods for Windows SharePoint Services return error messages by using the following syntax.

<Results>
  <Result ID="0,method-name" Code="HRESULT code">
    <ErrorText>Description of failure</ErrorText>
  </Result>
</Results>

The ID attribute displays the name of the method that generated the error, preceded by its sequence number. The Code attribute contains the text representation of a 32-bit signed decimal integer, to be interpreted as an HRESULT, as shown in the following example.

<Results>
  <Result ID="0,REORDERFIELDS" Code="-2147467259">
    <ErrorText>Fields have been added or removed since you began this 
        editing session. Please refresh your view and try again.
    </ErrorText>
  </Result>
</Results>

In the preceding example, the error number -2147467259 (0x80004005 in hexadecimal) identifies the error E_FAIL.

NoteNote

The language of the error text is based upon the language setting for the server, not for the client.

Show:
© 2014 Microsoft