SalesForce API Calls Error Codes – Part 02

LIMIT_EXCEEDED
An array is too long. For example, there are too many BCC addresses, targets, or email messages.
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 20,000 characters.
MALFORMED_SEARCH
An invalid search string was specified. For example, the search string was longer than 20,000 characters.
MISSING_ARGUMENT
A required argument is missing.
MIXED_DML_OPERATION
There are limits on what kinds of DML operations can be performed in the same transaction. For more information, see the Force.com Apex Code Developer’s Guide.
NOT_MODIFIED
The describe call response has not changed since the specified date.
NO_SOFTPHONE_LAYOUT
If an organization has the CTI feature enabled, but no softphone layout has been defined, this exception is returned if a describe call is issued. This is most often caused because no call center has been defined: during call center definition, a default softphone layout is created.
If an organization does not have the CTI feature enabled, FUNCTIONALITY_NOT_ENABLED is returned instead.
NUMBER_OUTSIDE_VALID_RANGE
The number specified is outside the valid range for the field.
OPERATION_TOO_LARGE
The query has returned too many results. If certain queries are run by a user without the “View All Data” permission and many records are returned, those queries would require sharing rule checking. An example of this would be queries that are run on objects, such as Task, that use a polymorphic foreign key. 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 to unlock the organization.
ORG_NOT_OWNED_BY_INSTANCE
The user tried to log in to the wrong server instance. Choose another server instance or log in at https://login.salesforce.com. You can use http instead of https.
PASSWORD_LOCKOUT
The user has exceeded the allowed number of login attempts. The user must contact his or her administrator to regain login access.
PORTAL_NO_ACCESS
Access to the specified portal is not available.
QUERY_TIMEOUT
The query has timed out. For more information, see the Salesforce SOQL and SOSL Reference Guide.
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 on API request limits, see API Usage Metering.
REQUEST_RUNNING_TOO_LONG
A request has taken too long to be processed.
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.
TOO_MANY_APEX_REQUESTS
Too many Apex requests have been issued. If this persists, contact Salesforce Customer Support.
TRIAL_EXPIRED
The trial period for the organization has expired. A representative from the organization must contact Salesforce to re-enable the organization.
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.

Leave a Reply

Your email address will not be published. Required fields are marked *