{"record":{"id":"636cf45e06414c39","repo":"apache/superset","slug":"resource-was-not-found","errorCode":null,"errorMessage":"Resource was not found.","messagePattern":"Resource was not found\\.","errorType":"exception","errorClass":"TemporaryCacheResourceNotFoundError","httpStatus":403,"severity":"error","filePath":"superset/commands/dashboard/filter_state/utils.py","lineNumber":33,"sourceCode":"# specific language governing permissions and limitations\n# under the License.\n\nfrom superset.commands.dashboard.exceptions import (\n    DashboardAccessDeniedError,\n    DashboardNotFoundError,\n)\nfrom superset.commands.temporary_cache.exceptions import (\n    TemporaryCacheAccessDeniedError,\n    TemporaryCacheResourceNotFoundError,\n)\nfrom superset.daos.dashboard import DashboardDAO\n\n\ndef check_access(resource_id: int) -> None:\n    try:\n        DashboardDAO.get_by_id_or_slug(str(resource_id))\n    except DashboardNotFoundError as ex:\n        raise TemporaryCacheResourceNotFoundError from ex\n    except DashboardAccessDeniedError as ex:\n        raise TemporaryCacheAccessDeniedError from ex\n","sourceCodeStart":15,"sourceCodeEnd":36,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/dashboard/filter_state/utils.py#L15-L36","documentation":"Error \"Resource was not found.\" thrown in apache/superset.","triggerScenarios":"Accessing a dashboard filter-state value that does not exist.","commonSituations":"Accessing dashboard filter state by key when no stored value exists for that key.","solutions":["Verify the dashboard ID and filter-state key exist before accessing them."],"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"}