{"record":{"id":"45725363149eabc2","repo":"phacility/phabricator","slug":"the-specified-occurs-before-date-is-earlier-in-t","errorCode":null,"errorMessage":"The specified \"Occurs Before\" date is earlier in time than the specified \"Occurs After\" date, so this query can never match any results.","messagePattern":"The specified \"Occurs Before\" date is earlier in time than the specified \"Occurs After\" date, so this query can never match any results\\.","errorType":"validation","errorClass":"PhabricatorSearchConstraintException","httpStatus":null,"severity":"error","filePath":"src/applications/feed/query/PhabricatorFeedSearchEngine.php","lineNumber":92,"sourceCode":"    }\n\n    if ($phids) {\n      $query->withFilterPHIDs($phids);\n    }\n\n    $range_min = $map['rangeStart'];\n    if ($range_min) {\n      $range_min = $range_min->getEpoch();\n    }\n\n    $range_max = $map['rangeEnd'];\n    if ($range_max) {\n      $range_max = $range_max->getEpoch();\n    }\n\n    if ($range_min && $range_max) {\n      if ($range_min > $range_max) {\n        throw new PhabricatorSearchConstraintException(\n          pht(\n            'The specified \"Occurs Before\" date is earlier in time than the '.\n            'specified \"Occurs After\" date, so this query can never match '.\n            'any results.'));\n      }\n    }\n\n    if ($range_min || $range_max) {\n      $query->withEpochInRange($range_min, $range_max);\n    }\n\n    return $query;\n  }\n\n  protected function getURI($path) {\n    return '/feed/'.$path;\n  }\n","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/feed/query/PhabricatorFeedSearchEngine.php#L74-L110","documentation":"Range-consistency check in buildQueryFromParameters: both 'Occurs After' (rangeStart) and 'Occurs Before' (rangeEnd) were supplied and the start epoch is greater than the end epoch, producing an empty, unsatisfiable window. Thrown as PhabricatorSearchConstraintException so the UI can report the contradictory filter rather than return zero rows silently.","triggerScenarios":"Thrown at src/applications/feed/query/PhabricatorFeedSearchEngine.php:92 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the date range so 'Occurs After' precedes 'Occurs Before'","Clear one of the two bounds if only an open-ended range is intended"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}