phacility/phabricator · error · PhabricatorSearchConstraintException
The specified "Created Before" date is earlier in time than…
Error message
The specified "Created Before" date is earlier in time than the specified "Created After" date, so this query can never match any results.
What it means
Range-consistency check in the feed transaction search engine: both 'Created After' (createdStart) and 'Created Before' (createdEnd) filters are set and the start is later than the end, making the query impossible to satisfy. A PhabricatorSearchConstraintException for contradictory filter dates.
Solutions
- Swap or correct the dates so 'Created After' is earlier than 'Created Before'
- Remove one bound to make the range open-ended
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/feed/query/PhabricatorFeedTransactionSearchEngine.php:54 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/6b791463f3dca11f.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/feed/query/PhabricatorFeedTransactionSearchEngine.php:54
}
protected function buildQueryFromParameters(array $map) {
$query = $this->newQuery();
if ($map['authorPHIDs']) {
$query->withAuthorPHIDs($map['authorPHIDs']);
}
if ($map['objectTypes']) {
$query->withObjectTypes($map['objectTypes']);
}
$created_min = $map['createdStart'];
$created_max = $map['createdEnd'];
if ($created_min && $created_max) {
if ($created_min > $created_max) {
throw new PhabricatorSearchConstraintException(
pht(
'The specified "Created Before" date is earlier in time than the '.
'specified "Created After" date, so this query can never match '.
'any results.'));
}
}
if ($created_min || $created_max) {
$query->withDateCreatedBetween($created_min, $created_max);
}
return $query;
}
protected function getURI($path) {
return '/feed/transactions/'.$path;
}
View on GitHub (pinned to 5720a38cfe)