phacility/phabricator · error · PhutilArgumentUsageException

No item exists with ID

Error message

No item exists with ID "%s".

What it means

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

Solutions

  1. Verify the item ID is correct
  2. Check the item wasn't deleted
  3. Use the PHID form if only the PHID is known
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/9a76828b9c73af3b. 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)