Hi Thank you for posting query in Microsoft Q&A Platform.
This error message indicates that you are trying to remove the applicableEntityTypes
attribute from the Primary key Indicator
attribute definition, which is defined in the business-metadata
of your custom managed entity. However, this attribute is required for the Primary key Indicator attribute definition and cannot be removed.
To resolve this issue, you should not remove the applicableEntityTypes
attribute from the Primary key Indicator
attribute definition. Instead, you can modify the applicableEntityTypes
attribute to include the entity types that you want to apply the Primary key Indicator attribute to.
For example, if you want to apply the Primary key Indicator
attribute to entities of type Customer and Order, you can modify the applicableEntityTypes
attribute to include these entity types as follows:
"attributes": [
{
"name": "Primary key Indicator",
"type": "Boolean",
"applicableEntityTypes": ["Customer","Order"]
},
...
]
"attributes": [ { "name": "Primary key Indicator", "type": "Boolean", "applicableEntityTypes": [ "Customer", "Order" ] }, ... ] Once you have made the necessary changes, you can try creating the custom managed entity again.