{"record":{"id":"4160d3c9f9d3306c","repo":"phacility/phabricator","slug":"no-such-object-s-exists","errorCode":null,"errorMessage":"No such object \"%s\" exists.","messagePattern":"No such object \"(.+?)\" exists\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php","lineNumber":38,"sourceCode":"\n  protected function defineReturnType() {\n    return 'map<string, phid>';\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $viewer = $request->getUser();\n\n    $phid = $request->getValue('objectPHID');\n\n    // NOTE: We use withNames() to let monograms like \"D123\" work, which makes\n    // this a little easier to test. Real PHIDs will still work as expected.\n\n    $object = id(new PhabricatorObjectQuery())\n      ->setViewer($viewer)\n      ->withNames(array($phid))\n      ->executeOne();\n    if (!$object) {\n      throw new Exception(\n        pht(\n          'No such object \"%s\" exists.',\n          $phid));\n    }\n\n    if (!($object instanceof HarbormasterBuildableInterface)) {\n      throw new Exception(\n        pht(\n          'Object \"%s\" does not implement interface \"%s\". Autotargets may '.\n          'only be queried for buildable objects.',\n          $phid,\n          'HarbormasterBuildableInterface'));\n    }\n\n    $autotargets = $request->getValue('targetKeys', array());\n\n    if ($autotargets) {\n      $targets = id(new HarbormasterTargetEngine())","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php#L20-L56","documentation":"Raised in harbormaster.queryautotargets when the objectPHID parameter does not resolve to any object via PhabricatorObjectQuery (which also accepts monograms like D123). The invalid input is the unknown object PHID or name.","triggerScenarios":"Thrown at src/applications/harbormaster/conduit/HarbormasterQueryAutotargetsConduitAPIMethod.php:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the PHID/monogram is correct","Check visibility/policy permissions for the conduit user","Confirm the object still exists"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}