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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            abmalik Abdul Malik

            Dates

              Created:
              Updated:

              Slack

                Issue deployment