What does Windows error code 5002 (ERROR_DEPENDENCY_NOT_FOUND) mean?

 
Previous Next
ERROR_DEPENDENT_RESOURCE_EXISTS ERROR_DEPENDENCY_ALREADY_EXISTS

ERROR_DEPENDENCY_NOT_FOUND

The requested dependency edge is absent

This code is about a relationship between two cluster resources, not about failure to open either resource. The resources can both exist while the specific dependency edge requested by the API or management tool is missing.

A common diagnostic trap is to inspect only resource names. Cluster configuration may have been changed during role repair, migration, or automation, leaving a script that assumes an older dependency graph. Query the current graph from the cluster before attempting to remove or modify a dependency.

What to inspect

  • Confirm the exact dependent resource and provider resource selected by the caller; similarly named IP, Network Name, disk, and application resources are easy to confuse.
  • Compare the current dependency report with the intended role design rather than blindly recreating the missing edge.
  • If automation is involved, make dependency removal idempotent by testing the relationship before issuing the change.
Get-ClusterResource
Get-ClusterResource | Get-ClusterResourceDependency

References


Looking for a different code? Search another status or error code.