Skip to Content
Former Member
Jan 16, 2013 at 09:15 AM

http response code 2xx caused adapter error


I just do a demo for salesforce bulk api. I use receiver HTTP_AAE channel to post the data.

I got HttpAdapterException: STATUS_CODE_NOT_OK-Created.

Acctually, the data is uploaded to the salesforce server. It is successful. After a few minuts, there are more than three documents have been created on the salesforce server. That means the adapter send document several times.(It thouth the message is failed.)

I use other rest client to post the data, the reponse is 201 created

I go through the http status document, it told me that 2xx is the successful response code.

Why SAP thought 2xx is a failed response.

I just go through the sap code. They just think 200 is the successful code. Other response code will raise an error.