---
schema_version: "1"
id: 7477f95fdf210e5bb8a46548f8ef1b27334ad5863f5a6b67a1248c83b96a8701
title: Error
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_error.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_error.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 83f4ded4bf50e1966d84aa82ef7f979e17eaf9a658691fdfc50740bfa518dc86
description: Represents an error that occurred during a synchronous CRUD (createMetadata(), updateMetadata(), or deleteMetadata()) operation.
---
# Error

Represents an error that occurred during a synchronous CRUD (createMetadata(), updateMetadata(), or deleteMetadata()) operation.

## Version

Available in API version 30.0 and later.

## extendedErrorDetails

- **Type**: ExtendedErrorDetails
- **Description**: More details about the error, including an extended error code and extra error properties, when available. Reserved for future use. For a description of the ExtendedErrorDetails element, see [ExtendedErrorDetails](https://developer.salesforce.com/docs/atlas.en-us.264.0.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm#extended_error_details_topic) in the SOAP API Developer Guide.

## fields

- **Type**: string\[\]
- **Description**: An array containing names of fields that affected the error condition.

## message

- **Type**: string
- **Description**: The error message text.

## statusCode

- **Type**: StatusCode
- **Description**: A status code corresponding to the error. For a description of each StatusCode value, see [StatusCode](https://developer.salesforce.com/docs/atlas.en-us.264.0.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm#statuscode_topic) in the SOAP API Developer Guide.