SAP Knowledge Base Article - Public

2880733 - Error 'Cannot create property;entity for association does not exist' When a Custom Field is Added to OData

Symptom

When you create a custom field and add to OData you get the error

"Cannot create property;entity for association does not exist"

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Administrator work center
  2. Select the OData Service Explorer view
  3. Select the service C4CODataapi service
  4. Select the custom field from the list of entity types

Example:

C4C_OData2.jpg

Cause

BO attributes from 0..n associations(in this case COMMON node) cannot be merged to existing entity types.

Only new entity types can be created in such cases.

Also, a new entity type creation is not possible for standard associations via PDI.

However, attributes from 0..1 associations can be merged.

Resolution

Use CurrentCommon association. Attributes from 0..1 associations (in this case CurrentCommon) can be merged.

You have to extend the 0..n associations node, but same attribute will also be available via  0..1 association as well.

Keywords

property, entity, association, OData , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions