Core Data Types Used in API Calls

An extensive list of core data types and error-handling objects used in API calls.

Many calls in the API use these data types.

The API also uses several error-handling objects. If an error occurs during a SOAP request, the API returns a SOAP fault message. The message contains different content, depending on the type of error:

  • If an error affects the entire request, an API Fault Element, is returned, containing an ExceptionCode and the associated error message text.
  • If the error affects some records and not others, an Error is returned, containing a StatusCode. These errors typically occur during bulk operations, such as creating, updating, or deleting multiple records with a single call.

You can see the list of exception codes, status codes, and extended error codes in the WSDL file for your org. Some codes don’t appear in your WSDL, depending on the features enabled. See Generating the WSDL File for Your Organization.

sObject 

An sObject represents an object, such as an Account or Campaign. For a list of standard objects, see Standard Objects.

An sObject has these properties:

NameTypeDescription
fieldsToNullstring[]Array of one or more field names whose value you want to explicitly set to null. When used with update() or upsert(), you can specify only those fields that you can update and that have the nillable property. When used with create(), you can specify only those fields that you can create and that have the nillable or the default on create property. For example, if specifying an ID field or required field results in a runtime error, you can specify that field name in fieldsToNull. Similarly, if a picklist field has a default value and you want to set the value to null instead, specify the field in fieldsToNull.
IDIDUnique ID for this individual object. For the create() call, this value is null. For all other API calls, this value must be specified.

API Fault Element 

An ApiFault element contains information about a fault that occurs when processing a service request. The ApiFault element has these properties.

NameTypeDescription
exceptionCodeExceptionCodeA code that characterizes the exception.
exceptionMessagestringException message text.
extendedErrorDetailsExtendedErrorDetailsAdditional details about the exception, including an extended error code and extra error properties, when available.

The following table lists the API fault elements that represent all the API faults that can occur.

FaultDescription
ApiQueryFaultThe row and column numbers where the problem occurred.
LoginFaultAn error occurred during the login() call.
InvalidSObjectFaultAn invalid sObject in a describeSObject(), describeSObjects(), describeLayout(), describeDataCategoryGroups(), describeDataCategoryGroupStructures(), create(), update(), retrieve(), or query() call.
InvalidFieldFaultAn invalid field in a retrieve() or query() call.
InvalidOrNullForRestrictedPicklistAn invalid appMenuType in a describeAppMenu() call.
MalformedQueryFaultA problem in the queryString passed in a query() call.
InvalidQueryLocatorFaultA problem in the queryLocator passed in a queryMore() call.
MalformedSearchFaultA problem in the search passed in a search() call.
InvalidIdFaultA specified ID was invalid in a setPassword() or resetPassword() call.
UnexpectedErrorFaultAn unexpected error occurred. The error isn’t associated with any other API fault.

ExceptionCode 

These exception codes can be returned with an error.

Exception codeDescription
APEX_REST_SERVICES_DISABLEDApex REST Services permission isn’t enabled for the user. Enable the user permission to access Apex classes and methods as REST web services.
API_CURRENTLY_DISABLEDBecause of a system problem, API functionality is temporarily unavailable.
APPLICATION_ALREADY_EXISTSThe application already exists.
PI_DISABLED_FOR_ORGAPI access isn’t enabled for the org. Contact Salesforce to enable API access.
BIG_OBJECT_UNSUPPORTED_OPERATIONThis operation isn’t supported for big objects.
BILLING_ENTITIES_NO_ACCESSThis user requires at least Modify All Records access to billing schedule groups.
CANNOT_UPDATE_IS_THIRD_PARTYA contact address can’t be updated because it belongs to a third party.
CANNOT_UPDATE_PAYMENT_METHOD_SETA payment method set can’t be updated.
CANT_ADD_STANDARD_PORTAL_USER_TO_TERRITORYA user with a standard portal license can’t be added to a territory.
CART_ITEM_NOT_FOUNDA user tried to access a cart item, but the system couldn’t find the cart item, or the user had insufficient permissions.
CART_NOT_FOUNDA user tried to access a cart, but the system couldn’t find the cart, or the user had insufficient permissions.
CATEGORY_NOT_FOUNDThe product category can’t be found.
CHECKOUT_CONFLICTA user tried to perform an action that conflicts with the current state of the cart or checkout session.
CHECKOUT_EXPIREDA checkout session is no longer available because its time to live has expired.
CHECKOUT_INVALIDATEDThe store administrator invalidated a checkout session.
CHECKOUT_LOCKEDA user tried to perform an action that the system can’t perform until another concurrent operation is completed.
CHECKOUT_NOT_FOUNDA user tried to access a checkout session, but the system couldn’t find the session, or the user had insufficient permissions.
CIRCULAR_OBJECT_GRAPHThe request failed because it contained a circular object reference.
CLIENT_NOT_ACCESSIBLE_FOR_USERThe current user doesn’t have permission to access the specified client.
CLIENT_REQUIRE_UPDATE_FOR_USERThe current user is required to use a newer version of the specified client and doesn’t have access until the client is updated.
CLONE_NOT_SUPPORTEDThis entity doesn’t support the clone operation.
CLONE_FIELD_INTEGRITY_EXCEPTIONA field integrity exception occurred during the clone operation.
COMMERCE_ADMIN_MISCONFIGURATIONA configuration set by a Commerce admin is causing an error.
CONTENT_ALREADY_AN_ASSET_EXCEPTIONThis file is already an asset.
CONTENT_HUB_AUTHENTICATION_EXCEPTIONThe authentication token expired.
CONTENT_HUB_FILE_HAS_NO_URL_EXCEPTIONCan’t open the file.
CONTENT_HUB_FILE_NOT_FOUND_EXCEPTIONObject not found.
CONTENT_HUB_INVALID_PAGE_NUMBER_EXCEPTIONThis document has no content.
CONTENT_CUSTOM_DOWNLOAD_EXCEPTIONCreate a custom error message for this ExceptionCode in your Apex implementation.
CONTENT_HUB_INVALID_OBJECT_TYPE_EXCEPTIONInvalid object type.
CONTENT_HUB_INVALID_RENDITION_PAGE_NUMBER_EXCEPTIONNot a valid rendition of the page number.
CONTENT_HUB_ITEM_TYPE_NOT_FOUND_EXCEPTIONItem type not found.
CONTENT_HUB_OBJECT_NOT_FOUND_EXCEPTIONObject not found.
CONTENT_HUB_OPERATION_NOT_SUPPORTED_EXCEPTIONOperation not supported.
CONTENT_HUB_SECURITY_EXCEPTIONUnauthorized operation.
CONTENT_HUB_TIMEOUT_EXCEPTIONOperation timed out.
CONTENT_HUB_UNEXPECTED_EXCEPTIONAn error occurred while performing this operation.
CONTENT_IMAGE_SCALING_INVALID_ARGUMENTS_EXCEPTIONInvalid argument type for the operation.
CONTENT_IMAGE_SCALING_INVALID_IMAGE_EXCEPTIONThe specified image isn’t valid.
CONTENT_IMAGE_SCALING_MAX_RENDITIONS_EXCEPTIONYou reached the maximum number of renditions for the image.
CONTENT_IMAGE_SCALING_TIMEOUT_EXCEPTIONThe image scaling operation timed out.
CONTENT_IMAGE_SCALING_UNKNOWN_EXCEPTIONThe system encountered an internal error during image scaling. Report this problem to Salesforce.
CONTENT_TYPE_DISABLED_FOR_APIThe content type is disabled for the API.
DELETE_REQUIRED_ON_CASCADEThe delete operation triggers a cascade delete on a record, but the logged-in user doesn’t have delete permission on that related object.
DEPENDENCY_API_UNSUPPORTED_EXCEPTIONThis operation isn’t supported by the Dependency API.
DUPLICATE_COMM_NICKNAMEYou can’t create a user with the same nickname as another user.
DUPLICATE_VALUEYou can’t supply a duplicate value for a field that must be unique. For example, you can’t submit two copies of the same session ID in a invalidateSessions() call.
EMAIL_BATCH_SIZE_LIMIT_EXCEEDEDA method tried to process more email records than the maximum batch size.
EMAIL_TO_CASE_INVALID_ROUTINGAn Email-to-Case record was submitted for processing but the feature isn’t enabled.
EMAIL_TO_CASE_LIMIT_EXCEEDEDThe daily converted email limit for the Email-to-Case feature was exceeded.
EMAIL_TO_CASE_NOT_ENABLEDThe Email-to-Case feature isn’t enabled.
ENTITY_NOT_QUERYABLEThe object you’re querying isn’t supported. Use an object that User Interface API supports.
EXCEEDED_ID_LIMITToo many IDs were specified in a call. For example, more than 2000 IDs were requested in a retrieve() call, or more than 200 session IDs were specified in a logout() call.
EXCEEDED_LEAD_CONVERT_LIMITToo many IDs were sent to a convertLead() call.
EXCEEDED_MAX_SEMIJOIN_SUBSELECTSToo many topic filters were applied to a list view.
EXCEEDED_MAX_SIZE_REQUESTThe size of the message sent to the API exceeded 50 MB.
EXCEEDED_MAX_TYPES_LIMITThe number of object types to describe is too large.
EXCEEDED_QUOTAThe size limit for org data storage was exceeded during a create() call.
EXTERNAL_SERVICE_CONNECTION_EXCEPTIONThe application can’t connect to an external service and an HTTP error is returned. For example, you can receive this exception code when the server returns a 502 Bad Gateway error, 403 Forbidden error, or 503 Service Unavailable error.
EXTERNAL_SERVICE_EXCEPTIONThe external service returned an error.
EXTERNAL_SERVICE_INVALID_STATE_EXCEPTIONThe service is in an invalid state. For example, when using External Services, you receive this exception code if a validation error occurs when invoking an external service action.
FIELD_INTEGRITY_EXCEPTIONAn attempt was made to pass an incorrect value to a field.
FUNCTIONALITY_NOT_ENABLEDFunctionality has been temporarily disabled. Other calls continue to work.
GONEThe requested resource or operation is retired or removed. Delete or update any references to the resource or operation.
GUEST_INSUFFICIENT_ACCESSThe guest user doesn’t have sufficient access to perform the operation.
IAS_TIMEOUT_EXCEPTIONOperation timeout.
IAS_NOT_FOUNDThe reservation ID doesn’t exist.
ID_REQUIREDQueries of the SubscriberPackageVersion Tooling API object require an ID.
IDEMPOTENCY_FEATURE_NOT_ENABLEDIdempotent record writes aren’t enabled in your org. Contact Salesforce to enable this feature.
IDEMPOTENCY_NOT_SUPPORTEDThe resource or HTTP method for the current request isn’t supported for idempotency.
INACTIVE_OWNER_OR_USERhe user or record owner isn’t active.
INACTIVE_PORTALThe referenced portal is inactive.
INDEX_NOT_FOUNDThe search index can’t be found.
INSTALL_KEY_INVALIDThe installation key specified in the query of the SubscriberPackageVersion Tooling API object is invalid.
INSTALL_KEY_REQUIREDThe queried SubscriberPackageVersion Tooling API object is protected by a package installation key.
INSUFFICIENT_ACCESSThe user doesn’t have sufficient access to perform the operation.
INSUFFICIENT_ACCESS_APEX_METADATA_DEPLOYThe current context doesn’t have the necessary permissions to use Metadata API in Apex. For permissions and packaging considerations, see Metadata API Edit Access and Security Considerations.
INSUFFICIENT_BENEFIT_REMAININGThe remaining amount for the specified benefit assignment {id} is less than the disbursement amount.
INTERNAL_ERRORThe system encountered an internal error. Report this problem to Salesforce.
INVALID_ACCOUNTING_SETThe Accounting Set isn’t active or doesn’t exist.
INVALID_ACTION_VERSIONThe version of the action is invalid.
INVALID_ASSIGNMENT_RULEAn invalid AssignmentRuleHeader value was specified.
INVALID_BATCH_REQUESTThe batch record operation isn’t valid. See Create a Batch of Records.
INVALID_BATCH_SIZEThe query options have an invalid batch size value.
INVALID_BUSINESS_HOURS_NAMEThe name of the business hours is invalid.
INVALID_CLIENTThe client is invalid.
INVALID_CROSS_REFERENCE_KEYAn invalid foreign key can’t be set on a field. For example, an object share, such as AccountShare, can’t be deleted because the share row is a result of a sharing rule.
INVALID_DEFINITIONThe DPE Definition associated with the Accounting Set isn’t active.
INVALID_EVB_OPERATIONThe operation based on expression-based visibility rules is invalid.
INVALID_FIELDThe specified field name is invalid.
INVALID_FILTER_LANGUAGEThe specified language can’t be used as a filter.
INVALID_FILTER_VALUEA SOQL query with LIKE specified an invalid character, for example, an incorrectly placed asterisk (*). Correct the query and resubmit.
INVALID_GOOGLE_DOCS_URLAn invalid Salesforce record URL was used when trying to associate a Google Doc to that record. Correct the URL before trying the operation again.
INVALID_ID_FIELDThe specified ID is correctly formatted but isn’t valid. For example, the ID is of the wrong type.
INVALID_IDEMPOTENCY_KEYThe idempotency key in the request header must follow the UUID V4 format.
INVALID_INPUTThe batch record input isn’t valid. See Create a Batch of Records.
INVALID_LOCATORThe locator is invalid.
INVALID_LOGINThe login() credentials aren’t valid, or the maximum number of logins have been exceeded. Contact your administrator for more information.
INVALID_NEW_PASSWORDThe new password doesn’t conform with the password policies of the org.
INVALID_OPERATIONThe client application tried to modify a record that an approval process has locked.
INVALID_OPERATION_WITH_EXPIRED_PASSWORDDue to password expiration, a valid password must be set using setPassword() before the call can be invoked.
INVALID_QUERY_FILTER_OPERATORAn invalid operator was used in the query() filter clause, at least for that field.
INVALID_QUERY_KEYThe query key provided is invalid.
INVALID_QUERY_LOCATORThe query locator in the call is invalid or doesn’t exist. More results using the queryMore() call (SOAP API) or the nextRecordUrl call (REST API) weren’t found. Try the call again with a different query locator.
INVALID_QUERY_SCOPEThe specified search scope is invalid.
INVALID_QUERY_VALUEThe query value provided is invalid.
INVALID_REPLICATION_DATEThe date for replication is out of the allowed range, such as before the org was created.
INVALID_RECORD_ATTRIBUTE_VALUEThe specified Record Attribute isn’t valid.
INVALID_RUNTIME_VALUEThe specified Runtime isn’t valid.
INVALID_SETUP_OWNERThe setup owner must be an Organization, Profile, or User.
INVALID_SEARCHThe search() call has invalid syntax or grammar. For more information, see the Salesforce SOQL and SOSL Reference Guide.
INVALID_SEARCH_SCOPEThe specified search scope is invalid.
INVALID_SESSION_IDThe specified sessionId is malformed (incorrect length or format) or has expired. Log in again to start a new session.
INVALID_SOAP_HEADERThere’s an error in the SOAP header. If you’re migrating from an earlier version of the API, be advised that the SaveOptions header can’t be used with API version 6.0 or later. Use AssignmentRuleHeader instead.
INVALID_SSO_GATEWAY_URLThe URL provided to configure the Single Sign-On gateway wasn’t a valid URL.
INVALID_TYPEThe specified sObject type is invalid.
INVALID_TYPE_FOR_OPERATIONThe specified sObject type is invalid for the specified operation.
INVALID_VERSIONThe requested resource no longer exists. Confirm that the API version number used in the request is supported, and update if needed.
KEY_HAS_BEEN_DESTROYEDWe couldn’t access your files and attachments because they’re encrypted with a key that has been destroyed. For more information, contact your Salesforce admin.
LIMIT_EXCEEDEDAn array is too long. For example, there are too many BCC addresses, targets, or email messages.
LOGIN_CHALLENGE_ISSUEDAn email containing a security token was sent to the user’s email address because the user logged in from an untrusted IP address. The user can’t log in until the security token is added to the end of the password.
LOGIN_CHALLENGE_PENDINGThe user logged in from an untrusted IP address, but a security token hasn’t yet been issued.
LOGIN_DURING_RESTRICTED_DOMAINThe user isn’t allowed to log in from this IP address.
LOGIN_DURING_RESTRICTED_TIMEThe user isn’t allowed to log in during this time period.
LOGIN_MUST_USE_SECURITY_TOKENThe user must add a security token to the end of the password to log in.
MALFORMED_IDAn invalid ID string was specified. For information about IDs, see ID Field Type.
MALFORMED_QUERYAn invalid query string was specified. For example, the query string was longer than 100,000 characters or exceeds the limit of 500 junction IDs allowed in a single query.
MALFORMED_SEARCHAn invalid search string was specified. For example, the search string was longer than 100,000 characters.
MISMATCHING_VERSIONSThe subscriber org is using an API version that’s lower than the API version of the SubscriberPackageVersion you attempted to install. When installing a SubscriberPackageVersion, the installation org must be set to the same or a higher API version as the package you’re installing.
MISSING_ARGUMENTA required argument is missing.
MIXED_DML_OPERATIONThere are limits on what kinds of DML operations can be performed in the same transaction. For more information, see Data Manipulation Language in the Apex Developer Guide.
MODEL_NOT_ACTIVEThe model isn’t active.
MODIFIEDThe describe call response has changed since the specified date.
MULTIPLE_RECORDS_FOUNDMultiple records are found during the process.
NO_DEFINITION_ASSOCIATEDThe Accounting Set doesn’t have a DPE Definition.
NO_BUSINESS_HOURS_FOUNDBusiness hours aren’t defined.
NOT_ACCEPTABLEAn XML file is blocked.
NOT_MODIFIEDThe describe call response hasn’t changed since the specified date.
NO_SOFTPHONE_LAYOUTIf an org has the CTI feature enabled, but no softphone layout has been defined, this exception is returned when a describe call is issued. This exception is most often caused because no call center has been defined. A default softphone layout is created during call center definition. If an org doesn’t have the CTI feature enabled, FUNCTIONALITY_NOT_ENABLED is returned instead.
NO_RECIPIENTSNo recipients specified.
NUMBER_OUTSIDE_VALID_RANGEThe number specified is outside the valid range for the field.
OPERATION_TOO_LARGEThe query returned too many results. If a user without the View All Data permission runs certain queries and many records are returned, the queries require sharing rule checking. For example, consider queries that are run on objects, such as Task, that use a polymorphic foreign key. These queries return this exception because the operation requires too many resources. To correct, add filters to the query to narrow the scope, or use filters such as date ranges to break up the query into a series of smaller queries.
OPERATION_WITH_CALLBACK_ENQUEUEDThe operation with callback is enqueued.
ORDER_MANAGEMENT_ACTION_NOT_ALLOWEDThe requested action isn’t allowed.
ORG_LOCKEDThe org is locked. Contact Salesforce to unlock the org.
ORG_NOT_OWNED_BY_INSTANCEThe user tried to log in to the wrong server instance. Choose another server instance, use your org’s My Domain login URL, or log in at https://login.salesforce.com.
PARAMETER_TOO_LARGEA user provided a parameter value that exceeded the maximum size.
PASSWORD_LOCKOUTThe user has exceeded the allowed number of login attempts. The user must contact an administrator to regain login access.
PAYLOAD_ITEM_MAP_ERRORA catalog payload related to a given productId and IndexInfoId can’t be found.
PORTAL_NO_ACCESSAccess to the specified portal isn’t available.
PRODUCT_NOT_FOUNDThe product can’t be found.
QUERY_TIMEOUTThe query timed out. For more information on query limits and how to avoid them, see SOQL and SOSL Limits for Search Queries in the Developer Limits and Allocations Quick Reference and SOQL SELECT Syntax in the Salesforce SOQL and SOSL Reference Guide.
QUERY_TOO_COMPLICATEDSOQL query is either selecting too many fields or there are too many filter conditions. Try reducing the number of formula fields referenced in the query.
REALTIME_PROCESSING_TIME_EXCEEDED_LIMITThe limit for real-time processing has been exceeded.
RECORD_NOT_FOUNDThe record can’t be found.
REFRESH_FAILEDThe refresh failed.
REPORT_EXPORT_LIMIT_EXCEEDEDThe limit for exporting Lightning reports has been exceeded.
REQUEST_LIMIT_EXCEEDEDThe request exceeded either the concurrent request limit or the request rate limit for your org. For details on API request limits, see API Usage Metering.
REQUEST_RUNNING_TOO_LONGA request took too long to be processed.
SERVER_UNAVAILABLEA server that’s necessary for this call is unavailable. Other types of requests could still work.
SPECIFICATION_GENERAL_EXCEPTIONThere was a problem generating the top-level OpenAPI 3 (OAS3) specification. Review your input data and try again.
SSO_SERVICE_DOWNThe service was unavailable, and an authentication call to the org’s specified Single Sign-On server failed.
STATE_TRANSITION_NOT_ALLOWEDThe requested transition isn’t allowed.
TOO_MANY_APEX_REQUESTSToo many Apex requests were issued. If this exception persists, contact Salesforce Customer Support.
TRIAL_EXPIREDThe trial period for the org has expired. A representative from the company must contact Salesforce to re-enable the org.
TXN_SECURITY_APEX_ERRORWe can’t complete the action due to an Apex exception in your org’s Transaction Security policy. For help, contact your Salesforce admin.
TXN_SECURITY_METERING_ERRORWe can’t complete the action because enabled transaction security policies took too long to complete. For help, contact your Salesforce admin.
TXN_SECURITY_NO_ACCESSWe can’t complete the action because you don’t have access. For help, contact your Salesforce admin.
TXN_SECURITY_RUNTIME_ERRORWe can’t complete the action due to an unexpected error while executing your org’s Transaction Security policy. Contact Salesforce Support and provide the following error information.
UNPROCESSABLE_REQUESTThe request couldn’t be processed.
UNSUPPORTED_API_VERSIONA method call was made that doesn’t exist in the accessed API version, for example, trying to use upsert() (new in 8.0) against version 5.0.
UNSUPPORTED_CLIENTThis version of the client is no longer supported.
WEBSTORE_NOT_FOUNDThe webstore can’t be found.

Error 

An Error contains information about an error that occurred during a create(), merge(), process(), update(), upsert(), delete(), or undelete() call. For more information, see Error Handling. An Error has these properties:

NameTypeDescription
statusCodeStatusCodeA code that describes the error.
messagestringError message text.
fieldsstring[]Array of one or more field names. Identifies which fields in the object, if any, affected the error condition.
extendedErrorDetailsExtendedErrorDetailsMore details about the error, including an extended error code and extra error properties, when available.

If your org has active duplicate rules and a duplicate is detected, the SaveResult includes an error with a data type of DuplicateError.

Note

StatusCode 

An error can return any of these API status codes.

Status codeDescription
APEX_DATA_ACCESS_RESTRICTIONThe DML operations aren’t allowed on the user object in parallel Apex tests. Consider creating a user in the test class instead.
ALL_OR_NONE_OPERATION_ROLLED_BACKThe bulk operation was rolled back because one of the records wasn’t processed successfully. See AllOrNoneHeader.
ALREADY_APPLIEDThe promotion coupon has already been applied to the cart.
ALREADY_IN_PROCESSYou can’t submit a record that is already in an approval process. Wait for the previous approval process to complete before resubmitting a request with this record.
ASSIGNEE_TYPE_REQUIREDDesignate an assignee for the approval request (ProcessInstanceStep or ProcessInstanceWorkitem).
AURA_COMPILE_ERRORA Lightning component contains an error and isn’t compiling.
AUTH_PROVIDER_NEEDS_AUTHThe authentication provider can’t connect without proper authentication.
AUTH_PROVIDER_NOT_FOUNDThe authentication provider can’t be found.
BAD_CUSTOM_ENTITY_PARENT_DOMAINThe changes you’re trying to make can’t be completed because changes to the associated master-detail relationship can’t be made.
BAD_REQUESTInvalid or syntax errors in the API request. Check the request body and the parameters.
BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLEDYour client application blind carbon-copied an email address even though the org’s Compliance BCC Email option is enabled. This option specifies a particular email address that automatically receives a copy of all outgoing email. When this option is enabled, you can’t BCC any other email address. To disable the option, log in to the user interface and from Setup, enter Compliance BCC Email in the Quick Find box, then select Compliance BCC Email.
BCC_SELF_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLEDYour client application blind carbon-copied the logged-in user’s email address even though the org’s BCC COMPLIANCE option is set to true. This option specifies a particular email address that automatically receives a copy of all outgoing email. When this option is enabled, you can’t BCC any other email address. To disable the option, log in to the user interface and from Setup, enter Compliance BCC Email in the Quick Find box, then select Compliance BCC Email.
CANNOT_CASCADE_PRODUCT_ACTIVEAn update to a product caused by a cascade can’t be done because the associated product is active.
CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELDYou can’t change the type of a field that is referenced in an Apex script.
CANNOT_CREATE_ANOTHER_MANAGED_PACKAGEYou can create only one managed package in an org.
CANNOT_DEACTIVATE_DIVISIONYou can’t deactivate Divisions if an assignment rule references divisions or if the DefaultDivision field on a user record isn’t set to null.
CANNOT_DELETE_LAST_DATED_CONVERSION_RATEIf dated conversions are enabled, you must have at least one DatedConversionRate record.
CANNOT_DELETE_MANAGED_OBJECTYou can’t modify components that are included in a managed package.
CANNOT_DISABLE_LAST_ADMINYou must have at least one active administrator user.
CANNOT_ENABLE_IP_RESTRICT_REQUESTSIf you exceed the limit of five IP ranges specified in a profile, you can’t enable restriction of login by IP addresses. Reduce the number of specified ranges in the profile and try the request again.
CANNOT_EXECUTE_FLOW_TRIGGERThe flow trigger or the flow failed to execute. Try again. If the issue persists, debug the flow in Flow Builder.
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITYYou don’t have permission to create, update, or activate the specified record.
CANNOT_MODIFY_MANAGED_OBJECTYou can’t modify components that are included in a managed package.
CANNOT_RENAME_APEX_REFERENCED_FIELDYou can’t rename a field that is referenced in an Apex script.
CANNOT_RENAME_APEX_REFERENCED_OBJECTYou can’t rename an object that is referenced in an Apex script.
CANNOT_REPARENT_RECORDYou can’t define a new parent record for the specified record.
CANNOT_RESOLVE_NAMEA sendEmail() call couldn’t resolve an object name.
CANNOT_UPDATE_CONVERTED_LEADA converted lead couldn’t be updated.
CANNOT_POST_TO_ARCHIVED_GROUPIf the group is archived, you can’t post to a group.
CANT_DISABLE_CORP_CURRENCYYou can’t disable the corporate currency for an org. To disable a currency that is set as the corporate currency, first use the user interface to change the corporate currency to a different currency. Then disable the original currency.
CANT_UNSET_CORP_CURRENCYYou can’t change the corporate currency for an org from the API. Use the user interface to change the corporate currency.
CHECKOUT_UNAUTHORIZEDYou don’t have access to the checkout resource. Only customers with access to the store and cart can access the checkout resource.
CHILD_SHARE_FAILS_PARENTIf you don’t have appropriate permissions on a parent record, you can’t change the owner of or define sharing rules for a child record. For example, you can’t change the owner of a contact record if you can’t edit its parent account record.
CIRCULAR_DEPENDENCYYou can’t create a circular dependency between metadata objects in your org. For example, public group A can’t include public group B, if public group B already includes public group A.
COMMUNITY_NOT_ACCESSIBLEYou don’t have permission to access the Experience Cloud site that this entity belongs to. You must be given permission to access the site before you can access this entity.
CONFLICTYou have a request conflict with the current state of the target resource.
CONFLICTING_ENVIRONMENT_HUB_MEMBERThe specified org is already a member of a different Environment Hub.
CONFLICTING_SSO_USER_MAPPINGThis org is already a member of this Environment Hub via a different user.
CONTENT_NOT_FOUNDWe couldn’t find the requested content.
CONTENT_TYPE_NOT_FOUNDThe content type can’t be found.
COUPON_REDEMPTION_LIMIT_EXCEEDEDYou’ve reached the maximum number of times this coupon can be redeemed.
CUSTOM_CLOB_FIELD_LIMIT_EXCEEDEDYou can’t exceed the maximum size for a CLOB field.
CUSTOM_ENTITY_OR_FIELD_LIMITYou’ve reached the maximum number of custom objects or custom fields for your org.
CUSTOM_FIELD_INDEX_LIMIT_EXCEEDEDYou’ve reached the maximum number of indexes on a field for your org.
CUSTOM_INDEX_EXISTSYou can create only one custom index per field.
CUSTOM_LINK_LIMIT_EXCEEDEDYou’ve reached the maximum number of custom links for your org.
CUSTOM_METADATA_LIMIT_EXCEEDEDYour org has reached its custom metadata maximum limit.
CUSTOM_SETTINGS_LIMIT_EXCEEDEDYour org has reached its custom settings maximum limit.
CUSTOM_TAB_LIMIT_EXCEEDEDYou’ve reached the maximum number of custom tabs for your org.
DATACLOUDADDRESS_NO_RECORDS_FOUNDRecords for the Data Cloud address can’t be found.
DATACLOUDADDRESS_PROCESSING_ERRORAn error occurred when processing the Data Cloud address.
DATACLOUDADDRESS_SERVER_ERRORThe system encountered a server error.
DELETE_FAILEDYou can’t delete a record because it is in use by another object.
DEPENDENCY_EXISTSYou can’t perform the requested operation because of an existing dependency on the specified object or field.
DUPLICATE_CASE_SOLUTIONYou can’t create a relationship between the specified case and the solution because there’s currently an existing one.
DUPLICATE_CUSTOM_ENTITY_DEFINITIONCustom object or custom field IDs must be unique.
DUPLICATE_CUSTOM_TAB_MOTIFCustom tab motif names must be unique.
DUPLICATE_DEVELOPER_NAMEYou can’t create a custom object or custom field with a duplicate developer name.
DUPLICATES_DETECTEDDuplicate records have been detected. Used for an Error object with a data type of DuplicateError.
DUPLICATE_EXTERNAL_IDA user-specified external ID matches more than one record during an upsert.
DUPLICATE_MASTER_LABELYou can’t create a custom object or custom field with a duplicate name.
DUPLICATE_SENDER_DISPLAY_NAMEA sendEmail() call couldn’t choose between OrgWideEmailAddress.DisplayName or senderDisplayName. Define only one of the two fields.
DUPLICATE_USERNAMEA create, update, or upsert failed because of a duplicate username.
DUPLICATE_VALUEYou can’t supply a duplicate value for a field that must be unique. For example, you can’t submit two copies of the same session ID in a invalidateSessions() call.
EMAIL_ADDRESS_BOUNCEDEmails to one or more recipients have bounced. Check the email addresses to make sure that they’re valid.
EMAIL_EXTERNAL_TRANSPORT_PERMISSION_ERRORYou don’t have permission to access the Gmail or Outlook365 service.
EMAIL_EXTERNAL_TRANSPORT_TOO_MANY_REQUESTS_ERRORGmail or Outlook365 has determined that too many requests are sent in a given amount of time.
EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERRORBecause of an error earlier in the call, the current email wasn’t processed.
EMAIL_OPTED_OUTA single email message was sent with the REJECT setting in the optOutPolicy field to recipients that have opted out from receiving email. To avoid this error, set the optOutPolicy field to another value.
EMAIL_TEMPLATE_FORMULA_ERRORThe email template is invalid and can’t be rendered. Check the template for incorrectly specified merge fields.
EMAIL_TEMPLATE_MERGEFIELD_ACCESS_ERRORYou don’t have access to one or more merge fields in this template. To request access, contact your Salesforce administrator.
EMAIL_TEMPLATE_MERGEFIELD_ERROROne or more merge fields don’t exist. Check the spelling of field names.
EMAIL_TEMPLATE_MERGEFIELD_VALUE_ERROROne or more merge fields have no value. To provide values, update the records before sending the email.
EMAIL_TEMPLATE_PROCESSING_ERRORThe merge fields in this email template can’t be processed. Ensure that your template body is valid.
EMPTY_SCONTROL_FILE_NAMEThe Scontrol file name was empty, but the binary wasn’t empty.
ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATEIf the value in a record’s LastModifiedDate field is later than the current date, you can’t update the record.
ENTITY_IS_ARCHIVEDIf a record has been archived, you can’t access it.
ENTITY_IS_DELETEDYou can’t reference an object that has been deleted. This status code occurs only in API version 10.0 and later. Previous releases of the API use INVALID_ID_FIELD for this error.
ENTITY_IS_LOCKEDYou can’t edit a record because an approval process has locked it.
ENVIRONMENT_HUB_MEMBERSHIP_CONFLICTYou can’t add an org to more than one Environment Hub.
ERROR_IN_MAILERAn email address is invalid, or another error occurred during an email-related transaction.
EXCEEDED_MAX_SEMIJOIN_SUBSELECTS_WRITEToo many topic filters were applied to a list view.
EXCHANGE_WEB_SERVICES_URL_INVALIDThe Exchange web services URL is invalid.
EXTERNAL_RESOURCE_FORBIDDENYou don’t have access to the necessary external resources, such as OAuth doesn’t have the proper permissions.
FAILED_ACTIVATIONThe activation of a Contract failed.
FIELD_CUSTOM_VALIDATION_EXCEPTIONYou can’t define a custom validation formula that violates a field integrity rule.
FIELD_FILTER_VALIDATION_EXCEPTIONYou can’t violate field integrity rules.
FIELD_KEYWORD_LIST_MATCH_LIMITThe comment or message contains too many keyword matches for unacceptable content.
FILE_EXTENSION_NOT_ALLOWEDThe specified file extension isn’t allowed. If you include multiple file extensions, separate them with a comma.
FILE_SIZE_LIMIT_EXCEEDEDThe file size has exceeded the limit.
FILTERED_LOOKUP_LIMIT_EXCEEDEDThe creation of the lookup filter failed because it exceeds the maximum number of lookup filters allowed per object.
FIELD_MAPPING_ERRORA field-mapping error has occurred.
FIELD_MODERATION_RULE_BLOCKThe comment or message matches a moderation rule criteria and can’t be published.
FLOW_EXCEPTIONAn error that occurs when you attempt to save a flow. The severity of the error can be info, warning, block activation, blocking save, and more.
FUNCTIONALITY_NOT_ENABLEDThe specified feature is disabled.
HAS_PUBLIC_REFERENCESThe custom metadata record can’t be set as protected while public records refer to it.
HTML_FILE_UPLOAD_NOT_ALLOWEDYour attempt to upload an HTML file failed. If the Disallow HTML documents and attachments checkbox is selected on the HTML Documents and Attachments Settings page, HTML attachments and documents, including HTML attachments to a Solution, can’t be uploaded.
IMAGE_TOO_LARGEThe image exceeds the maximum width, height, and file size.
IAS_UNCOMITTED_WORKYou can’t make calls to Omnichannel Inventory while uncommitted database changes are pending within the same transaction.
INACTIVE_OWNER_OR_USERThe owner of the specified item is an inactive user. To reference this item, either reactivate the owner or reassign ownership to another active user.
INPUTPARAM_INCOMPATIBLE_DATATYPEThe type for the input parameter doesn’t match the type for the assigned value.
INSERT_UPDATE_DELETE_NOT_ALLOWED_DURING_MAINTENANCEStarting with version 32.0, you can’t create, update, or delete data while the instance where your org resides is being upgraded to the latest release. Try again after the release has completed. For release schedules, see trust.salesforce.com. Before version 32.0, the code is INVALID_READ_ONLY_USER_DML.
INSUFFICIENT_ACCESSYou don’t have sufficient permissions to access a resource.
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITYAn operation affects an object that the specified object cross-references, but the logged-in user doesn’t have sufficient permissions on the cross-referenced object. For example, a logged-in user attempts to modify an account record, and the update creates a ProcessInstanceWorkitem. If the user doesn’t have permission to approve, reject, or reassign the ProcessInstanceWorkitem, this exception occurs.
INSUFFICIENT_ACCESS_OR_READONLYYou can’t perform the specified action because you don’t have sufficient permissions.
INSUFFICIENT_ACCESS_TO_INSIGHTSEXTERNALDATAYou don’t have access to the InsightsExternalData object.
INSUFFICIENT_BALANCEYou can’t debit points from a loyalty program member because the member doesn’t have a sufficient points balance.
INVALID_ACCESS_LEVELYou can’t define a new sharing rule that provides less access than the specified org-wide default.
INVALID_ACCESS_TOKENThe access token to the connected email account is invalid or expired. Log in again or ask your admin for access.
INVALID_ACCOUNTYou specified an account that’s null, not a valid account, missing required fields, or setting non-writeable fields.
INVALID_ARGUMENT_TYPEYou supplied an argument that is of the wrong type for the operation being attempted.
INVALID_ASSIGNEE_TYPEYou specified an assignee type that isn’t a valid integer between one and six.
INVALID_ASSIGNMENT_RULEYou specified an assignment rule that’s invalid or that isn’t defined in the org.
INVALID_AUTH_HEADERThe authorization header on the request isn’t valid. For REST API, use an HTTP authorization header with the format: Authorization: Bearer Access_Token. For SOAP API, use the SessionHeader SOAP authorization header. The access token is placed in the header.
INVALID_BATCH_OPERATIONThe specified batch operation is invalid.
INVALID_CHECKOUT_INPUTThe input isn’t promotion-specific.
INVALID_CONTENT_TYPEThe outgoing email has anEmailFileAttachment with an invalid contentType property. See RFC2045 - Internet Message Format.
INVALID_COUPONThe coupon entered is either not valid or has expired.
INVALID_CREDIT_CARD_INFOThe specified credit card information isn’t valid.
INVALID_CROSS_REFERENCE_KEYA record with the specified ID does not exist in the database.
INVALID_CROSS_REFERENCE_TYPE_FOR_FIELDThe specified cross-reference type isn’t valid for the specified field.
INVALID_CONTACTThe specified contact isn’t valid.
INVALID_CURRENCY_CONV_RATESpecify a positive, non-zero value for the currency conversion rate.
INVALID_CURRENCY_CORP_RATEYou can’t modify the corporate currency conversion rate.
INVALID_CURRENCY_ISOThe specified currency ISO code isn’t valid.
INVALID_EMAIL_ADDRESSA specified email address is invalid.
INVALID_EMPTY_KEY_OWNERYou can’t set the value for owner to null.
INVALID_ENTITY_FOR_UPSERTThe specified object is invalid for the upsert operation.
INVALID_ENVIRONMENT_HUB_MEMBERAn Environment Hub member can’t be created with the specified user.
INVALID_EVENT_DELIVERYThe event delivery ID isn’t valid.
INVALID_EVENT_SUBSCRIPTIONParameter values exceed the 765 character limit when subscribing to an event.
INVALID_EXTERNAL_ID_FIELD_NAMEThe field name of the externalIdFieldName parameter on the target entity isn’t valid. Specify a valid field name.
INVALID_FIELDYou specified an invalid field name when trying to update or upsert a record.
INVALID_FIELD_FOR_INSERT_UPDATEYou can’t combine a person account record type change with any other field update.
INVALID_FIELD_WHEN_USING_TEMPLATEYou can’t use an email template with an invalid field name.
INVALID_FILTER_ACTIONThe specified filter action can’t be used with the specified object. For example, an alert isn’t a valid filter action for a Task.
INVALID_ID_FIELDThe specified ID field (ID, ownerId), or cross-reference field is invalid.
INVALID_INET_ADDRESSA specified Inet address isn’t valid.
INVALID_LINEITEM_CLONE_STATEYou can’t clone a Pricebook2 or PricebookEntry record that isn’t active.
INVALID_MARKUPThe specified markup includes an unsupported tag or attribute.
INVALID_MERCHANT_ACCOUNT_MODEThe merchant account is in a non-production org, so it must be in Test mode to accept payments.
INVALID_MERCHANT_ACCOUNT_MODE_OR_STATUSFor the merchant account to accept payments, it must be in Live mode or the status must be enabled. To receive payments, complete the merchant account’s business profile at the payment provider.
INVALID_MERGE_RECORDThe specified records couldn’t be merged.
INVALID_MASTER_OR_TRANSLATED_SOLUTIONThe solution is invalid. For example, this exception occurs if you try to associate a translated solution with a solution that’s associated with another translated solution.
INVALID_MESSAGE_ID_REFERENCEThe outgoing email’s References or In-Reply-To fields are invalid. These fields must contain valid Message-IDs. See RFC2822 - Internet Message Format.
INVALID_NAMESPACE_PREFIXThe specified namespace isn’t valid.
INVALID_OPERATIONThere’s no applicable approval process for the specified object.
INVALID_OPERATORThe specified operator isn’t applicable for the field type when used as a workflow filter.
INVALID_OR_NULL_FOR_RESTRICTED_PICKLISTYou specified an invalid or null value for a restricted picklist.
INVALID_PACKAGE_LICENSEThe specified package license doesn’t exist for this org.
INVALID_PARTNER_NETWORK_STATUSThe specified partner network status is invalid for the specified template field.
INVALID_PERSON_ACCOUNT_OPERATIONYou can’t delete a person account.
INVALID_PROFILEYou specified a profile that isn’t associated with an external user license.
INVALID_READ_ONLY_USER_DMLVersion 31.0 and earlier: You can’t create, update, or delete data while the instance where your org resides is being upgraded to the latest release. Try again after the release has completed. For release schedules, see trust.salesforce.com. After version 31.0, the code is INSERT_UPDATE_DELETE_NOT_ALLOWED_DURING_MAINTENANCE.
INVALID_RECEIVEDDOCUMENTID_ATTACHMENTThe received document record contains more than one attachment.
INVALID_RECORD_TYPEThe specified record type isn’t valid.
INVALID_REFRESH_TOKENThe refresh token to the connected email account is invalid. Log in again or ask your admin for access.
INVALID_SAVE_AS_ACTIVITY_FLAGSpecify true or false for the saveAsActivity flag.
INVALID_SCS_INBOUND_USERThe specified SCS inbound user isn’t valid.
INVALID_SESSION_IDThe specified sessionId is malformed (incorrect length or format) or has expired. Log in again to start a new session.
INVALID_SERVER_ERRORAn unexpected condition occurred that prevented the API operation.
INVALID_SIGNUP_OPTIONYou provided an incorrect set of values to the SignupRequest object.
INVALID_STATUSThe specified org status change isn’t valid.
INVALID_TARGET_OBJECT_NAMEThe API name of the target entity isn’t valid. Specify a valid API name.
INVALID_TYPEThe specified type isn’t valid for the specified object.
INVALID_TYPE_FOR_OPERATIONThe specified type isn’t valid for the specified operation.
INVALID_TYPE_ON_FIELD_IN_RECORDThe specified value isn’t valid for the specified field’s type.
INVALID_UNMERGE_RECORDThe specified record wasn’t unmerged from the record it was previously merged with.
INVALID_USERIDThe specified user isn’t an active member of this org.
INVALID_USER_OBJECTThe specified user object isn’t valid.
IP_RANGE_LIMIT_EXCEEDEDThe specified IP address is outside the IP range specified for the org.
JIGSAW_IMPORT_LIMIT_EXCEEDEDThe number of records you attempted to purchase from Data.com exceeds your available record addition limit.
LICENSE_LIMIT_EXCEEDEDYou’ve exceeded the number of licenses assigned to your org.
LIGHT_PORTAL_USER_EXCEPTIONYou attempted an action with a customer portal that’s not allowed. For example, trying to add the user to a case team.
LIMIT_EXCEEDEDYou’ve exceeded a limit on a field size or value, license, platform event publishing, or other component.
MALFORMED_IDAn ID must be either 15 characters, or 18 characters with a valid case-insensitive extension. There’s also an exception code of the same name.
MANAGER_NOT_DEFINEDA manager hasn’t been defined for the specified approval process.
MASSMAIL_RETRY_LIMIT_EXCEEDEDA mass mail retry failed because your org has exceeded its mass mail retry limit.
MASS_MAIL_LIMIT_EXCEEDEDThe org has exceeded its daily limit for mass email. Mass email messages can’t be sent again until the next day.
MATCH_PRECONDITION_REQUIREDAn ETag validation has failed. The request must include an If-Match header to ensure data integrity with optimistic concurrency control.
MATCH_PRECONDITION_FAILEDAn ETag validation has failed.
MAXIMUM_CCEMAILS_EXCEEDEDYou’ve exceeded the maximum number of specified CC addresses in a workflow email alert.
MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDEDYou’ve exceeded the document size limit for a dashboard.
MAXIMUM_HIERARCHY_CHILDREN_REACHEDYou’ve reached the maximum number of children in the asset hierarchy.
MAXIMUM_HIERARCHY_LEVELS_REACHEDYou’ve reached the maximum number of levels in a hierarchy.
MAXIMUM_SIZE_OF_ATTACHMENTYou’ve exceeded the maximum size of an attachment.
MAXIMUM_SIZE_OF_DOCUMENTYou’ve exceeded the maximum size of a document.
MAX_ACTIONS_PER_RULE_EXCEEDEDYou’ve exceeded the maximum number of actions per rule.
MAX_ACTIVE_RULES_EXCEEDEDYou exceeded the maximum number of active rules.
MAX_APPROVAL_STEPS_EXCEEDEDYouexceeded the maximum number of approval steps for an approval process.
MAX_DEPTH_IN_FLOW_EXECUTIONAn error occurred while executing a flow trigger action.
MAX_FORMULAS_PER_RULE_EXCEEDEDYou exceeded the maximum number of formulas per rule.
MAX_RULES_EXCEEDEDYou exceeded the maximum number of rules for an object.
MAX_RULE_ENTRIES_EXCEEDEDYouexceeded the maximum number of entries for a rule.
MAX_TASK_DESCRIPTION_EXCEEEDEDThe task description is too long.
MAX_TM_RULES_EXCEEDEDYou exceeded the maximum number of rules per Territory.
MAX_TM_RULE_ITEMS_EXCEEDEDYou exceeded the maximum number of rule criteria per rule for a Territory.
MAX_TRIGGERS_EXCEEDEDThe number of triggers per workflow rule or for Salesforce exceeds the maximum limit.
MERGE_FAILEDA merge operation failed.
METHOD_NOT_ALLOWEDThe target resource doesn’t support this method.
METADATA_FIELD_UPDATE_ERRORAn error occurred while updating the specified metadata field.
MISMATCHING_TYPESThe specified records or its related records aren’t of the same type.
MISSING_ARGUMENTYou didn’t specify a required argument.
MISSING_OMNI_PROCESS_IDThe Get Assessment Response Summary invocable action calls an Assessment object that lacks a valid OmniScript ID.
NONUNIQUE_SHIPPING_ADDRESSIf the original order shipping address is different from the shipping address of other items in the reduction order, you can’t insert a reduction order item.
NO_APPLICABLE_PROCESSA process() request failed because the record submitted doesn’t satisfy the entry criteria of any active approval processes for which the user has permission.
NO_ATTACHMENT_PERMISSIONYour org doesn’t permit email attachments.
NO_INACTIVE_DIVISION_MEMBERSYou can’t add members to an inactive Division.
NO_MASS_MAIL_PERMISSIONYou don’t have permission to send the email. You must have “Mass Email” to send mass mail or “Send Email” to send individual email.
NOT_FOUNDA resource referenced by this method can’t be located.
NO_PARTNER_PERMISSIONThe org doesn’t have ISV partner functionality.
NUMBER_OUTSIDE_VALID_RANGEThe number specified is outside the valid range of values.
NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDEDThe number of history fields specified for the sObject exceeds the allowed limit.
OP_WITH_INVALID_USER_TYPE_EXCEPTIONThe operation you attempted can’t be performed for one or more users. For example, you can’t add high-volume portal users to a group.
OPERATION_ENQUEUEDThe asynchronous platform event publishing operation is enqueued. The platform event is published when system resources become available.
OPTED_OUT_OF_MASS_MAILAn email can’t be sent because the specified User has opted out of mass mail.
ORDER_MANAGEMENT_ACTION_NOT_ALLOWEDThe requested action isn’t allowed.
ORDER_MANAGEMENT_INVALID_RECORDThe record is invalid.
ORDER_MANAGEMENT_RECORD_EXISTSYou can’t create the record because it currently exists.
ORDER_MANAGEMENT_RECORD_NOT_FOUNDWe couldn’t find the requested record.
PA_API_EXCEPTIONThe system encountered an internal error. Report this problem to Salesforce.
PA_AXIS_FAULTThe system encountered an internal error. Report this problem to Salesforce.
PA_INVALID_ID_EXCEPTIONThe specified ID for the Platform Action is invalid.
PA_NO_ACCESS_EXCEPTIONYou don’t have permission to access the Action Platform.
PA_NO_DATA_FOUND_EXCEPTIONWe couldn’t find the requested Platform Action.
PA_URI_SYNTAX_EXCEPTIONThe URI syntax for the Platform Action query is invalid.
PA_VISIBLE_ACTIONS_FILTER_ORDERING_EXCEPTIONThe system encountered an internal error. Report this problem to Salesforce.
PACKAGE_DISABLEDThe package is disabled.
PACKAGE_LICENSE_REQUIREDThe logged-in user can’t access an object that is in a licensed package without a license for the package.
PAL_INVALID_ASSISTANT_RECOMMENDATION_TYPE_IDThe specified type ID for the assistant recommendation is invalid.
PAL_INVALID_ENTITY_IDThe specified object ID for the Platform Action List is invalid.
PAL_INVALID_FLEXIPAGE_IDThe specified page ID for the Platform Action List is invalid.
PAL_INVALID_LAYOUT_IDThe specified layout ID for the Platform Action List is invalid.
PAL_INVALID_PARAMETERSThe specified parameter for the Platform Action List is invalid.
PALI_INVALID_ACTION_IDThe specified action ID for the Platform Action List is invalid.
PALI_INVALID_ACTION_NAMEThe specified action name for the Platform Action List is invalid.
PALI_INVALID_ACTION_TYPEThe specified action type is invalid for the Platform Action List context.
PARTICIPANT_RELATIONSHIP_EXISTSA user tries to delete a ParticipantGroup but a record was shared to this group using Compliant Data Sharing. The group is assigned as a participant to one or more parent records through Compliant Data Sharing. You can remove the participant records and try again.
PLATFORM_EVENT_ENCRYPTION_ERRORThe platform event messages couldn’t be published due to a problem with encryption. A misconfiguration in your Salesforce org or a general encryption service error can cause this problem.
PLATFORM_EVENT_PUBLISHING_UNAVAILABLEPublishing platform event messages failed due to a service being temporarily unavailable. Try again later.
PLATFORM_EVENT_PUBLISH_FAILEDThe platform event message couldn’t be published after one or more attempts because of a system error. Try again later.
PORTAL_USER_ALREADY_EXISTS_FOR_CONTACTA create User operation failed because you can’t create a second portal user under a Contact.
PORTAL_USER_CREATION_RESTRICTED_WITH_ENCRYPTIONThe portal user can’t be created from a contact record containing encrypted standard fields by a user without View Encrypted Data permission.
PRIVATE_CONTACT_ON_ASSETYou can’t have a private contact on an asset.
PROCESSING_HALTEDA related operation failed and the transaction is rolled back. This error can occur in a composite request in which one of the subrequests fails.
QA_INVALID_CREATE_FEED_ITEMThe feed item can’t be created. You can only create a feed item for “Create” and “Log a Call”.
QA_INVALID_SUCCESS_MESSAGEThe success message is invalid. Update can have a success message, but can’t create a feed item. All other types must have an empty success message and not create a feed item.
QUICK_ACTION_LIST_ITEM_NOT_ALLOWEDThe quick action list item can’t be saved for the Quick Action type Lightning component.
QUICK_ACTION_LIST_NOT_ALLOWEDThe quick action list can only be saved for an object that allows quick actions.
RECORD_IN_USE_BY_WORKFLOWYou can’t access a record that’s in use by a workflow or approval process.
RELATED_ENTITY_FILTER_VALIDATION_EXCEPTIONIf the campaign scope isn’t set, you can’t save a list view that the campaign member status already filtered.
REL_FIELD_BAD_ACCESSIBILITYThe custom metadata type can’t be set to protected when public types refer to it, or it can’t be set to public when it refers to protected types.
REPUTATION_MINIMUM_NUMBER_NOT_REACHEDYou didn’t reach the lower threshold number for a reputation level in an Experience Cloud site.
REQUEST_RUNNING_TOO_LONGA request that has been running too long is canceled.
REQUIRE_CONNECTED_APP_SCSThe connected app for Social Customer Service isn’t installed.
REQUIRE_CONNECTED_APP_SESSION_SCSThe Social Connected Service call requires an active authenticated connected app session.
REQUIRE_RUNAS_USERA Run As user must be configured on the Social Customer Setup page in your org under the Inbound Settings tab.
REQUIRED_FIELD_MISSINGA call requires a field that wasn’t specified.
RETRIEVE_EXCHANGE_ATTACHMENT_FAILEDThe attachment failed to upload or download from your Exchange service account.
RETRIEVE_EXCHANGE_EMAIL_FAILEDThe email can’t be retrieved from your Exchange service account.
RETRIEVE_EXCHANGE_EVENT_FAILEDAn Exchange service event has failed.
RETRIEVE_USER_CONFIG_ERRORThe user’s Lightning Sync or Einstein Activity Capture configuration can’t be retrieved.
ROUTES_EVALUATION_LIMIT_EXCEEDEDThe limit for route evaluation was met. We couldn’t evaluate any more routes.
SALESFORCE_INBOX_TRANSPORT_CONNECTION_ERRORInvalid user ID or password for the Inbox account. Update your credentials in Inbox and try again.
SALESFORCE_INBOX_TRANSPORT_TOKEN_ERRORUnable to connect your Inbox account to Salesforce.
SALESFORCE_INBOX_TRANSPORT_UNKNOWN_ERRORAn error occurred sending an email with Inbox.
SELF_REFERENCE_FROM_TRIGGERYou can’t recursively update or delete the same object from an Apex trigger. This error often occurs when: You try to update or delete an object from within its before trigger. You try to delete an object from within its after trigger. This error occurs with both direct and indirect operations. Here’s an example of an indirect operation. A request is submitted to update Object A. A before update trigger on object A creates an object B. Object A is updated. An after insert trigger on object B queries object A and updates it. This update is an indirect update of object A because of the before trigger of object A, so an error is generated.
SHARE_NEEDED_FOR_CHILD_OWNERIf a parent record has a child record that needs a sharing rule, you can’t delete the sharing rule for the parent record.
SINGLE_EMAIL_LIMIT_EXCEEDED(API version 18.0 and later) The org has exceeded its daily limit for individual emails. Individual email messages can’t be sent again until the next day.
SLACK_API_ERRORAn unexpected condition occurred that prevented the Slack API from completing the request. This value is available in API version 36.0 and later.
SOCIAL_ACCOUNT_NOT_FOUNDYou don’t have access to the social account or no managed social account with the given ID was found.
SOCIAL_POST_INVALIDThe given social post isn’t applicable for the given operation. For example, a required field is missing or the status isn’t appropriate.
SOCIAL_POST_NOT_FOUNDYou don’t have access to the post or no post with the given ID was found.
STANDARD_PRICE_NOT_DEFINEDCustom prices can’t be defined without corresponding standard prices.
STORAGE_LIMIT_EXCEEDEDYou exceeded your org’s storage limit.
STRING_TOO_LONGThe specified string exceeds the maximum allowed length.
TABSET_LIMIT_EXCEEDEDYouexceeded the number of tabs allowed for a tabset.
TEMPLATE_NOT_ACTIVEThe template specified is unavailable. Specify another template or make the template available for use.
TERRITORY_REALIGN_IN_PROGRESSAn operation can’t be performed because a territory realignment is in progress.
TEXT_DATA_OUTSIDE_SUPPORTED_CHARSETThe specified text uses a character set that isn’t supported.
TEXT_TO_PICKLIST_VALUES_EXCEEDEDYou’ve exceeded the number of picklist values in the specified text.
TOO_MANY_APEX_REQUESTSToo many Apex requests have been sent. This error is transient. Resend your request after a short wait.
TOO_MANY_ENUM_VALUEA request failed because too many values were passed in for a multi-select picklist. You can select a maximum of 100 values for a multi-select picklist.
TOO_MANY_JOBSThe organization has too many live jobs.
TRANSFER_REQUIRES_READYou can’t assign the record to the specified User because the user doesn’t have read permission.
UISF_ENTITY_QUERY_FAILEDThe changes you’re trying to make can’t be completed. Reasons can include: We’re unable to find the Slack application in the registry. We can’t find the user or bot authorization. We encountered an exception when querying or upserting Slack setup entities. The user or bot token is null.
UISF_NO_MAPPINGS_FOUNDWe couldn’t find a Slack user mapped to the Salesforce user ID.
UISF_TOKEN_NOT_FOUNDWe couldn’t find a token for the Slack application.
UISF_UNKNOWN_EXCEPTIONThe system encountered an internal error. Report this problem to Salesforce.
UISF_USER_MAPPING_FAILEDWe couldn’t map a Slack user to the Salesforce user ID.
UNAVAILABLE_REFIf the custom metadata record references an unavailable object or field, it can’t be installed.
UNABLE_TO_LOCK_ROWA deadlock or timeout condition has been detected. A deadlock involves at least two transactions that are attempting to update overlapping sets of objects. If the transaction involves a summary field, the parent objects are locked, making these transactions especially prone to deadlocks. To debug, check your code for deadlocks and correct. Deadlocks aren’t typically the result of a Salesforce operations issue. A timeout occurs when a transaction takes too long to complete, such as when replacing a value in a picklist or changing a custom field definition. The timeout state is temporary. No corrective action is needed. If an object in a batch can’t be locked, the entire batch fails with this error. Errors with this status code contain the IDs of the records that couldn’t be locked, when available, in the error message.
UNAVAILABLE_RECORDTYPE_EXCEPTIONThe appropriate default record type couldn’t be found.
UNDELETE_FAILEDAn object couldn’t be undeleted because it doesn’t exist or hasn’t been deleted.
UNKNOWN_EXCEPTIONThe system encountered an internal error. Report this problem to Salesforce. Note: Don’t report this exception code to Salesforce if it results from a sendEmail() call. The sendEmail() call returns this exception code when it’s used to send an email to one or more recipients who have the Email Opt Out option selected.
UNQUALIFIED_CARTThe cart contents don’t meet the promotion qualification criteria associated with the coupon.
UNSPECIFIED_EMAIL_ADDRESSThe specified user doesn’t have an email address.
UNSUPPORTED_APEX_TRIGGER_OPERATONYou can’t save recurring events with an Apex trigger.
UNSUPPORTED_DMLDML operation is unsupported due to mixed transaction types.
UNSUPPORTED_MODEYou can’t use that mode. Use a supported mode.
UNSUPPORTED_PAYMENT_REQUEST_TYPESalesforce Payments doesn’t support the payment request type.
UNSUPPORTED_QUERYYour query uses GROUP BY, NULLS FIRST/LAST, or other query features that aren’t supported for big objects.
UNVERIFIED_SENDER_ADDRESSA sendEmail() call attempted to use an unverified email address defined in the OrgWideEmailAddress object.
USER_WITHOUT_WEM_PERMISSIONThe user lacks Workforce Engagement permissions.
VARIANT_NOT_FOUNDWe couldn’t find the requested variant.
VF_COMPILE_ERRORThere’s a compile error in the Visualforce Page, Component, or EmailTemplate you’re trying to save.
WEBLINK_SIZE_LIMIT_EXCEEDEDThe size of a WebLink URL or JavaScript code exceeds the limit.
WEBLINK_URL_INVALIDThe WebLink URL failed the URL string validation check.
WEM_USER_NOT_ORG_ADMINThe user has Workforce Engagement permissions but isn’t an administrator.
WORKSPACE_NOT_FOUNDWe couldn’t find the requested workspace.
WRONG_CONTROLLER_TYPEThe controller type for your Visualforce email template doesn’t match the object type being used.

If you receive a status code not listed in the previous table, contact Customer Support.

ExtendedErrorDetails 

An ExtendedErrorDetails element contains additional information about an error. The ExtendedErrorDetails element can include these properties.

NameTypeDescription
extendedErrorCodeExtendedErrorCodeA code that characterizes the extended error details.
_extended error property_VariesAn extended error property that contains more information about the error. The property name and value vary based on the extended error code. For example, in a limits-related error, the property limit contains the value of a limit and input contains the submitted value that reaches or exceeds the limit.

ExtendedErrorCode 

Each ExtendedErrorDetails contains an error code and its related properties. The codes and descriptions included here are examples of extended errors. You can see other extended error codes depending on the error you encounter.

Extended error codeDescription
FLOW_CANNOT_BE_REACTIVATEDIf the current flow version is canceled or completed, the user can’t reactivate the same version. The only option is to save the flow as a new version.
FLOW_NOT_FOUNDThe flow isn’t available. This value is available in API version 39.0 and later.
FLOW_TEST_CONDITION_INVALID_DATATYPE_MAPPINGThe test point for the start or end of the flow contains a condition with incompatible data types.
FLOW_TEST_INVALID_LHS_REFERENCEInvalid reference found in a flow test condition.
FLOW_TEST_NOT_SUPPORTEDFlow Test isn’t supported for a process type.
FLOW_TEST_PARAMETER_LEFTVALUEREFERENCE_INVALIDThe flow test metadata for the start of the flow must have its leftValueReference set to ScheduledPathApiName.
FLOW_TEST_PARAMETER_TYPE_INVALIDThe scheduled path is valid but the path type isn’t ScheduledPath.
FLOW_TEST_PARAMETER_VALUE_INVALIDThe flow test metadata for the start of the flow references an invalid value for the scheduled path.
FLOW_TEST_PARAMETER_VALUE_MISSINGThe flow test metadata for the start of the flow is missing its scheduled path API name.
FLOW_TEST_PARAMS_REQUIREDThe test point for the start or end of the flow is missing a parameter.
FORM_ALREADY_IN_USE_BY_DRAFT_VERSIONThe form you selected is already associated with a draft flow version. You can’t associate a form to more than one draft flow version. This value is available in API version 60.0 and later.
FORM_ALREADY_IN_USE_BY_FLOWThe form you selected is already associated with a flow. You can’t associate a form to more than one flow. This value is available in API version 60.0 and later.
INPUTPARAM_INCOMPATIBLE_DATATYPESpecify a {0} value for the {1} parameter. For example, specify a String value for the programId parameter.
INVALID_QUERY_LOCATOR_FORMATThe format of the query locator isn’t valid or correct.
INVALID_SEGMENT_STATUS_FOR_ACTIVATIONThe flow can’t be activated because the segment being used has an inactive or error status, which isn’t allowed for flow activation.
LOCATOR_LOCATION_EXCEEDS_SIZEThe location specified by the query locator exceeds the number of records returned by the original query.
MAX_STATEMENT_SIZEThe query exceeds the character limit. See SOQL SELECT Syntax.
MAX_XDS_IMPLICIT_SUBQUERIESThe query exceeds the number of joins allowed across external objects. Understanding Relationship Query Limitations.
PROGRAM_PROGRESS_NOT_ACTIVEWe couldn’t run this loyalty program process because it hasn’t been activated. Activate the program process and try again. Or, ask your Salesforce admin for help.
QUERY_LOCATOR_EXPIREDThe query locator has expired.
QUERY_LOCATOR_NOT_FOUNDThe query locator doesn’t exist, or the user executing the query isn’t the same user who created the cursor.
SCREENFIELD_OBJECTPROVIDED_INVALID_DATATYPEWhen fieldType on FlowSceenField is set to objectProvided, objectFieldReference is set to an unsupported data type.
SURVEY_INVALID_MATRIX_QUESTION_CONFIGURATIONThe matrix question configuration is invalid or the user doesn’t have permission to create the matrix question.
TEMPORARY_QUERY_MORE_FAILUREWe can’t retrieve additional query results right now. Try again later.
UNAUTHORIZED_USER_FOR_CURSORThe user executing the call can’t access the additional query results. Only the user who executed the original query can access additional results.
  • DuplicateError

    Contains information about an error that occurred when an attempt was made to save a duplicate record. Use if your organization has set up duplicate rules, which are part of the Duplicate Management feature.

  • DuplicateResult

    Represents the details of a duplicate rule that detected duplicate records and information about those duplicate records.

  • MatchResult

    Represents the duplicate results for a matching rule.

  • MatchRecord

    Represents a duplicate record detected by a matching rule.

  • FieldDiff

    Represents the name of a matching rule field and how the values of the field compare for the duplicate and its matching record.

  • AdditionalInformationMap

    Represents other information, if any, about matched records.