phacility/phabricator · error · PhutilArgumentUsageException
No file " " exists.
Error message
No file "%s" exists.
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/files/management/PhabricatorFilesManagementWorkflow.php:82 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/7b44e71586f098af.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/management/PhabricatorFilesManagementWorkflow.php:82
if ($from_engine) {
$query->withStorageEngines(array($from_engine));
}
return new PhabricatorQueryIterator($query);
}
protected function loadFilesWithNames(array $names) {
$query = id(new PhabricatorObjectQuery())
->setViewer($this->getViewer())
->withNames($names)
->withTypes(array(PhabricatorFileFilePHIDType::TYPECONST));
$query->execute();
$files = $query->getNamedResults();
foreach ($names as $name) {
if (empty($files[$name])) {
throw new PhutilArgumentUsageException(
pht(
'No file "%s" exists.',
$name));
}
}
return array_values($files);
}
}
View on GitHub (pinned to 5720a38cfe)