cancel
Showing results for 
Search instead for 
Did you mean: 

Batch create error /IWCOR/CX_DS_EP_PROPERTY_ERROR/

Former Member
0 Kudos

Hi All,

I am trying to create multiple records using $BATCH, but I am getting below error(I could able to perform READ& QUERY well but not successed with Create/update)

HTTP/1.1 500 Internal Server Error

Content-Type: application/xml

Content-Length: 363

dataserviceversion: 1.0

Please advise where I made mistake below is my payload and screen shots

--batch

Content-Type: multipart/mixed; boundary=changeset

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST Users HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

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

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

  <m:properties

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

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

  <d:USRID>0100</d:USRID>

  <d:FIRSTNAME>TEST_INC</d:FIRSTNAME>

  <d:LASTNAME>0001</d:LASTNAME>

  <d:EMAIL>kumar@gmail.com</d:EMAIL>

  <d:PHONE>NZ0025</d:PHONE>

  <d:COUNTRY>IN</d:COUNTRY>

  </m:properties>

  </atom:content>

</atom:entry>

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST Users HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

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

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

  <m:properties

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

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

  <d:USRID>0101</d:USRID>

  <d:FIRSTNAME>FrstNam</d:FIRSTNAME>

  <d:LASTNAME>LstNam</d:LASTNAME>

  <d:EMAIL>raj@gmail.com</d:EMAIL>

  <d:PHONE>NZ0025</d:PHONE>

  <d:COUNTRY>UK</d:COUNTRY>

  </m:properties>

  </atom:content>

</atom:entry>

--changeset--

--batch--

Please view the screen shot of the error I am getting, I redefined /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN & /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END and added EXIT while execute it is not catching the external breakpoint as well

Thanks

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

Issue been resolved  myself as it is a very sensitive issue i.e. case sensitive attribute names should not be in caps

--batch

Content-Type: multipart/mixed; boundary=changeset

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST Users HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

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

<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:Userid>0100</d:Userid>

  <d:Firstname>TEST_INC</d:Firstname>

  <d:Lastname>0001</d:Lastname>

  <d:Email>kumar@gmail.com</d:Email>

  <d:Phone>NZ0025</d:Phone>

  <d:Country>IN</d:Country>

  </m:properties>

  </atom:content>

</atom:entry>

--changeset

Content-Type: application/http

Content-Transfer-Encoding: binary

POST Users HTTP/1.1

Content-Type: application/atom+xml

Content-Length: 975

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

<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:Userid>0101</d:Userid>

  <d:Firstname>TEST_INC</d:Firstname>

  <d:Lastname>0001</d:Lastname>

  <d:Email>kumar@gmail.com</d:Email>

  <d:Phone>NZ0025</d:Phone>

  <d:Country>IN</d:Country> </m:properties>

  </atom:content>

</atom:entry>

--changeset--

--batch--