{"record":{"id":"55a0362095bfc90e","repo":"apache/superset","slug":"report-schedule-state-not-found","errorCode":null,"errorMessage":"Report Schedule state not found","messagePattern":"Report Schedule state not found","errorType":"exception","errorClass":"ReportScheduleStateNotFoundError","httpStatus":500,"severity":"error","filePath":"superset/commands/report/execute.py","lineNumber":2036,"sourceCode":"        self._report_schedule = report_schedule\n        self._scheduled_dttm = scheduled_dttm\n        self._report_execution_context = report_execution_context\n\n    @transaction()\n    def run(self) -> None:\n        for state_cls in self.states_cls:\n            if (self._report_schedule.last_state is None and state_cls.initial) or (\n                self._report_schedule.last_state in state_cls.current_states\n            ):\n                state_cls(\n                    self._report_schedule,\n                    self._scheduled_dttm,\n                    self._execution_id,\n                    self._report_execution_context,\n                ).next()\n                break\n        else:\n            raise ReportScheduleStateNotFoundError()\n\n\nclass AsyncExecuteReportScheduleCommand(BaseCommand):\n    \"\"\"\n    Execute all types of report schedules.\n    - On reports takes chart or dashboard screenshots and sends configured notifications\n    - On Alerts uses related Command AlertCommand and sends configured notifications\n    \"\"\"\n\n    def __init__(self, task_id: str, model_id: int, scheduled_dttm: datetime):\n        self._model_id = model_id\n        self._model: Optional[ReportSchedule] = None\n        self._scheduled_dttm = scheduled_dttm\n        self._execution_id = UUID(task_id)\n\n    def run(self) -> None:\n        monotonic_started_at = time.monotonic()\n        report_execution_context: ReportExecutionContext | None = None","sourceCodeStart":2018,"sourceCodeEnd":2054,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/report/execute.py#L2018-L2054","documentation":"Error \"Report Schedule state not found\" thrown in apache/superset.","triggerScenarios":"The stored state row for a report schedule execution cannot be found.","commonSituations":"Report execution cannot load its schedule row — deleted or locked by another worker mid-run.","solutions":["Recreate the report schedule; its log/state row is missing.","Check for manual deletions in the report_execution_log table."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4587218dd19d046c3e4d00063e7d27f8a2ed354","analyzedAt":"2026-08-14T22:39:27.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}