sforce logo

ApiFault


If an error occurs during the invocation of an API call, the sforce Web service throws an exception and returns an ApiFault with an associated ExceptionCode and error message text that provide additional information about the error. For more information about ApiFault, see List of APIFault Codes. Fault codes are of type ApiFault, which has the following properties.

Name
Type
Description
exceptionCode
Exception code.
exceptionMessage
string
Error message text.

List of APIFault Codes

The following table lists the ApiFault codes that the sforce Web service returns if an error occurs when processing a service request.

Fault Codes for sforce API Calls 
Fault
Description
LoginFault
Error occurred during the login call.
InvalidSObjectFault
Invalid sObject in a describeSObject, create, update, retrieve, or query call.
InvalidFieldFault
Invalid field in a retrieve or query call.
MalformedQueryFault
Problem in the queryString passed in a query call.
InvalidQueryLocatorFault
Problem in the queryLocator passed in a queryMore call.
MalformedSearchFault
Problem in the searchString passed in a search call.
InvalidIdFault
Specified ID was invalid in a setPassword or resetPassword call.
UnexpectedErrorFault
Unexpected error occurred. The error is not associated with any other ApiFault.


© Copyright 2000-2003 SalesForce.com, Inc.
All rights reserved • Various trademarks held by their respective owners.