{"record":{"id":"ac5fa73cc733d22e","repo":"phacility/phabricator","slug":"file-s-does-not-exist","errorCode":null,"errorMessage":"File \"%s\" does not exist.","messagePattern":"File \"(.+?)\" does not exist\\.","errorType":"exception","errorClass":"PhabricatorWorkerPermanentFailureException","httpStatus":null,"severity":"error","filePath":"src/applications/files/worker/FileDeletionWorker.php","lineNumber":18,"sourceCode":"<?php\n\nfinal class FileDeletionWorker extends PhabricatorWorker {\n\n  private function loadFile() {\n    $phid = idx($this->getTaskData(), 'objectPHID');\n    if (!$phid) {\n      throw new PhabricatorWorkerPermanentFailureException(\n        pht('No \"%s\" in task data.', 'objectPHID'));\n    }\n\n    $file = id(new PhabricatorFileQuery())\n      ->setViewer(PhabricatorUser::getOmnipotentUser())\n      ->withPHIDs(array($phid))\n      ->executeOne();\n\n    if (!$file) {\n      throw new PhabricatorWorkerPermanentFailureException(\n        pht('File \"%s\" does not exist.', $phid));\n    }\n\n    return $file;\n  }\n\n  protected function doWork() {\n    $file = $this->loadFile();\n    $engine = new PhabricatorDestructionEngine();\n    $engine->destroyObject($file);\n  }\n\n}\n","sourceCodeStart":1,"sourceCodeEnd":32,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/worker/FileDeletionWorker.php#L1-L32","documentation":"Error \"File \"%s\" does not exist.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/worker/FileDeletionWorker.php:18 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"}