SAP Knowledge Base Article - Preview

3789622 - POST to Composition Navigation Property Fails with Property Resolution Error in CAP OData V2

Symptom

A POST request to a composition navigation property in a SAP CAP application fails with HTTP 500.
The CAP runtime log shows:
"<property>_ID" not found in the elements of "<ServiceName>.<EntityName>"


Example request that fails:
POST /v2/srv/<service>/ParentEntity(guid'...')/CompositionNavProperty
Content-Type: application/json
{ "childAssociation_ID": "<guid>" }


Read more...

Environment

  • @sap/cds
  • @cap-js-community/odata-v2-adapter
  • CAP

Product

SAP Business Application Studio all versions

Keywords

CAP, OData V2, composition, navigation property, POST, odata-v2-adapter, property not found, 500, @cap-js-community , KBA , BC-XS-CDX-NJS , SAP CAP – node.js runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.