Abdul Malik created OLINGO-1500:
-----------------------------------

             Summary: Getting error "The metadata do not allow a null value for 
property 'SalesOrderID'." for autogenerated primary key null in insert
                 Key: OLINGO-1500
                 URL: https://issues.apache.org/jira/browse/OLINGO-1500
             Project: Olingo
          Issue Type: Bug
          Components: odata2-core
    Affects Versions: V2 2.0.11
            Reporter: Abdul Malik
         Attachments: sap odata metadata.xml

When performing insert operation on odata v2 end point and the primary key is 
not null, getting error from olingo : "The metadata do not allow a null value 
for property 'SalesOrderID'."

Since this field is autogenerated, this error should not come.

 

End point  : SAP OData v2 end point
PFA the metadata file.

Entity Name : SalesOrder



POST Request : 
sap end point
Body  : 
{
    "Note": "test note.",
    "CustomerID": "0100000000"
}
 

API Used : EntityProvider.writeEntry()

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to