Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1500

Getting error "The metadata do not allow a null value for property 'SalesOrderID'." for autogenerated primary key null in insert

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.11
    • None
    • odata2-core
    • None

    Description

      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()

       

       

      Attachments

        1. sap odata metadata.xml
          44 kB
          Abdul Malik

        Activity

          People

            Unassigned Unassigned
            abmalik Abdul Malik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: