Request failed with status code 400 while trying to create a new Managed Attribute in Microsoft Purview

Minj, Ashish 0 Reputation points
2024-01-11T19:03:01.69+00:00

I am trying to create a custom managed attribute in Microsoft Purview, after having expired an attribute with the same name. The only difference in this case is the name of the attribute being created is with all uppercase letters. While trying to create and save this managed attribute I am getting the error message: Request failed with status code 400 Request ID: 798ee653-f15b-4ac8-8c7b-c24f41be0db0 Cannot remove applicableEntityTypes in Attribute Def: Primary key Indicator, defined in business-metadata: Business Metadata

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,390 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,506 Reputation points Microsoft Employee
    2024-01-12T16:49:50.1533333+00:00

    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.


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.