When a Salesforce Outbound Messaging notification fails to receive a correctly formatted SOAP acknowledgment from the target endpoint, the outbound message delivery fails with the following error:
"org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog."
This error is visible in the Delivery Failure Reason field on the Outbound Messaging Delivery Status page (Setup > Workflow & Approvals > Outbound Messages). It indicates that the target endpoint's response does not conform to the expected Salesforce SOAP response format.
Salesforce will consider outbound messages delivered successfully only if the target endpoint returns the response in the below format.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound"> <Ack>true</Ack> </notificationsResponse> </soapenv:Body> </soapenv:Envelope>
The response must conform to the following format:
notificationsResponse element in the namespace `notificationsResponse element must contain an <Ack>true</Ack> elementIf the response does not match this format — for example, if it contains plain text, HTML, or malformed XML before the SOAP envelope — the "Content is not allowed in prolog" error is returned. This commonly occurs when the endpoint returns an HTTP error page or redirects before the SOAP response body.
Related error: If the endpoint returns <Ack>false</Ack>, the Delivery Failure Reason will instead read: "SOAP response was a nack."
Steps to resolve:
<Ack>true</Ack>.000381752

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.