phacility/phabricator · error · PhutilArgumentUsageException
Object "%s" is not a valid object.
Error message
Object "%s" is not a valid object.
What it means
Error "Object "%s" is not a valid object." thrown in phacility/phabricator.
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)
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.