nerdexam
Microsoft

PL-400 · Question #442

You are writing C# code to create an alternate key in a table for two columns: Order ID and Order Date. The table has thousands of records. You use the CreateEntityKey message to create the key. When

The correct answer is A. Use the ReactivateEntityKey action.. When EntityKeyIndexStatus returns 'Failed', the prescribed first recovery action in Dataverse is to invoke the ReactivateEntityKey action (or ReactivateEntityKeyRequest via the SDK). This instructs Dataverse to retry building the index without destroying and recreating the key de

Submitted by amina.ke· Apr 18, 2026

Question

You are writing C# code to create an alternate key in a table for two columns: Order ID and Order Date. The table has thousands of records. You use the CreateEntityKey message to create the key. When you retrieve EntityKeyMetadata.EntityKeyIndexStatus, it returns a value of Failed. You need to resolve the issue with the index creation. What should you do first?

Options

  • AUse the ReactivateEntityKey action.
  • BPublish customizations.
  • CUse the DeleteEntityKeyRequest message.
  • DDelete duplicate combination values in Order ID and Order Date.

How the community answered

(14 responses)
  • A
    86% (12)
  • B
    7% (1)
  • C
    7% (1)

Explanation

When EntityKeyIndexStatus returns 'Failed', the prescribed first recovery action in Dataverse is to invoke the ReactivateEntityKey action (or ReactivateEntityKeyRequest via the SDK). This instructs Dataverse to retry building the index without destroying and recreating the key definition. Only if reactivation fails repeatedly (indicating an underlying data problem) should you then investigate duplicate values (D) and clean them up. Jumping straight to deleting duplicate data (D) before attempting reactivation is premature. Deleting the key (C) is more disruptive and unnecessary as a first step. Publishing customizations (B) has no effect on alternate key index status.

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice