phacility/phabricator · error · PhutilArgumentUsageException

Specify the ID or PHID of an item to update. Parameter "%s"

Error message

Specify the ID or PHID of an item to update. Parameter "%s" is not an ID or PHID.

What it means

Error "Specify the ID or PHID of an item to update. Parameter "%s" is not an ID or PHID." thrown in phacility/phabricator.

Source

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

        pht(
          'Specify a item with %s.',
          '--'.$key));
    }

    $query = id(new NuanceItemQuery())
      ->setViewer($this->getViewer())
      ->setRaisePolicyExceptions(true);

    $type_unknown = PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN;

    if (ctype_digit($item)) {
      $kind = 'id';
      $query->withIDs(array($item));
    } else if (phid_get_type($item) !== $type_unknown) {
      $kind = 'phid';
      $query->withPHIDs($item);
    } else {
      throw new PhutilArgumentUsageException(
        pht(
          'Specify the ID or PHID of an item to update. Parameter "%s" '.
          'is not an ID or PHID.',
          $item));
    }

    $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".',

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:89 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/3d949e0736eeec8f. Report an issue: GitHub.