Skip to Content

HCI OData Service artifact - wrong cardinality in generated metadata document

Hello experts,

I'm using HCI Web Application, I created a new Odata Service artifact and used Import Model Wizard to import the Service Metadata Document of the target Odata Service.

I always get those errors:

I fixed them by adding the "sap" namespace to "creatable", "updatable" and "deletable" attributes in the associations part of my metadata document. Why is this workaround needed?

When I started creating bindings, I noticed that I always have wrong cardinalities (in this case I need 1:1 mapping)

So I opened the Odata Model editor and every property in the generated metadata document have the attribute "Nullable:false", while in the original document only key properties are not-nullable.

Original metadata:

Generated metadata:

Is this the only place to fix this problem? Is there an other way (maybe a more correct one) to obtain right cardinalities?

ns-errors.png (76.5 kB)
mapping.png (27.4 kB)
orig-md.png (184.2 kB)
gen-md.png (194.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers