{"record":{"id":"191897fc08d73a79","repo":"apache/superset","slug":"an-error-occurred-while-accessing-the-value-191897","errorCode":null,"errorMessage":"An error occurred while accessing the value.","messagePattern":"An error occurred while accessing the value\\.","errorType":"exception","errorClass":"ExplorePermalinkGetFailedError","httpStatus":404,"severity":"error","filePath":"superset/commands/explore/get.py","lineNumber":71,"sourceCode":"    def __init__(\n        self,\n        params: CommandParameters,\n    ) -> None:\n        self._permalink_key = params.permalink_key\n        self._form_data_key = params.form_data_key\n        self._datasource_id = params.datasource_id\n        self._datasource_type = params.datasource_type\n        self._slice_id = params.slice_id\n\n    # pylint: disable=too-many-locals,too-many-branches,too-many-statements\n    def run(self) -> Optional[dict[str, Any]]:  # noqa: C901\n        initial_form_data = {}\n        permalink_chart_state = None\n        if self._permalink_key is not None:\n            command = GetExplorePermalinkCommand(self._permalink_key)\n            permalink_value = command.run()\n            if not permalink_value:\n                raise ExplorePermalinkGetFailedError()\n            state = permalink_value[\"state\"]\n            initial_form_data = state[\"formData\"]\n            url_params = state.get(\"urlParams\")\n            if url_params:\n                initial_form_data[\"url_params\"] = dict(url_params)\n            permalink_chart_state = state.get(\"chartState\")\n        elif self._form_data_key:\n            parameters = FormDataCommandParameters(key=self._form_data_key)\n            value = GetFormDataCommand(parameters).run()\n            initial_form_data = json.loads(value) if value else {}\n\n        message = None\n\n        if not initial_form_data:\n            if self._slice_id:\n                initial_form_data[\"slice_id\"] = self._slice_id\n                if self._form_data_key:\n                    message = _(","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/explore/get.py#L53-L89","documentation":"Error \"An error occurred while accessing the value.\" thrown in apache/superset.","triggerScenarios":"GET /api/v1/explore/form_data/<key> fails due to a storage/lookup error.","commonSituations":"Reading Explore chart context (slice/form_data) via the API when the lookup or deserialization raises an exception.","solutions":["Verify the form_data key exists and the user has access to it.","Regenerate the form_data key by reopening the chart in Explore."],"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"}