{"record":{"id":"3d949e0736eeec8f","repo":"phacility/phabricator","slug":"specify-the-id-or-phid-of-an-item-to-update-param","errorCode":null,"errorMessage":"Specify the ID or PHID of an item to update. Parameter \"%s\" is not an ID or PHID.","messagePattern":"Specify the ID or PHID of an item to update\\. Parameter \"(.+?)\" is not an ID or PHID\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/nuance/management/NuanceManagementWorkflow.php","lineNumber":89,"sourceCode":"        pht(\n          'Specify a item with %s.',\n          '--'.$key));\n    }\n\n    $query = id(new NuanceItemQuery())\n      ->setViewer($this->getViewer())\n      ->setRaisePolicyExceptions(true);\n\n    $type_unknown = PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN;\n\n    if (ctype_digit($item)) {\n      $kind = 'id';\n      $query->withIDs(array($item));\n    } else if (phid_get_type($item) !== $type_unknown) {\n      $kind = 'phid';\n      $query->withPHIDs($item);\n    } else {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify the ID or PHID of an item to update. Parameter \"%s\" '.\n          'is not an ID or PHID.',\n          $item));\n    }\n\n    $items = $query->execute();\n\n    if (!$items) {\n      switch ($kind) {\n        case 'id':\n          $message = pht(\n            'No item exists with ID \"%s\".',\n            $item);\n          break;\n        case 'phid':\n          $message = pht(\n            'No item exists with PHID \"%s\".',","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/nuance/management/NuanceManagementWorkflow.php#L71-L107","documentation":"Error \"Specify the ID or PHID of an item to update. Parameter \"%s\" is not an ID or PHID.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}