---
schema_version: "1"
id: 45aadd5db378f02dc315e0d910dbaf90fd5f5d2db19cc0d786dbc4b0280d1272
title: Error with Output
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_responses_error_with_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_error_with_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8ffb4c976acd8148b784ffb104d2bbf833749862b7c15ba0f34b62daca4b1212
description: Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict.
---
# Error with Output

Contains extra information about errors. In rare cases, an error message isn't enough to describe the reason for a failure. For example, when a conflicting precondition exists, the error result can include the information about the cause of the conflict.

User Interface API enforces Salesforce validation rules. If a validation rule fails, the error is reported here.

<table class="featureTable sort_table" summary="">
        <thead class="thead sorted" align="left">
          <tr>
            <th class="featureTableHeader vertical-align-top " id="d107814e45">Property</th>

            <th class="featureTableHeader vertical-align-top " id="d107814e48">Type</th>

            <th class="featureTableHeader vertical-align-top " id="d107814e51">Description</th>

            <th class="featureTableHeader vertical-align-top " id="d107814e54">Filter Group and Version</th>

            <th class="featureTableHeader vertical-align-top " id="d107814e57">Available Version</th>

          </tr>

        </thead>

        <tbody class="tbody">
          <tr>
            <td class="entry" headers="d107814e45" data-title="Property"><samp class="codeph nolang">enhancedErrorType</samp></td>

            <td class="entry" headers="d107814e48" data-title="Type">String</td>

            <td class="entry" headers="d107814e51" data-title="Description">Indicates the type of the <samp class="codeph nolang">output</samp> property. The
              value is either <samp class="codeph nolang">null</samp> or <samp class="codeph nolang">RecordError</samp>.</td>

            <td class="entry" headers="d107814e54" data-title="Filter Group and Version">Small, 41.0</td>

            <td class="entry" headers="d107814e57" data-title="Available Version">41.0</td>

          </tr>

          <tr>
            <td class="entry" headers="d107814e45" data-title="Property"><samp class="codeph nolang">message</samp></td>

            <td class="entry" headers="d107814e48" data-title="Type">String</td>

            <td class="entry" headers="d107814e51" data-title="Description">Description of the error.</td>

            <td class="entry" headers="d107814e54" data-title="Filter Group and Version">Small, 41.0</td>

            <td class="entry" headers="d107814e57" data-title="Available Version">41.0</td>

          </tr>

          <tr>
            <td class="entry" headers="d107814e45" data-title="Property"><samp class="codeph nolang">output</samp></td>

            <td class="entry" headers="d107814e48" data-title="Type">Any response body</td>

            <td class="entry" headers="d107814e51" data-title="Description">The response body returned by the requested resource. For example, if a successful request
              returns a <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_object_info.htm#ui_api_responses_object_info" title="The metadata for an object.">Object Info</a> response body but an
              error triggers the Error with Output response body, the value of the <samp class="codeph nolang">output</samp> property is an Object Info response body.<p class="p">When an
                error occurs related to record create or update, this value is <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_record_exception.htm#ui_api_responses_record_exception" title="A collection of record exception errors.">Record Exceptions</a>.</p>
            </td>

            <td class="entry" headers="d107814e54" data-title="Filter Group and Version">Small, 41.0</td>

            <td class="entry" headers="d107814e57" data-title="Available Version">41.0</td>

          </tr>

        </tbody>

      </table>