Skip to Content
0

HCI OData Service artifact - wrong cardinality in generated metadata document

Jan 13, 2017 at 11:19 AM

98

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers