Need single-valued navigation properties in OData for lookups

Shubham Rendalkar 0 Reputation points
2023-03-07T07:19:17.9466667+00:00

I have some lookups and need single-valued navigation properties for the same.

**Ex. lookup name: ownerid and its Odata name: ****@odata.bind

While updating I'm getting below error:

{
    "error": {
        "code": "0x80048d19",
        "message": "Error identified in Payload provided by the user for Entity :'', For more information on this error please follow this help link https://go.microsoft.com/fwlink/?linkid=2195293  ---->  InnerException : Microsoft.OData.ODataException: An undeclared property 'ra_apstrategicaccountmanager' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.
}
}

I have below lookup names and need single-valued navigation properties in OData for the same.

   ra_apstrategicaccountmanager, ra_emeastrategicaccountmanager, ra_lastrategicaccountmanager, ra_nastrategicaccountmanager
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,177 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,736 Reputation points Microsoft Employee Moderator
    2023-03-09T00:38:30.17+00:00

    The error message you are encountering is indicating that the properties you are trying to use as single-valued navigation properties are not declared in the OData model.

    In OData, only declared navigation properties and declared named streams can be represented as properties without values. To resolve this issue, you need to declare these properties in the OData model.

    You can find more information on how to declare navigation properties in OData in the following link: https://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part3-csdl/odata-v4.0-errata03-os-part3-csdl-complete.html#_Toc453752347

    Please let us know if you have any further questions or concerns.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.