{"record":{"id":"b5b88c5f5dd203f9","repo":"phacility/phabricator","slug":"no-such-file-s","errorCode":null,"errorMessage":"No such file \"%s\"!","messagePattern":"No such file \"(.+?)\"!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/conduit/FileConduitAPIMethod.php","lineNumber":15,"sourceCode":"<?php\n\nabstract class FileConduitAPIMethod extends ConduitAPIMethod {\n\n  final public function getApplication() {\n    return PhabricatorApplication::getByClass('PhabricatorFilesApplication');\n  }\n\n  protected function loadFileByPHID(PhabricatorUser $viewer, $file_phid) {\n    $file = id(new PhabricatorFileQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($file_phid))\n      ->executeOne();\n    if (!$file) {\n      throw new Exception(pht('No such file \"%s\"!', $file_phid));\n    }\n\n    return $file;\n  }\n\n  protected function loadFileChunks(\n    PhabricatorUser $viewer,\n    PhabricatorFile $file) {\n    return $this->newChunkQuery($viewer, $file)\n      ->execute();\n  }\n\n  protected function loadFileChunkForUpload(\n    PhabricatorUser $viewer,\n    PhabricatorFile $file,\n    $start,\n    $end) {\n","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileConduitAPIMethod.php#L1-L33","documentation":"Generic lookup sentinel in loadFileByPHID: a PhabricatorFileQuery for the given file PHID (with the conduit caller's visibility) returned no row. The PHID is wrong, the file was deleted, or policy filtering hid it from the acting user.","triggerScenarios":"Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:15 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file PHID is correct and was copied fully","Check the file still exists (it may have been destroyed)","Confirm the conduit user is allowed to see the file"],"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"}