phacility/phabricator · error · PhutilArgumentUsageException
Object " " is not a valid object.
Error message
Object "%s" is not a valid object.
What it means
Guard in loadCommitsWithConstraints(): one of the names passed on the command line did not resolve through PhabricatorObjectQuery, meaning no object with that monogram exists (or it is not visible). The workflow names the offending object.
Solutions
- Check the monogram spelling (e.g. rP1234 vs R1234) and retry
- Confirm the object exists by opening it in the web UI
- Remove the bad name from the argument list
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/audit/management/PhabricatorAuditManagementWorkflow.php:53 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/626d5f65f35bb674.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/audit/management/PhabricatorAuditManagementWorkflow.php:53
'Specify either a list of objects to affect or "--all", but not '.
'both.'));
}
if ($all) {
$objects = new LiskMigrationIterator(new PhabricatorRepository());
} else {
$query = id(new PhabricatorObjectQuery())
->setViewer($viewer)
->withNames($names);
$query->execute();
$objects = array();
$results = $query->getNamedResults();
foreach ($names as $name) {
if (!isset($results[$name])) {
throw new PhutilArgumentUsageException(
pht(
'Object "%s" is not a valid object.',
$name));
}
$object = $results[$name];
if (!($object instanceof PhabricatorRepository) &&
!($object instanceof PhabricatorRepositoryCommit)) {
throw new PhutilArgumentUsageException(
pht(
'Object "%s" is not a valid repository or commit.',
$name));
}
$objects[] = $object;
}
}
View on GitHub (pinned to 5720a38cfe)