Reprotect fails with an error "Protection group pg_name has protected VMs with placeholders which need to be repaired.".

Problem

When performing a reprotect, the operation fails with an error "Protection group pg_name has protected VMs with placeholders which need to be repaired.".

Cause

If the placeholder datastore is not visible from a given host, that might cause the reprotect operation to fail.

Solution

Fix the placeholder datastores to meet the requirements outlined in Select a Placeholder Datastore and re-run the reprotect operation.