[
https://issues.apache.org/jira/browse/OLINGO-924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Amend updated OLINGO-924:
-----------------------------------
Issue Type: Question (was: Bug)
> Unable to link entity sets during write
> ---------------------------------------
>
> Key: OLINGO-924
> URL: https://issues.apache.org/jira/browse/OLINGO-924
> Project: Olingo
> Issue Type: Question
> Components: odata2-core
> Reporter: Gauri Kalra
> Assignee: Christian Amend
>
> The OData end-point (SAP SuccessFactors, in this case) has two entity sets
> linked by a navigation property e.g. EmployeeTime linked to User via
> userIdNav property. When trying to insert a row into the former, Olingo sends
> the following request(only an excerpt from the request):
> "userIdNav":{"__deferred":{"uri":"https://apisalesdemo8.successfactors.com/odata/v2/EmployeeTime('cgrant1')/userIdNav"}}
> The operation fails with error:
> bad valueString [('cgrant1')/userIdNav] as part of keyString
> [('cgrant1')/userIdNav]
> The following is expected as part of the request(modified the above manually):
> "userIdNav": { "__deferred": { "uri":
> "https://apisalesdemo8.successfactors.com:443/odata/v2/User('cgrant1')" } }
> The entry gets inserted successfully when the above is sent as part of
> request. The navigation property in this case is marked "required". Hence, it
> is not possible to remove it from the request.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)