{"record":{"id":"7b44e71586f098af","repo":"phacility/phabricator","slug":"no-file-s-exists","errorCode":null,"errorMessage":"No file \"%s\" exists.","messagePattern":"No file \"(.+?)\" exists\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/files/management/PhabricatorFilesManagementWorkflow.php","lineNumber":82,"sourceCode":"    if ($from_engine) {\n      $query->withStorageEngines(array($from_engine));\n    }\n\n    return new PhabricatorQueryIterator($query);\n  }\n\n  protected function loadFilesWithNames(array $names) {\n    $query = id(new PhabricatorObjectQuery())\n      ->setViewer($this->getViewer())\n      ->withNames($names)\n      ->withTypes(array(PhabricatorFileFilePHIDType::TYPECONST));\n\n    $query->execute();\n    $files = $query->getNamedResults();\n\n    foreach ($names as $name) {\n      if (empty($files[$name])) {\n        throw new PhutilArgumentUsageException(\n          pht(\n            'No file \"%s\" exists.',\n            $name));\n      }\n    }\n\n    return array_values($files);\n  }\n\n}\n","sourceCodeStart":64,"sourceCodeEnd":93,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/management/PhabricatorFilesManagementWorkflow.php#L64-L93","documentation":"Name resolution failure in loadFilesWithNames: one of the supplied file monikers/PHIDs (e.g. F123) did not resolve to any existing PhabricatorFile object, so the workflow aborts rather than silently skipping it.","triggerScenarios":"Thrown at src/applications/files/management/PhabricatorFilesManagementWorkflow.php:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file monogram or PHID is correct and the file is not deleted","Check the acting user can see the file (policy filtering may hide it)","Remove the bad name from the argument list"],"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"}