phacility/phabricator · error · PhutilArgumentUsageException

No item exists with PHID

Error message

No item exists with PHID "%s".

What it means

Fires from loadITem when the supplied value was classified as a PHID and the Nuance item query returned no rows. It is a lookup-miss guard: the PHID string at fault is interpolated into the message and the CLI workflow aborts.

Solutions

  1. Verify the item PHID is correct
  2. Confirm the item exists and the acting viewer can see it
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:112 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/26e985efa754b634. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:112

    }

    $items = $query->execute();

    if (!$items) {
      switch ($kind) {
        case 'id':
          $message = pht(
            'No item exists with ID "%s".',
            $item);
          break;
        case 'phid':
          $message = pht(
            'No item exists with PHID "%s".',
            $item);
          break;
      }

      throw new PhutilArgumentUsageException($message);
    }

    return head($items);
  }
}

View on GitHub (pinned to 5720a38cfe)