Salesforce Exception Code Definitions (as seen in log files)
ALREADY_IN_PROCESS A record was submitted that is already in an approval process.
API_CURRENTLY_DISABLED Because of a system problem, API functionality is temporarily unavailable.
API_DISABLED_FOR_ORG API access has not been enabled for the organization. Contact salesforce.com to enable API access.
BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED An email address was blind carbon copied on the email while the BCC COMPLIANCE option was set at the organization level.
BCC_SELF_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED The user's email address was blind carbon copied on the email while the BCC COMPLIANCE option was set at the organization level.
CLIENT_NOT_ACCESSIBLE_FOR_USER The current user does not have permission to access the specified client.
CLIENT_REQUIRE_UPDATE_FOR_USER The current user is required to use a newer version of the specified client, and will have access until the client is updated.
EMAIL_BATCH_SIZE_LIMIT_EXCEEDED A method tried to process more email records than the maximum batch size.
EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR Because of an error earlier in the call, the current email was not processed.
EMAIL_TO_CASE_LIMIT_EXCEEDED The daily converted email limit for the Email-to-Case feature has been exceeded.
EMAIL_TO_CASE_NOT_ENABLED The Email-to-Case feature has not been enabled.
ENTITY_IS_DELETED Beginning with version 10.0, a referenced object has been deleted.
ENTITY_IS_LOCKED The client application tried to edit a locked object during a workflow processing operation.
ERROR_IN_MAILER The Java mailer encountered an error.
EXCEEDED_ID_LIMIT Too many IDs were requested in a retrieve call.
EXCEEDED_LEAD_CONVERT_LIMIT Too many IDs were sent to a convertLead call.
EXCEEDED_MAX_SIZE_REQUEST The size of the message sent to the API exceeded 50 MB.
EXCEEDED_MAX_TYPES_LIMIT The number of object types to describe is too large.
EXCEEDED_QUOTA The size limit for organization data storage was exceeded during a create call.
FUNCTIONALITY_NOT_ENABLED Functionality has been temporarily disabled. Other calls may continue to work.
IMAGE_TOO_LARGE The image exceeds the allowed size parameters.
INACTIVE_OWNER_OR_USER The user or record owner is not active.
INSUFFICIENT_ACCESS The user does not have sufficient access to perform the operation.
INSUFFICENT_ACCESS_ON_CROSS_REFERENCE_ENTITY The user does not have permission to approve, reject, or reassign a workitem submitted for such action.
INVALID_ASSIGNMENT_RULE An invalid AssignmentRuleHeader value was specified.
INVALID_BATCH_SIZE The query options have an invalid batch size value.
INVALID_CLIENT The client is invalid.
INVALID_CROSS_REFERENCE_KEY An invalid foreign key cannot be set on a field.
INVALID_EMAIL_ADDRESS A specified email address is invalid.
INVALID_FIELD The specified field name is invalid.
INVALID_FIELD_FOR_INSERT_UPDATE The specified change to a person account record type cannot be combined with any other field update.
INVALID_ID_FIELD The specified ID is correctly formatted, but is not valid, for example, it is an ID of the wrong type, or the object it identifies no longer exists.
INVALID_LOGIN The login credentials are not valid, or the maximum number of logins have been exceeded. Contact your administrator for more information.
INVALID_MASTER_OR_TRANSLATED_SOLUTION The solution is invalid, for example, you have tried to associate a translated solution to a master solution, but a translated solution in the same languge is already associated with the master solution.
INVALID_NEW_PASSWORD The new password does not conform with the password policies of the organization.
INVALID_OPERATION The client application tried to submit an object that is already in process as part of workflow approval or processing.
INVALID_OPERATION_WITH_EXPIRED_PASSWORD Due to password expiration, a valid password must be set using setPassword before the call can be invoked.
INVALID_QUERY_FILTER_OPERATOR An invalid operator was used in the query filter clause, at least for that field.
INVALID_QUERY_LOCATOR An invalid queryLocator parameter was specified in a queryMore call.
INVALID_QUERY_SCOPE The specified search scope is invalid.
INVALID_REL The specified relationship is invalid. You may need to add __r to correctly specify the relationship, or check your WSDL or the describe call for the correct relationship name.
INVALID_REPLICATION_DATE The date for replication is out of the allowed range, such as before the organization was created.
INVALID_SAVE_AS_ACTIVITY_FLAG A value other than true or false was specified.
INVALID_SEARCH The search call has invalid syntax or grammar.
INVALID_SEARCH_SCOPE The specified search scope is invalid.
INVALID_SESSION_ID The specified sessionId is invalid or has expired. Log in again to start a new session.
INVALID_SOAP_HEADER There is an error in the SOAP header. If you are migrating from an earlier version of the API, be advised that the SaveOptions header cannot be used with API version 6.0 or later. Use AssignmentRuleHeader instead.
INVALID_SSO_GATEWAY_URL The URL provided to configure the Single Sign-On gateway was not a valid URL.
INVALID_TYPE The specified sObject type is invalid.
INVALID_TYPE_FOR_OPERATION The specified sObject type is invalid for the specified operation.
LIMIT_EXCEEDED An array is too long. For example, there are too many BCC addresses, targets, or emails.
LOGIN_DURING_RESTRICTED_DOMAIN The user is not allowed to log in from this IP address.
LOGIN_DURING_RESTRICTED_TIME The user is not allowed to log in during this time period.
MALFORMED_ID An invalid ID string was specified. For information about IDs, see ID Field Type.
MALFORMED_QUERY An invalid query string was specified. For example, the query string was longer than 10,000 characters.
MALFORMED_SEARCH An invalid search string was specified. For example, the search string was longer than 10,000 characters.
MASS_MAIL_LIMIT_EXCEEDED The organization has exceeded its daily limit for mass email. Mass email messages cannot be sent again until the next day.
MISSING_ARGUMENT A required argument is missing.
NO_APPLICABLE_PROCESS A record was submitted for processing that does not satisfy the entry criteria of any workflow for any workflow process for which the user has permission.
NO_MASS_MAIL_PERMISSION You do not have the required permission (either Mass Email if sending mass mail or Send Email if sending individual email).
NUMBER_OUTSIDE_VALID_RANGE The number supplied is outside the valid range.
OPERATION_TOO_LARGE The query has returned too many results. Some queries, for example those on objects that use a polymorphic foreign key like Task, if run by a user without the "View All Data" permission, would require sharing rule checking if many records were returned. Such 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 the query up into a series of smaller queries.
ORG_LOCKED The organization has been locked. You must contact salesforce.com to unlock the organization.
PASSWORD_LOCKOUT The user has exceeded the allowed number of login attempts. The user must contact his or her administrator to regain login access.
QUERY_TIMEOUT The query has timed out.
QUERY_TOO_COMPLICATED SOQL 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.
REQUEST_LIMIT_EXCEEDED Exceeded either the concurrent request limit or the request rate limit for your organization. For details, see API Usage Metering.
REQUEST_RUNNING_TOO_LONG A request has taken too long to be processed.
REQUIRED_FIELD_MISSING A call requires a field that was not specified.
SERVER_UNAVAILABLE A server that is necessary for this call is currently unavailable. Other types of requests might still work.
SSO_SERVICE_DOWN The service was unavailable, and an authentication call to the organization’s specified Single Sign-On server failed.
TEMPLATE_NOT_ACTIVE The template specified is unavailable. Specify another template or make the template available for use.
TRIAL_EXPIRED The trial period for the organization has expired. A representative from the organization must contact salesforce.com to re-enable the organization.
UNABLE_TO_LOCK_ROW A deadlock or timeout condition has been detected:
- Deadlocks involve at least two transactions updating overlapping sets of objects. Note that 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 are usually not the result of an issue with Salesforce operations.
- Timeouts occur when a transaction takes too long to complete, for example, replacing a value in a picklist, or changing a custom field definition. These are temporary states. There is no corrective action needed.
- Note that if an object in a batch cannot be locked, the entire batch fails with this error.
UNKNOWN_EXCEPTION The system encountered an internal error. Please report this problem to salesforce.com
UNSUPPORTED_API_VERSION A method call was made that does not exist in the accessed API version, for example, trying to use upsert (new in 8.0) against version 5.0.
UNSUPPORTED_CLIENT This version of the client is no longer supported.