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
- Go to Administrator work center
- Select the OData Service Explorer view
- Select the service C4CODataapi service
- Select the custom field from the list of entity types
Example:
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