Error while enabling security rules

I am facing an issue while enabling rules on elastic security. When i try to enable the same, it throws the following error:

{
  "name": "Error",
  "body": {
    "message": "Cannot read properties of undefined (reading 'scheduledAt')",
    "status_code": 500
  },
  "message": "",
  "stack": "{\n  \"message\": \"Cannot read properties of undefined (reading 'scheduledAt')\",\n  \"status_code\": 500\n}"
}

Hi @Devansh_Shah, thanks for reporting a potential bug in our code.

Please proceed with opening a GitHub issue in the Kibana repo using this link:

In the issue:

  • Please specify which area and pages of Elastic Security are you using when enabling rules.
  • If you're using the Detections API directly, please clarify which endpoint with what parameters are you calling.
  • Please attach relevant screenshots.
  • Please share an example rule with which we could reproduce the issue. Make sure to obfuscate sensitive rule parameters (e.g., any mentions of host names and IPs in the rule query) and test that it's reproducible with the obfuscated rule.

When the issue is created, you can tag @banderror (me) in the comments and we will triage it or redirect as needed.