on 2019 Sep 11 1:54 PM
I'm trying to do a deep upsert using CDS 3.16.3 on an Entity A with a one-to-one relationship to another Entity B.
I've tried many different calls using Postman, but all without success.
After reading changelogs, patch notes and documentation, I've come to believe that the following should work and create a new Entity of type B directly linked to A, or update an existing entity of type B linked to A.
PATCH /EntityA(id)
Body:
{
"field": "value",
"navigationPropertyToB": {
"field_b": "another-value"
}
}
The server returns http 500 error and the log displays:
"invalid column name: FIELD_B_VAL".
Using OData-Version: 4.01 as an additional header does not make a difference.
Request clarification before answering.
Hi,
We fixed the bug with the next release of @sap/cds (>3.17.4).
Sorry for the inconvenience.
Best regards
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.