Skip to Content
0
Former Member
Feb 10, 2015 at 11:27 AM

Batch create,update,delete Error(See SAP Note 1797736-Default changeset implementation allows only one operation)

23274 Views

Hi Experts,

I am trying to create multiple records using batch create but, Records are not getting created.. I am getting following error,

This is at HTTP request body.

--batch

Content-Type: multipart/mixed; boundary=changeset

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST EmpDetailsSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

<d:DETAILS m:type="ZEMPLOYEE_INFO_SRV.Details">

<d:Street1>Pai krishna</d:Street1>

<d:Street2>Bangalore</d:Street2>

<d:City>BANGALORE</d:City>

<d:Country>INDIA</d:Country>

</d:DETAILS>

<d:EMP_ID>76</d:EMP_ID>

<d:NAME>ARSHAD SHAIKH CREATE</d:NAME>

<d:ADDRESS>BANGALORE</d:ADDRESS>

<d:SALARY>100000000</d:SALARY>

</m:properties>

</atom:content>

</atom:entry>

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST EmpDetailsSet HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 588

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<atom:content type="application/xml">

<m:properties>

<d:DETAILS m:type="ZEMPLOYEE_INFO_SRV.Details">

<d:Street1>Pai t</d:Street1>

<d:Street2>KR </d:Street2>

<d:City>BANGALORE</d:City>

<d:Country>INDIA</d:Country>

</d:DETAILS>

<d:EMP_ID>77</d:EMP_ID>

<d:NAME>LK SONI CREATE</d:NAME>

<d:ADDRESS>BANGALORE</d:ADDRESS>

<d:SALARY>100000000</d:SALARY>

</m:properties>

</atom:content>

</atom:entry>

--changeset--

--batch—

Thanks in advance.

Regards,

Arshad.

Attachments

BatchError.PNG (93.6 kB)