Skip to navigation

Faults

View as Markdown

A fault is a fatal and call-level error.

Overview

Faults differ from errors, which cause only part of a call to fail. When a fault occurs, the call fails completely and nothing is processed. Examples of faults include an incorrect ZOQL statement, an invalid authentication, and a server error.

Fault elements

When a fault occurs, the call fails entirely, nothing is processed, and a fault is returned.

FaultDescription
ApiFaultThe base fault. This fault has a fault code ( FaultCode ) and a fault message ( FaultMessage ). The FaultCode points to the appropriate ErrorCode . If you make a call that results in a fault, then the call returns an exception with the ErrorCode , which tells you what happened. The FaultMessage is a string that provides details about the fault.
InvalidQueryLocatorFaultThe query locator expired or was otherwise invalid.
InvalidTypeFaultAn invalid type, unknown type, or a type not supported in the API version was specified.
InvalidValueFaultAn invalid value was specified.
LoginFaultThe specified login credentials were invalid. Log in again.
MalformedQueryFaultThe query string used an invalid format or syntax, or the string exceeds the maximum length of a query statement. The maximum length of a query string in 10,000 characters.
UnexpectedErrorFaultThere was an unexpected problem with the call. No further details are available.

Restricted access message

If your tenant has specified allowable IP address ranges for Zuora, the following fault response is returned when a call is sent from an IP address outside the specified range. Contact your tenant administrator for assistance.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault xmlns:fns="http://fault.api.zuora.com/">
<faultcode>fns:INVALID_VALUE</faultcode>
<faultstring>Your IP address may be restricted. Please contact the administrator at your company for help.</faultstring>
<detail>
<fns:LoginFault>
<fns:FaultCode>INVALID_VALUE</fns:FaultCode>
<fns:FaultMessage>Your IP address may be restricted. Please contact the administrator at your company for help.</fns:FaultMessage>
</fns:LoginFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>