SOAP Faults

SOAP faults reflect errors encountered when you send SOAP calls via the SOAP API to Marketing Cloud Engagement. These faults indicate that the call wasn’t completed successfully and give the reason for the error.

SOAP Fault Schema 

You can review the framework for a SOAP fault via the SOAP API WSDL at https://webservice.exacttarget.com/ETFrameworkFault.xsd. The SOAP API returns error codes for Server faults and logs the appropriate error information. However, the SOAP API doesn’t return error codes or log error information for Security and Client errors.

Server Fault Example 

1<soap:Fault>
2    <faultcode>soap:Server</faultcode>
3    <faultstring>Unplanned Outage</faultstring>
4    <faultactor>http://localhost/PartnerAPI/Service.asmx</faultactor>
5    <detail>
6        <apifault xmlns="urn:fault.partner.exacttarget.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7            <Code>2</Code>
8            <Message>Unplanned Outage</Message>
9        </apifault>
10    </detail>
11</soap:Fault>

The Detail node appears only in Server faults. Only Server faults include an API fault structure.

Security Fault Example 

1<soap:Fault>
2    <faultcode xmlns:q0 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">q0:Security</faultcode>
3    <faultstring>Login failed</faultstring>
4    <faultactor>https://YOUR_SUBDOMAIN.soap.marketingcloudapis.com/Service.asmx</faultactor>
5</soap:Fault>

Client Fault Example 

1<soap:Body>
2    <soap:Fault>
3        <faultcode>soap:Client</faultcode>
4        <faultstring>Server did not recognize the value of HTTP Header SOAPAction: Test.</faultstring>
5        <detail />
6    </soap:Fault>
7</soap:Body>

SOAP Faults 

The following examples include the SOAP fault, the error code, and the reason for the fault.

Unplanned Outage 

This general exception indicated that the server can’t process the requests because the servers are offline.

Authentication (Login has an Unexpected Exception) 

  • Server Fault
  • Code: UnexpectedError = 2

Unexpected Error Passing Authentication Credentials to Authorization Filter 

  • Server Fault
  • Code: UnexpectedError = 2

Caused By a Request When System is Inaccessible 

  • Server Fault
  • Code: UnexpectedError = 2

User Not Authorized 

The following example indicates that the user doesn’t have the proper authorization to use the SOAP API.

The User’s Access Has Not Been Set 

  • Client Fault
  • Code: AuthorizationFailure = 11
  • Resolved by enabling web service permissions for the user

Account Not Authorized 

The following example indicates the user’s account is in authorized to access the SOAP API.

The Account Has Not Had the Web Service Feature Activated 

  • Client Fault
  • Code: AuthorizationFailure = 11
  • Resolved by contacting a Account Executive and activating the SOAP API

Missing SOAP Action 

The following example indicates the SOAP API can’t determine the SOAP action in the call. The system expects the SOAP action as an HTTP header or WS-Addressing:Action.

SOAP Action Could Not Be Determined From HTTP or SOAP Header 

  • Client Fault
  • Code: UnexpectedError = 2
  • Resolved by including appropriate SOAP header
  • Normally not an issue for requests generated in .NET or Axis framework

Unsupported Objects for Always On Operation 

These examples indicate that a request was made to objects that the operation isn’t not authorized to work with. The system checks every request for an account in maintenance mode to see if the operation requested is flagged as always on. If the request is allowed, the system performs a second check to validate the objects being requested to be processed. If any of the objects aren’t allowed to be processed by an always on operation during maintenance, the system rejects the whole request and returns a fault.

Error Message 

Member: [{0}] is In Maintenance. The operation: [{1}] is authorized to process or queue while in maintenance, however the object or objects: [{2}] aren’t. Please remove objects from request and try again or resubmit request once the member is out of maintenance state.

  • Client Fault
  • Code: UnsupportedObject = 8
  • Resolved by removing the objects causing the exception and resubmitting the call or waiting until maintenance is over.

In Maintenance 

The system processes only Always On requests while in maintenance. It rejects all other objects and returns an In Maintenance fault.

Request an Operation While Member is in Maintenance 

  • Server Fault
  • Code: InMaintenance = 9

Synchronous Request Cannot Be Requested 

The system can’t receive synchronous requests at the time and returns this error.

Error Message 

Synchronous request can’t be completed at this time due to database problems. This request wasn’t processed.

  • Client Fault
  • Code: RemoteDBConnDetected_SyncAPICallUnsupported= 1
  • Resolved by waiting for database connection or resubmitting request asynchronously