{"record":{"id":"70ab6d19fe0a2224","repo":"phacility/phabricator","slug":"no-object-with-name-s-could-be-loaded","errorCode":null,"errorMessage":"No object with name \"%s\" could be loaded.","messagePattern":"No object with name \"(.+?)\" could be loaded\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementWorkflow.php","lineNumber":287,"sourceCode":"          pht(\n            'Object \"%s\" is specified more than once. Specify only unique '.\n            'objects.',\n            $name));\n      }\n      $seen_names[$name] = true;\n    }\n\n    $object_query = id(new PhabricatorObjectQuery())\n      ->setViewer($viewer)\n      ->withNames($names);\n\n    $object_query->execute();\n\n    $name_map = $object_query->getNamedResults();\n    $phid_map = array();\n    foreach ($names as $name) {\n      if (!isset($name_map[$name])) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'No object with name \"%s\" could be loaded.',\n            $name));\n      }\n\n      $phid = $name_map[$name]->getPHID();\n\n      if (isset($phid_map[$phid])) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'Names \"%s\" and \"%s\" identify the same object. Specify only '.\n            'unique objects.',\n            $name,\n            $phid_map[$phid]));\n      }\n\n      $phid_map[$phid] = $name;\n    }","sourceCodeStart":269,"sourceCodeEnd":305,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/infrastructure/daemon/workers/management/PhabricatorWorkerManagementWorkflow.php#L269-L305","documentation":"Thrown when one of the names passed via `--object`/`--container` cannot be resolved by PhabricatorObjectQuery. Names are monograms (T123, D45, P7), raw PHIDs, or object identifiers; resolution runs with the CLI actor's viewer context, so objects the acting user cannot see resolve to nothing and are reported as unloadable, indistinguishable from nonexistent ones.","triggerScenarios":"`./bin/worker retry --object T999999999 --class X` (no such task); passing a malformed monogram like `X123`; passing a PHID with a bad format; running as a restricted user/cluster node whose viewer cannot see the object (policies or 'policy.policies' configuration).","commonSituations":"Typos in monograms; IDs taken from another install or a stale import; running the CLI in a multi-node setup where the viewer is the omnipotent daemon user vs a limited account; objects locked behind policy rules like confidential projects.","solutions":["Verify the monogram resolves in the web UI with the same acting user","Correct typos in the name or use the full PHID form","Run the command as a user who can see the object (e.g. `./bin/worker` as the control daemon user, not a restricted account)"],"exampleFix":"# before\n./bin/worker retry --object T99 --class X\n\n# after\n./bin/worker retry --object T99 --class X   # only after confirming T99 exists and is visible; otherwise use the correct monogram/PHID","handlingStrategy":"validation","validationCode":"// Resolve names to PHIDs via conduit first\n$result = $client->callMethod('phid.lookup', array(\n  'names' => $names,\n));\n$unresolved = array_diff($names, array_keys($result));\nif ($unresolved) {\n  throw new RuntimeException(\n    'Unresolvable object names: '.implode(', ', $unresolved));\n}","typeGuard":"function isResolvableObjectName($name) {\n  // monogram (T123, D45, P7...), PHID, or callsign-based id\n  return (bool) preg_match('/^(PHID-[A-Z]{4}-[a-z0-9]+|[A-Z]{1,2}\\d+)$/', $name);\n}","tryCatchPattern":null,"preventionTips":["Validate monogram/PHID syntax before passing names to CLI or conduit","Run CLI worker commands as the control/daemon user so object visibility matches the daemon's view","Resolve names to PHIDs once up front and operate on PHIDs thereafter"],"tags":["phabricator","cli","worker-queue","not-found","object-resolution","policy"],"backgroundTag":"record-not-found","analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}