phacility/phabricator · error · PhutilArgumentUsageException

No file "%s" exists.

Error message

No file "%s" exists.

What it means

Error "No file "%s" exists." thrown in phacility/phabricator.

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)

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.