{"record":{"id":"a3664cfdcf06dae6","repo":"phacility/phabricator","slug":"trigger-ruleset-is-corrupt-rule-of-type-s-do","errorCode":null,"errorMessage":"Trigger ruleset is corrupt, rule (of type \"%s\") does not validate: %s","messagePattern":"Trigger ruleset is corrupt, rule \\(of type \"(.+?)\"\\) does not validate: (.+?)","errorType":"exception","errorClass":"PhabricatorProjectTriggerCorruptionException","httpStatus":null,"severity":"error","filePath":"src/applications/project/storage/PhabricatorProjectTrigger.php","lineNumber":186,"sourceCode":"\n      if (!isset($rule_map[$record->getType()])) {\n        if (!$allow_invalid) {\n          throw new PhabricatorProjectTriggerCorruptionException(\n            pht(\n              'Trigger ruleset is corrupt: rule type \"%s\" is unknown.',\n              $record->getType()));\n        }\n\n        $rule = new PhabricatorProjectTriggerUnknownRule();\n      } else {\n        $rule = clone $rule_map[$record->getType()];\n      }\n\n      try {\n        $rule->setRecord($record);\n      } catch (Exception $ex) {\n        if (!$allow_invalid) {\n          throw new PhabricatorProjectTriggerCorruptionException(\n            pht(\n              'Trigger ruleset is corrupt, rule (of type \"%s\") does not '.\n              'validate: %s',\n              $record->getType(),\n              $ex->getMessage()));\n        }\n\n        $rule = id(new PhabricatorProjectTriggerInvalidRule())\n          ->setRecord($record)\n          ->setException($ex);\n      }\n      $rule->setViewer($viewer);\n\n      $trigger_rules[] = $rule;\n    }\n\n    return $trigger_rules;\n  }","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/project/storage/PhabricatorProjectTrigger.php#L168-L204","documentation":"Error \"Trigger ruleset is corrupt, rule (of type \"%s\") does not validate: %s\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/project/storage/PhabricatorProjectTrigger.php:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}